PaddlePaddle / PaddleGAN

PaddlePaddle GAN library, including lots of interesting applications like First-Order motion transfer, Wav2Lip, picture repair, image editing, photo2cartoon, image style transfer, GPEN, and so on.
Apache License 2.0
7.75k stars 1.23k forks source link

model GFPGAN.pdparams does not include net_g_ema key #803

Closed kaylio closed 4 months ago

kaylio commented 11 months ago

I downloaded the model from https://github.com/PaddlePaddle/PaddleGAN/blob/develop/docs/en_US/tutorials/gfpgan.md But it doesn't include a net_g_ema key when I run this code :

python -u tools/export_model.py --config-file configs/gfpgan_ffhq1024.yaml \
    --load GFPGAN.pdparams \
    --inputs_size 1,3,512,512
image image
yangshurong commented 10 months ago

Maybe you can choose to use 'net_g' key to load params