Page 1 of 1

[Outdated][Guide] Converting a DFL (DeepFaceLab) Face Set for Faceswap

Posted: Sat Aug 17, 2019 6:03 pm
by deephomage
 ! Message from: torzdf

This method is now deprecated. Unfortunately it is not possible to use DFL generated facesets in Faceswap.

NB: Whilst this process should work for full face DFL face sets, it may fail for larger extractions.

DeepFaceLab stores the image alignments in each image header. To use a face set created in DFL for training a model in faceswap, you need to convert the DFL stored image alignments to an alignments.json file.

Faceswap normally creates the alignments.json file during the extraction process. But you can create an alignments.json from an existing DFL face set by opening a Windows Command prompt, changing to your faceswap root directory (usually C:\Users\[Your User Name]\faceswap) and running the command:

Code: Select all

python tools.py alignments -a dfl -j reformat -fc "<insert the full path to the DFL face set here>"

You can also convert the DFL alignments using the GUI:

dfl_convert.png
dfl_convert.png (135.43 KiB) Viewed 15300 times