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

GFPGAN预训练模型中不包含net_g_ema键 #801

Closed
shan-ge opened this issue Jul 24, 2023 · 1 comment
Closed

GFPGAN预训练模型中不包含net_g_ema键 #801

shan-ge opened this issue Jul 24, 2023 · 1 comment
Assignees

Comments

@shan-ge
Copy link

shan-ge commented Jul 24, 2023

如题,在gfp_FaceEnhancement.py里,https://paddlegan.bj.bcebos.com/models/GFPGAN.pdparams 不包含net_g_ema键,导致初始化报错。打印所有键发现只有net_g,使用net_g进行增强后发现效果不佳,是否可以更新一下预训练模型?

image
@mingzeyang
Copy link

我和你遇到了同样的问题,预测出来的图片泛紫泛蓝。对结果尝试了更换通道img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR),结果没有变化。
最后我发现需要两次的更换通道,既在输入图片进行预测之前进行一次,对结果也进行一次,预测结果是正常的。

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

4 participants