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

generator loss unnecessary? #1

Open
RohithKuditipudi opened this issue Oct 11, 2017 · 0 comments
Open

generator loss unnecessary? #1

RohithKuditipudi opened this issue Oct 11, 2017 · 0 comments

Comments

@RohithKuditipudi
Copy link

Thanks for the implementation! Quick question: why do you compile the generator alone as a model with a binary cross-entropy loss? This seems unnecessary since the generator is only being trained when running the "gan" (i.e. g+d) model. Also, why do you set discriminator.trainable = True/False at various points during training? From my understanding of Keras, once you compile a model the trainable parameter is fixed for that model. So it's always the case that discriminator.trainable = true for the discriminator model and discriminator.trainable = false for the gan model.

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

No branches or pull requests

1 participant