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

[BUG] StyleGAN2: latent vector is ignored #107

Open
karray opened this issue Feb 7, 2022 · 3 comments
Open

[BUG] StyleGAN2: latent vector is ignored #107

karray opened this issue Feb 7, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@karray
Copy link

karray commented Feb 7, 2022

The implementation of StyleGAN2 does not learn a mapping for the latent vector z. The vector z is completely ignored, and a variety of generated images is provided by noise. To demonstrate the issue, I created a google colab with a pre-trained model that I trained for 55400 iterations.

Images genertd with a random z and a fixed noise:
image

Images generated with a fixed z and random noise
image

@vpj vpj self-assigned this Feb 7, 2022
@vpj
Copy link
Member

vpj commented Feb 7, 2022

Thanks. Will look into it.

@vpj vpj added the bug Something isn't working label Jul 17, 2022
@Siimarras

This comment was marked as abuse.

@lukaboljevic
Copy link

Sorry for commenting on a rather old issue, but I've recently implemented StyleGAN2 (being helped by the code from this repository too) and experienced a similar issue - however, in my case, it wasn't due to z or noise.

My models were actually experiencing mode collapse, and no matter what the input was, a pretrained model would always generate the same image. I managed to overcome this issue by playing around with the learning rates and number of gradient accumulation steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants