You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Question about GAN code: update the generator while training the discriminator #80
Through reading ur code, I think you update the generator while training the discriminator. We should detach it while training the discriminator, right?
Activity
MorvanZhou commentedon Aug 2, 2019
https://github.com/MorvanZhou/PyTorch-Tutorial/blob/master/tutorial-contents/406_GAN.py#L52-L53
This will update G and D separately.
wangchaozheng commentedon Aug 2, 2019
Thanks man, I understand now. I got confused by comparing ur code with the DCGAN tutorial on pytorch website. Thanks again!