-
Notifications
You must be signed in to change notification settings - Fork 864
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
Gradient Penalty code error in WGAN_GP #33
Comments
You are right. I have the same view.The performance improved after changing thie code. |
I have a question that wheather the bn in Discrimator should be removed? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
at 113 line in WGAN_GP, I recommend changing the code
alpha = tf.random_uniform(shape=self.inputs.get_shape(), minval=0.,maxval=1.)
to
alpha = tf.random_uniform(shape=[BATCH_SIZE,1,1,1], minval=0.,maxval=1.)
Because It must be created one alpha value for each batch
The text was updated successfully, but these errors were encountered: