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

To those whom cannot reproduce the results on own datasets #11

Open
hubert0527 opened this issue Nov 13, 2021 · 0 comments
Open

To those whom cannot reproduce the results on own datasets #11

hubert0527 opened this issue Nov 13, 2021 · 0 comments

Comments

@hubert0527
Copy link

TL;DR The author has modified the PGGAN architecture in their project, so your model pretrained on the original PGGAN codebase cannot be used here. You can delete it now.

Related Issue:
#10

Observation
Since the network architecture is altered, so it is expected to generate random pixels like this:
image

You may wonder why the preview thumbnails are working as expected. It is because the preview thumbnails are generated with the graphs stored in your own checkpoint, while the canvas above is generated with an altered model network architecture that breaks your model.

Solution

  1. Replace these lines with these lines
  2. Train the PGGAN model all over again.
  3. Replace this line with the codes below. This avoids loading modules that do not exist.
if out_res < resolution_log2:
    images_out = tf.identity(x)
else:
    images_out = torgb(x, res)
  1. You're good to go.
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

1 participant