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

Original hyperparameters #81

Open
mescarra opened this issue Jul 25, 2017 · 1 comment
Open

Original hyperparameters #81

mescarra opened this issue Jul 25, 2017 · 1 comment

Comments

@mescarra
Copy link

Hi!

When I try to use the original hyperparameters in the paper (ngf=ndf=128), the generator won't catch up with the discriminator and its error will get stuck forever. Is the Adam algorithm missing regularization?

Epoch: [1][      53 /      910]	 Time: 0.321  DataTime: 0.000    Err_G: 27.6310  Err_D: 0.0039	
Epoch: [1][      54 /      910]	 Time: 0.321  DataTime: 0.000    Err_G: 27.6310  Err_D: 0.0000	
Epoch: [1][      55 /      910]	 Time: 0.321  DataTime: 0.000    Err_G: 27.6310  Err_D: 0.0000	
Epoch: [1][      56 /      910]	 Time: 0.326  DataTime: 0.000    Err_G: 27.6310  Err_D: 0.0000	
Epoch: [1][      57 /      910]	 Time: 0.322  DataTime: 0.000    Err_G: 27.6310  Err_D: 0.0000	
Epoch: [1][      58 /      910]	 Time: 0.322  DataTime: 0.000    Err_G: 27.6310  Err_D: 0.0002	
Epoch: [1][      59 /      910]	 Time: 0.515  DataTime: 0.000    Err_G: 27.6310  Err_D: 0.0000	
Epoch: [1][      60 /      910]	 Time: 0.279  DataTime: 0.005    Err_G: 27.6310  Err_D: 0.0000	
Epoch: [1][      61 /      910]	 Time: 0.323  DataTime: 0.000    Err_G: 27.6310  Err_D: 0.0000	
@adam-hanna
Copy link

This is a common problem in GANs. Try setting ngf = ndf * 4. As an example, if you have enough memory, try ngf = 256; ndf = 64

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