zyainfal / One-Shot-Face-Swapping-on-Megapixels

One Shot Face Swapping on Megapixels.
Other
314 stars 40 forks source link

Swapping works but Problem at eyebrows #42

Closed aravindcheruvu closed 2 years ago

aravindcheruvu commented 2 years ago

swapping of the source to target is complete. however, the swapped image is not able to remove the target image right eyebrow. image image

Where is the problem in the code that I need to fix? Appreciate your inputs!!

zyainfal commented 2 years ago

Only is the left eyebrow not removed. So I think the problem is that the mask you use missed it. Would you visualize the mask and check that? Besides, it could be also likely that the index of the left eyebrow in your mask is not in the list as in https://github.com/zyainfal/One-Shot-Face-Swapping-on-Megapixels/blob/1af90db74aeede0bb2f51175c8af957b09e38d6b/inference/inference.py#L15

aravindcheruvu commented 2 years ago

Thank you for the reply. I changed the face id indexes in the code and it is working now.

Thanks, Aravind