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

StyleGAN2-ada-pytorch models supported? #4

Closed
TheodoreGalanos opened this issue Feb 28, 2021 · 3 comments
Closed

StyleGAN2-ada-pytorch models supported? #4

TheodoreGalanos opened this issue Feb 28, 2021 · 3 comments

Comments

@TheodoreGalanos
Copy link

Hello and thanks for sharing your code!

I am trying to train an encoder on a stylegan2-ada-pytorch model that I have pretrained. I am using a .pkl file (as is the default output of that repo) and I am getting errors (related to the ada repo in fact). Is it possible to use that model here, or do I need to convert it somehow?

Thanks in advance!

@omertov
Copy link
Owner

omertov commented Feb 28, 2021

Hi @TheodoreGalanos!
This repository uses the stylegan2 implementation by rosinality: https://github.com/rosinality/stylegan2-pytorch.
To load your trained model you will need to first convert it into a checkpoint compatible with the above repository.

(From a quick glance I saw a relevant issue in stylegan2-ada-pytorch, after which the convert_weight.py script from the rosinality repository can be used)

@TheodoreGalanos
Copy link
Author

Thanks just saw that too, would be great. Really want to use your implementation!

@omertov
Copy link
Owner

omertov commented Apr 6, 2021

For future reference, it seems like there is a way for converting the stylegan2-ada-pytorch model: rosinality/stylegan2-pytorch#206.

Feel free to reopen the issue in case the suggested solution does not work :)

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