-
Hi,
I have a question regarding gradient penalty. I believe the L2-norm calculation of the gradient is incorrect. It should be sum across all axes except the batch axis because the norm of a matrix…
HCA97 updated
4 years ago
-
Hi, Ngoc-Trung,
Thanks for your code sharing.
I have a question regarding a computation of gradient penalty in your code.
In gaan.py,
epsilon = tf.random_uniform(shape=tf.shape(self.X), minval…
-
Hi Patrick,
Firstly, I applaud the excellent paper: Neural SDEs as Infinite-Dimensional GANs.
According to your paper, I am trying to add gradient penalty into your code: /examples/neural_sde.ipynb…
-
Hi,
This is **'cal_grad_penalty'** function in `/src/utils/losses.py`
```
def cal_grad_penalty(real_images, real_labels, fake_images, discriminator, device):
batch_size, c, h, w = real_im…
-
Hi, I am walking through the experiments via codes, and find hard to understand the result of Figure 3 in "Penalizing Gradient Norm for Efficiently Improving Generalization in Deep Learning".
In …
-
It seems [`calc_gradient_penalty`](https://github.com/tamarott/SinGAN/blob/0879a1d2b4807e5d2f3b3f0368e6857158c35fd0/SinGAN/functions.py#L127-L147) is based on this:
https://github.com/caogang/wgan-…
-
https://github.com/Zeleni9/pytorch-wgan/blob/master/models/wgan_gradient_penalty.py#L324
`grad_penalty = ((gradients.norm(2, dim=1) - 1) ** 2).mean() * self.lambda_term`
The shape of `gradients`…
-
### 🐛 Describe the bug
Hello,
I tried in my software the example giving by Libtorch (https://pytorch.org/tutorials/advanced/cpp_autograd.html) and it crashed. I can't figure out why it is happenin…
-
https://github.com/caogang/wgan-gp/blob/ae47a185ed2e938c39cf3eb2f06b32dc1b6a2064/gan_language.py#L159
Right before this line, it should be added `"gradients = gradients.view(BATCH_SIZE, -1)"`?
-
according to the definition of gradient_penalty,it's impossible that get a negative value.why did I get a positive value?