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

Face Restore (GFPGANv1.4.pth) is not effective for some images #424

Open
3 tasks done
QunBB opened this issue Sep 19, 2024 · 1 comment
Open
3 tasks done

Face Restore (GFPGANv1.4.pth) is not effective for some images #424

QunBB opened this issue Sep 19, 2024 · 1 comment
Labels
bug Something isn't working new

Comments

@QunBB
Copy link

QunBB commented Sep 19, 2024

First, confirm

  • I have read the instruction carefully
  • I have searched the existing issues
  • I have updated the extension to the latest version

What happened?

As the following figure, you could see the two output faces are both blurry. One is with face_restore_model, another is not.
It looks like the face restore is not effective.

image

Steps to reproduce the problem

image

Sysinfo

Ubuntu 24.04.1 LTS
Chrome browser
NVIDIA GeForce RTX 4090
torch 2.4.0+cu124

Relevant console log

got prompt
[ReActor] 11:55:49 - STATUS - Working: source face index [0], target face index [0]
[ReActor] 11:55:49 - STATUS - Analyzing Source Image...
[ReActor] 11:55:50 - STATUS - Analyzing Target Image...
[ReActor] 11:55:50 - STATUS - Swapping...
[ReActor] 11:55:50 - STATUS - --Done!--
[ReActor] 11:55:50 - STATUS - Working: source face index [0], target face index [0]
[ReActor] 11:55:50 - STATUS - Using Hashed Source Face(s) Model...
[ReActor] 11:55:50 - STATUS - Using Hashed Target Face(s) Model...
[ReActor] 11:55:50 - STATUS - Swapping...
[ReActor] 11:55:50 - STATUS - --Done!--
[ReActor] 11:55:50 - STATUS - Restoring with GFPGANv1.4.pth | Face Size is set to 512
Warning torch.load doesn't support weights_only on this pytorch version, loading unsafely.
Prompt executed in 1.64 seconds

Additional information

No response

@QunBB QunBB added bug Something isn't working new labels Sep 19, 2024
@darebgd
Copy link

darebgd commented Oct 24, 2024

Defo a bug. Give that girl the same haircut and there you have it!
P.S. Try with fully formed faces, maybe it will work better 🤣
It's face swap, not head swap 😮‍💨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new
Projects
None yet
Development

No branches or pull requests

2 participants