mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-02-15 13:54:33 +00:00
using my own pretrained stylegan2 network #35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MDYLL on GitHub (Jul 27, 2021).
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 :)))
@MDYLL commented on GitHub (Jul 29, 2021):
done:
https://github.com/xinntao/BasicSR/blob/master/docs/HOWTOs.md#How-to-train-StyleGAN2
network structures
network_g:
channel_multiplier:1
network_g:
channel_multiplier:1
you will get pth file for GFPGAN
@yx-chan131 commented on GitHub (Dec 1, 2021):
Hi, @MDYLL , so you train a new StyleGAN2 model using BasicSR library?
May I know how long is the duration for training?
@MDYLL commented on GitHub (Dec 1, 2021):
I think it depends on GPU. In my case it took 3 days. And after I could inference GFPGAN on CPU
@yx-chan131 commented on GitHub (Dec 2, 2021):
@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.
@MDYLL commented on GitHub (Dec 2, 2021):
:)
Nope. Train parameters have been set by default