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

Is the gradient penalty loss problematic when input image is large? #4

Closed
shaform opened this issue Oct 17, 2017 · 1 comment
Closed

Comments

@shaform
Copy link

shaform commented Oct 17, 2017

Hi,
Here the sum of squares is computed
slopes = tf.sqrt(tf.reduce_sum(tf.square(gradients), reduction_indices=[1]))

However, when the input image is extremely large, the dimension of gradients would be huge. It seems possible that the resulting slopes would be extremely large compared to 1.
Is this the case?

@kodalinaveen3
Copy link
Owner

We take gradients of D(x) in the x-space. Because we only perturb samples slightly, the size of input image shouldn't matter that 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