Commit 11183b4d authored by AUTOMATIC's avatar AUTOMATIC

fix for #6700

parent e452face
......@@ -115,7 +115,7 @@ class PersonalizedBase(Dataset):
weight /= weight.mean()
elif use_weight:
#If an image does not have a alpha channel, add a ones weight map anyway so we can stack it later
weight = torch.ones([channels] + latent_size)
weight = torch.ones(latent_sample.shape)
else:
weight = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment