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

Sampling of alpha in wgan_gp.py #143

Closed
ghost opened this issue Jul 13, 2020 · 1 comment
Closed

Sampling of alpha in wgan_gp.py #143

ghost opened this issue Jul 13, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 13, 2020

Hi,

in the gradient_penalty function in the WGAN class, alpha is sampled from a normal distribution (tf.random.normal) with mean 0.0 and std 1.0.

In the "Improved Training of Wasserstein GANs" paper/code, and all other implementations I have seen, this is sampled from a uniform distribution with min 0.0 and max 1.0.

I cannot find any discussion on sampling this from alternative distributions to what was proposed, but it clearly still works. I just wonder whether anyone can explain the motivation for this deviation from the original model?

@pcoet pcoet closed this as completed Aug 21, 2023
@pcoet
Copy link
Collaborator

pcoet commented Aug 21, 2023

For folks who might be interested in this question, please feel free to raise it under the Keras category of the TensorFlow forum. Thanks!

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

1 participant