PyTorch-GAN icon indicating copy to clipboard operation
PyTorch-GAN copied to clipboard

save_image, doe not recognize normalize

Open Steedalion opened this issue 4 years ago • 0 comments

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.

Steedalion avatar Dec 10 '20 04:12 Steedalion