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

Probelm of the discriminator loss. #5

Open
DesenHuang opened this issue Sep 13, 2019 · 2 comments
Open

Probelm of the discriminator loss. #5

DesenHuang opened this issue Sep 13, 2019 · 2 comments

Comments

@DesenHuang
Copy link

Is the discriminator loss wrong?
"D_loss_real = tf.reduce_mean(tf.nn.sigmoid_cross_entropy_with_logits(logits=D_logit_real, labels=tf.ones_like(D_logit_real)), 1)
D_loss_fake = tf.reduce_mean(tf.nn.sigmoid_cross_entropy_with_logits(logits=D_logit_fake, labels=tf.zeros_like(D_logit_fake)), 1)" in model.py

I think the D_loss_fake should be "D_loss_fake = tf.reduce_mean(tf.nn.sigmoid_cross_entropy_with_logits(logits=D_logit_fake, labels=tf.zeros_like(D_logit_fake)), 0)"

@DhrubaAdhikary
Copy link

No the Losses are correctly defined , the numeral 1 denotes the axis along which the mean needs to be reduced . and the labels are defined properly for the fake and the real .

@DesenHuang
Copy link
Author

Oh, yep. I was wrong. Thank you very much.

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