You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made some changes in simswap.py and got better results:
soft_face_mask, _ = self.smooth_mask(face_mask)
img_white=soft_face_mask*255.
# Only take face area from the swapped image
swapped_img = swapped_img * soft_face_mask
Hey @mbeytekin , you can blend faces separately. At the end of the simswap.py file do not sum img_mask and target_image, instead blend each crop independently.
I think a better solution would be computing intersection between crops and compensating it during the blend step. I'll take a look later.
I guess to fix this I have to merge all the found faces separately. Can you help with this?
By the way, the app already finds softmasks of faces. After all, isn't it better to use them when merging faces into the picture?
The text was updated successfully, but these errors were encountered: