Can I force some styles? #165

Open
opened 2026-01-29 21:44:32 +00:00 by claunia · 0 comments
Owner

Originally created by @juanluisrosaramos on GitHub (Feb 25, 2022).

Hi
My images are from faces with closed eyes and no hair (neonates) can I force to not apply these features in the inference mode?

I am trying it with num_mlp in gfpgan/archs/gfpganv1_clean_arch.py but it does not work
RuntimeError: Error(s) in loading state_dict for GFPGANv1Clean:
Unexpected key(s) in state_dict: "stylegan_decoder.style_mlp.5.weight", "stylegan_decoder.style_mlp.5.bias", "stylegan_decoder.style_mlp.7.weight", "stylegan_decoder.style_mlp.7.bias", "stylegan_decoder.style_mlp.9.weight", "stylegan_decoder.style_mlp.9.bias", "stylegan_decoder.style_mlp.11.weight", "stylegan_decoder.style_mlp.11.bias", "stylegan_decoder.style_mlp.13.weight", "stylegan_decoder.style_mlp.13.bias", "stylegan_decoder.style_mlp.15.weight", "stylegan_decoder.style_mlp.15.bias".

Thank you very much for your work

Originally created by @juanluisrosaramos on GitHub (Feb 25, 2022). Hi My images are from faces with closed eyes and no hair (neonates) can I force to not apply these features in the inference mode? I am trying it with num_mlp in gfpgan/archs/gfpganv1_clean_arch.py but it does not work RuntimeError: Error(s) in loading state_dict for GFPGANv1Clean: Unexpected key(s) in state_dict: "stylegan_decoder.style_mlp.5.weight", "stylegan_decoder.style_mlp.5.bias", "stylegan_decoder.style_mlp.7.weight", "stylegan_decoder.style_mlp.7.bias", "stylegan_decoder.style_mlp.9.weight", "stylegan_decoder.style_mlp.9.bias", "stylegan_decoder.style_mlp.11.weight", "stylegan_decoder.style_mlp.11.bias", "stylegan_decoder.style_mlp.13.weight", "stylegan_decoder.style_mlp.13.bias", "stylegan_decoder.style_mlp.15.weight", "stylegan_decoder.style_mlp.15.bias". Thank you very much for your work
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#165