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

loss problem #9

Open
caishiqing opened this issue Jul 6, 2020 · 1 comment
Open

loss problem #9

caishiqing opened this issue Jul 6, 2020 · 1 comment

Comments

@caishiqing
Copy link

I'm doubt that why generator loss is defined as gen_loss = K.mean(fake_output), maybe should it be gen_loss = K.mean(real_output) to confuse discriminator?

@0xtristan
Copy link

The generator can't influence the results of the real outputs (they come from the dataset itself), so it wouldn't make sense to use gen_loss = K.mean(real_output) as the gradients wouldn't flow through the generator. Generator losses are typically formulated as a function of D(G(z)) i.e. in terms of fake_output, such as -D(G(z)) in hinge loss or -log(D(G(z)) in non-saturating loss.

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

2 participants