iperov / DeepFaceLab

DeepFaceLab is the leading software for creating deepfakes.
GNU General Public License v3.0
16.34k stars 26 forks source link

Head Replace - Crop size for face extraction #5724

Open duremovich opened 1 year ago

duremovich commented 1 year ago

I am attempting a whole head swap, using the neckline of a suit for the deepfake seam.

Unfortunately, in the aligning phase the cropping occasionally chops off the neckline in a way that makes the fake clunky.

Manual extraction runs into the same problem, because while you can control the interior bounding box for face detection, there doesn't appear to be a way to control the size of the outer bounding box.

I am curious if there is any edit I can do to the internal constants to allow for a slightly larger crop or if there is some feature I am missing.

Thanks!