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

Quality improvement - Hard Edges for Neck - Where to adjust the lambda value? #19

Open
QaisarRajput opened this issue Jun 25, 2023 · 2 comments

Comments

@QaisarRajput
Copy link

Hi, I see in my results that neck has hard edges. Same as in you shared image in this issue
Is there a way to solve for that? I also saw the youtube video, where a lambda variable is discussed as a controllable face swap attribute. How can one change that in the face_swap script?

@arnold408
Copy link

I also got hard edges for neck area. Please solve this.
Please also inform about adjusting lamda.

Thanks

@free001style
Copy link

Hi, everyone! To fix hard edges of neck I've change 280 code line in scripts/face_swap.py
before: mask_bg = logical_or_reduce(*[swapped_msk == clz for clz in [0,11, 4 ]])
after: mask_bg = logical_or_reduce(*[swapped_msk == clz for clz in [0, 4, 7, 8, 10, 11]])
Also I attach photos, so you see can the difference (the order is source, target, before, after)
P.S. note that swapped photos is a screenshot, i am sorry about this
Brad
Cillian
2024-04-27 1 04 01 PM
Screenshot 2024-04-27 at 1 04 22 PM

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

3 participants