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 restoration gets applied to faces that were not swapped. #467

Open
3 tasks done
FinboySlick opened this issue Jun 14, 2024 · 0 comments
Open
3 tasks done

Face restoration gets applied to faces that were not swapped. #467

FinboySlick opened this issue Jun 14, 2024 · 0 comments
Labels
bug Something isn't working new

Comments

@FinboySlick
Copy link

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?

In the case of images with multiple faces, CodeFormer restores/alters faces that I did not want to swap.
Here's an example in 'extras' with 0.9 CodeFormer strength.
Original
orig
Result:
result

As you can see, the Haley Joel's ears, mouth and eyes are messed up in the result. If I set 'Restore Face' to 'None', no noticeable effect occurs on the kid's face and only Bruce's face gets swapped.

Steps to reproduce the problem

Have image with multiple detected faces, use CodeFormers as face restoration, swap only one of the faces. The unswapped face gets 'restored'.

Sysinfo

A1111 on Linux

Relevant console log

14:18:31 - ReActor - STATUS - Working: source face index [0], target face index [1]
14:18:31 - ReActor - STATUS - Using Hashed Source Face(s) Model...
14:18:31 - ReActor - STATUS - Using Hashed Target Face(s) Model...
14:18:31 - ReActor - STATUS - Detecting Source Face, Index = 0
14:18:31 - ReActor - STATUS - Detected: -55- y.o. Male
14:18:31 - ReActor - STATUS - Detecting Target Face, Index = 1
14:18:31 - ReActor - STATUS - Detected: -35- y.o. Male
14:18:31 - ReActor - STATUS - Swapping Source into Target
14:18:31 - ReActor - STATUS - ---Done!---

Additional information

I wasn't sure if this should be filed as a bug or a feature request as it seems to me like face restoration should only apply to the face being swapped. That said, I do not know if it is possible for CodeFormer to limit itself to a single face.

@FinboySlick FinboySlick added bug Something isn't working new labels Jun 14, 2024
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

1 participant