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

Training your model
Forum rules
Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.
Post Reply
User avatar
Posts: 28
Joined: Fri Jul 12, 2019 6:09 pm
Answers: 1
Has thanked: 2 times
Been thanked: 6 times

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

Post by deephomage »

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 (135.43 KiB) Viewed 10344 times


Post Reply