PyTorch-GAN
PyTorch-GAN copied to clipboard
save_image, doe not recognize normalize
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.