Skip to content
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

discriminator output #66

Closed
2018hello opened this issue Mar 26, 2019 · 2 comments
Closed

discriminator output #66

2018hello opened this issue Mar 26, 2019 · 2 comments
Labels
Question Further information is requested

Comments

@2018hello
Copy link

hi
Your work is great! Thanks a lot!
And I have a a question about discriminator output.
In the code, I see discriminator output a tensor ( batchsize1nn).
But I see a lot of gans output only a num ( batchsize
1) in other code.
Why you use n*n? It can produce better results?

@knazeri
Copy link
Owner

knazeri commented Mar 26, 2019

@2018hello This class of discriminators is known as PatchGAN. The output of the discriminator is a nxn matrix with each index corresponding an image patch in the input. The receptive field of the network is 70x70 which means our discriminator evaluates 70x70 overlapping patches of the input image!

Philip Isola has a good explanation for this:

This is all mathematically equivalent to if we had manually chopped up the image into 70x70 overlapping patches, run a regular discriminator over each patch, and averaged the results.

@knazeri knazeri added the Question Further information is requested label Mar 26, 2019
@2018hello
Copy link
Author

Thank you so much! It help me a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants