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

Gradient Penalty code error in WGAN_GP #33

Open
jwc0906 opened this issue Jul 8, 2019 · 2 comments
Open

Gradient Penalty code error in WGAN_GP #33

jwc0906 opened this issue Jul 8, 2019 · 2 comments

Comments

@jwc0906
Copy link

jwc0906 commented Jul 8, 2019

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

@AliceAria
Copy link

You are right. I have the same view.The performance improved after changing thie code.

@iskangkang
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants