NVlabs / SPADE

Semantic Image Synthesis with SPADE
https://nvlabs.github.io/SPADE/
Other
7.61k stars 980 forks source link

question about compute_discriminator_loss #130

Open xiaohaipeng opened 4 years ago

xiaohaipeng commented 4 years ago

when compute_discriminator_loss, why set requires_grad=True after .detach()? fake_image = fake_image.detach() fake_image.requires_grad_()

15534081591 commented 3 years ago

请问您知道什么原因了吗