Gourieff / sd-webui-reactor

Fast and Simple Face Swap Extension for StableDiffusion WebUI (A1111 SD WebUI, SD WebUI Forge, SD.Next, Cagliostro)
GNU Affero General Public License v3.0
2.49k stars 264 forks source link

Face Mask Correction limits successful Face Swaps over a large range of face rotations #474

Open drdancm opened 3 months ago

drdancm commented 3 months ago

Feature description

Face Mask Correction needs to be fixed so it does not mess up the range over which face swaps work. Without Face Mask Correction swaps work from horizontal to horizontal over 180 degrees, with it this range is narrowed by almost 35 degrees (it simply fails).

When dealing with Close Up Portraits, for example when a face takes up about a third of the entire image frame, Face Mask Correction has to be used otherwise processed faces will have out of focus areas and will be much degraded in appearance.

kalle07 commented 3 months ago

yes maybe take a look here for inspiration https://github.com/ototadana/sd-face-editor

drdancm commented 3 months ago

I think Gourieff got the idea for his Face Correction from ototanada sd-face-editor originally, but at some point reactor changed and sd-face-editor, that I begin to use would no longer work properly.

I will try face-editor again, since a new version is available.