eriklindernoren / PyTorch-GAN

PyTorch implementations of Generative Adversarial Networks.
MIT License
16.39k stars 4.07k forks source link

save_image, doe not recognize normalize #140

Open Steedalion opened 3 years ago

Steedalion commented 3 years ago

save_image(img_sample, "images/%s/%s.png" % (opt.dataset_name, batches_done), nrow=8, normalize=True)

Gives an error, so I just removed the normalized = True part.

save_image(img_sample, "images/%s/%s.png" % (opt.dataset_name, batches_done), nrow=8)

Alternatively specify a version of torchvision.

This error occurred in dualgan.py but could occur anywhere.