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

PGGAN generator has some bug? #13

Open
kuoluo1995 opened this issue Dec 21, 2019 · 2 comments
Open

PGGAN generator has some bug? #13

kuoluo1995 opened this issue Dec 21, 2019 · 2 comments

Comments

@kuoluo1995
Copy link

I find PGGAN can not train.
When pg ==1, generator make the fake image which shape is [-1,16,16, 3].
And i find reason: because generator has upsample twice on line of block the pggan_model.py .
repair

x = block(x, nf(i + 1), name="1")
# x = block(x, nf(i + 1), name="2")
x = tf.layers.conv2d(x, filters=get_out_channels(i + 1), kernel_size=3, strides=1, padding='SAME',
                        kernel_initializer=w_init, kernel_regularizer=w_reg, bias_initializer=b_init,
                        name='gen_n_%s_conv2d-%d' % (name, x.get_shape()[1]))
x = tf.nn.leaky_relu(x)
x = pix_norm(x)
@kuoluo1995
Copy link
Author

kuoluo1995 commented Dec 22, 2019

And initializer is very important.
Your method will be exploding gradients when pg = 6.

@kozistr
Copy link
Owner

kozistr commented Dec 31, 2019

thx for reporting the issue!

some of my implementations are not maintained and there're several issues like PGGAN impl of mine (not perfectly impled) :(

someday, i'll fix the issues as possible as i can.
thank you in advance!

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