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

use generator model "Gs.pth" to train pixel2style2pixel encoder #25

Open
t109598032 opened this issue Feb 10, 2022 · 1 comment
Open

Comments

@t109598032
Copy link

Hello, thank you for providing this code.
I have the question about how to use the trained StyleGan2 model "Gs.pth" as the decoder of pixel2style2pixel?
(pixel2style2pixel is the architecture combined with encoder+decoder, encoder used to get latent code of picture, decoder is the StyleGan generator, used to generate picture.)

The same issue i had asked here(eladrich/pixel2style2pixel#245 (comment))
The author of pixel2style2pixel has reply me. But it seems that I should train styleGan generator with the"StyleGan-ADA-Pytorch" version firstly, it will generate the .pkl file as the generator, then use its code to convert the .pkl file to .pt file, finally can be used to train pixel2style2pixel encoder.

But I don't want to train the "StyleGan-ADA-Pytorch" again because i already have the "Gs.pth", and training takes me a lot of times.
Is there any solution to use "Gs.pth" as the pre-trained generator(decoder) of pixel2style2pixel?

@adriansahlman
Copy link
Owner

Hello!

Sorry for the slow reply. To be honest I actually have no idea because I basically stopped working with GANs after creating this repo. So I have no knowledge of pixel2style2pixel and how it works, sorry :(

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