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

FaceRestoreCF + GFPGAN 1.4 or 1.3 does not work after COMFYUI update #24

Open
devZu9 opened this issue Jun 11, 2024 · 10 comments
Open

FaceRestoreCF + GFPGAN 1.4 or 1.3 does not work after COMFYUI update #24

devZu9 opened this issue Jun 11, 2024 · 10 comments

Comments

@devZu9
Copy link

devZu9 commented Jun 11, 2024

Hello.
I found a similar question in the ComfyUI discussion and they advised me to contact the developer FaceRestoreCF to resolve this issue.
I am not well versed in programming and therefore cannot tell you exactly what is causing the problem.
I can only show that now with GFPGAN we get white faces:
337437618-70be2ec0-5b5a-46f3-9acb-f0dca03b5b6b
Please resolve the problem.

(I'm sorry, but I used an auto-translator into English, because I am not a native speaker of this language)

@scofano
Copy link

scofano commented Sep 1, 2024

I got this error message: Failed inference for CodeFormer: ImageModelDescriptor.call() got an unexpected keyword argument 'w'

@Big2State
Copy link

Big2State commented Sep 2, 2024

use "codeformer.pth" then there will be no error
https://github.com/sczhou/CodeFormer/releases/

@scofano
Copy link

scofano commented Sep 2, 2024

@Big2State Thanks. It works.
Do you know any difference between those 2 methods? one better than the other?

@devZu9
Copy link
Author

devZu9 commented Sep 2, 2024

I know. I'm recovering old photos and have a huge number of comparisons between GFPGAN_v1.4 and codeformer.

Codeformer changes facial features. He restores them incorrectly. The person in the photo no longer looks like himself.
75% of customers cannot recognize their loved one and refuse to pay for such work.

GFPGAN_v.1.4 also does not give 100% results, but in general the failure rate is somewhere around 10-15%. Recovery algorithms are much better than codeformer.

Therefore, when someone gives advice to replace GFPGAN_v.1.4 with codeformer, this is most likely due to the fact that the neural network operator does not take into account the similarity of the photo, i.e. recognition of facial features from the original photo.

@scofano
Copy link

scofano commented Sep 2, 2024

@devZu9 Thanks for the feedback. I also noticed some changes on the faces, even color tones. But let's hope someone will fix this issue soon enough.

@Python-explorer
Copy link

I tried using codeformer.pth but still get this error "<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)>" - all works fine in Automatic1111

@xiaoxuan220
Copy link

I encountered the same issue
Below is the log:
WARNING: comfy_extras.chainner_models is deprecated and has been replaced by the spandrel library.
Starting restore_face with codeformer_fidelity: 0.0
Failed inference for CodeFormer: ImageModelDescriptor.call() got an unexpected keyword argument 'w'

@haha0803
Copy link

does not work

@haha0803
Copy link

1.4不起作用

@hben35096
Copy link

hben35096 commented Oct 9, 2024

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

7 participants