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
The labels of valid and fake in wgan #136
Comments
Hello, have you solved the question? |
I have searched the offical Keras implementation of WGAN_GP in the repositories https://github.com/keras-team/keras-contrib/blob/master/examples/improved_wgan.py#L300 ,and they set the valid to 1 and the fake to -1. I thought this might be the right inplementation of setting labels. |
Hello, I have some confuse about D valid is set to 1, I guess this is to get w-distance easily instead of getting the probability of real data which is 0 to 1. Is this right? |
Sorry for ignore your question, I had a competition the other days, so I have no time to answer you. d_loss = 0.5 * np.add(d_loss_fake, d_loss_real)` |
Thank you~ |
Hello, I have a question about the labels of valid and fake. Generally, we need set the valid array are filled of 1, and the fake array are filled of 0. So I don't know why in wgan, author set the valid -1 and the fake 1.
I will appreciate for everyone who help me.
# Adversarial ground truths
valid = -np.ones((batch_size, 1))
fake = np.ones((batch_size, 1))
The text was updated successfully, but these errors were encountered: