You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for i in xrange(num_training_updates):
data = next(iter(train_loader))
train_data_variance = torch.var(data)
# print(train_data_variance)
# show(make_grid(data.cpu().data) )
# break
data = data - 0.5 # normalize to [-0.5, 0.5]
data = data.to(device)
optimizer.zero_grad()
The code normalize data to [-0.5, 0.5]. However, the last layer of the decoder of the VQ-VAE model is sigmoid. Is this a mistake?
The text was updated successfully, but these errors were encountered:
And another question, in VQ-VAE, the data are normalized to [-0.5, 0.5], but in the training phase 2, the content image (which feeds to the content encoder) is normalized [-1, 1].
Sorry for the late reply, i can not remember the reason i use 'data = data - 0.5 # normalize to [-0.5, 0.5]' due to the long time. Maybe is a mistake or not.
In VQ-Font/model/VQ-VAE.ipynb.
for i in xrange(num_training_updates):
data = next(iter(train_loader))
train_data_variance = torch.var(data)
# print(train_data_variance)
# show(make_grid(data.cpu().data) )
# break
data = data - 0.5 # normalize to [-0.5, 0.5]
data = data.to(device)
optimizer.zero_grad()
The code normalize data to [-0.5, 0.5]. However, the last layer of the decoder of the VQ-VAE model is sigmoid. Is this a mistake?
The text was updated successfully, but these errors were encountered: