-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why does not the discriminator output a scalar #66
Comments
This is because we use a "PatchGAN" discriminator, described in Section 3.2.2 of this paper. See more details here: junyanz/pytorch-CycleGAN-and-pix2pix#39 |
I have a question on the implement of PatchGAN. In the Section 3.2.2 of the paper motioned above, it said
But I couldn't find anywhere to implement of this averaging operation? |
Hi, @knaffe and @phillipi . I am confused for using different loss function. The option is MSELoss() and BCEWithLogits(), but when I used BCE, my generator loss shows a very large oscillation and MSE with more steady around 0.5 |
MSELoss has been shown to be more stable than the vanilla GAN loss. See this paper for more details. |
As far as I understand, the output of the discriminator outputs a scalar which represents whether the input comes from natural image set or generated image set. But I find that your discriminator outputs a 32x32 tensor. Could you explain the reason of that? Thx
The text was updated successfully, but these errors were encountered: