-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
DCGAN can only generate noise images #252
Comments
In the book, they did not actually explicitly wrote the learning rate. The typical learning rate for RmsProp is 0.0002 Or 0.00005 as seen in most of the papers. This may be one of the problem as dcgan require learning rate tuning. |
I finally solved this problem. |
I encountered the same issue with InfoGAN On the tensorflow page for BatchNormalization it says that there was a behavioral change between TF 1.x and 2
Changing the import statement for BatchNormalization to
Seems to fix the issue and produces the output you'd expect (at least, in InfoGAN's case). Note: To get the InfoGAN example script to run on the current TF build, the import statements needed to be changed to
|
I also tried this tutorial and found that it would help to add parameters here |
Use Spectral Normalization on top of CONV2D of Discriminator will stabilize the training greatly. Also, pay attention to kernel_initializer (glorot_normal etc...) |
I went through the tutorial (https://livebook.manning.com/book/gans-in-action/chapter-4/103) and tried to construct the DCGAN model.
I use the colab environment to run it. keras or tensorflow.keras: 2.4.3 or 2.4.0. tensorflow: 2.4.1
But after running it, the generator only comes up with noise images.
I tried replacing the optimiser with RMSporp and it also only produces noise images.
my code link:https://gist.github.com/leeprinxin/967ce5c24b163c68d13ec5305dea7207
The text was updated successfully, but these errors were encountered: