-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Can't use stylegan2 256x256 models #42
Comments
I believe that the model that is shown in the log above is 512x512. Instead you need to use a 256x256 model, such as: Also when training a 256x256 model then be sure to include the following attribute in your training parameters. |
I run and got the same issue |
I realize that I gave you that URL for the 256x256 model, but it's not a valid download link. Try the code below (as documented here).
|
The error comes from the dimensionality in the latent space, as you have at the top of your configuration: |
I changed "z_dim" and "w_dim" to 256, thinking it might help but it didn't. However, I believe the problem was with the dataset I used where for some reason some images were not in 256x256 size. I added and it fixed it. |
Yeah you need to exactly match the model you are finetuning from, otherwise there's no way to use the weights. For the reshaping of your data, do you mean you used |
Actually, it seems the reason it was fixed was thanks to adding --cbase=16384 |
Indeed, in my experience the |
Describe the bug
I wanted to use transfer learning on 256x256 pkl and my data contains images of 256x256 yet I got this error.
The text was updated successfully, but these errors were encountered: