-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
using my own pretrained stylegan2 network #27
Comments
done: https://github.com/xinntao/BasicSR/blob/master/docs/HOWTOs.md#How-to-train-StyleGAN2
network structuresnetwork_g: network_g: you will get pth file for GFPGAN |
Hi, @MDYLL , so you train a new StyleGAN2 model using BasicSR library? |
I think it depends on GPU. In my case it took 3 days. And after I could inference GFPGAN on CPU |
@MDYLL Thanks for your reply. May I know whether you turn off the generator regularization when training styleGAN2? Because I found that this is the problem that cause my training speed to be extremely slow. |
:) |
Hello :)
Thank you very much for your repo. I got a lot of beatiful photos. :))))
I try to use my own pretrained stylegan from official repo
https://github.com/NVlabs/stylegan2
But I cannot understand how I should use pkl-file, that I have.
I convert it to pt-file by
https://github.com/dvschultz/ai/blob/master/Convert_pkl_to_pt.ipynb
and change yml:
decoder_load_path: experiments/pretrained_models/stylegan2-ffhq-config-f.pt
but got error:
KeyError: 'params_ema'
May be I should use another repo for getting correct pth-file for decoder ?
Thank you :)))
The text was updated successfully, but these errors were encountered: