martinarjovsky / WassersteinGAN

BSD 3-Clause "New" or "Revised" License
3.2k stars 725 forks source link

Clip too early #50

Open innerlee opened 6 years ago

innerlee commented 6 years ago

The clip operation here is done before optimizerD.step(). So the discriminator used in updating G is the un-clampped version, which is not consistent with the paper.

hanstissot commented 6 years ago

Exactly! This seems to be an error in the code. I wonder if the difficulties that people have encountered in training WGANs is because of this error. Have you heard back from the authors?