Closed haoyangz closed 6 years ago
Ok it's because In visualize_results
function G.eval()
is called. So we need to set it back every time we called visualize_results
. This is probably the right thing to do when generating images to visualize. It's not clear why the official example missed it.
In many places like here and here, we have
D.train()
andG.train()
. Is there any particular reason that we need to explicitly set them as True (over and over again) ? The official Pytorch GAN example doesn't seem to donet.train()
at all. Thanks!