Content Navigation
1. Workspace Directory Structure
(Destination Materials)
-
Stores target video frames and extracted faces.
data_src
(Source Materials)
-
Stores source video frames and extracted faces.
model
-
Contains trained model files (the core of face-swapping).
data_dst.mp4
(Target Video)
-
The original video to receive the face swap.
data_src.mp4
(Source Video)
2.
-
Source Video (
data_src.mp4
)-
Provides the face to be transferred.
-
Extracted faces are saved in
data_src/aligned
.
-
-
Target Video (
data_dst.mp4
)-
Provides the body, background, and motion.
-
Extracted frames are saved in
data_dst
.
-
-
Output Result
-
The final video replaces the target’s face with the source’s face: Target’s Body + Source’s Face
-
3.
DeepFaceLab’s workflow boils down to two phases: training a model and applying the model. The model
folder houses the AI “brain” that learns to map and blend faces.
3.1 Model Analogy: Stable Diffusion vs. DeepFaceLab
Stable Diffusion Models | DeepFaceLab Models |
---|---|
Generate images in specific styles (e.g., anime, realism). | Specialize in swapping specific faces. |
Trained on broad datasets. | Trained on paired source/target faces. |
3.2 Training as “Digital Alchemy”
In the DeepFaceLab community, training models is humorously called “Alchemy” .
-
Ingredients: High-quality face datasets.
-
Furnace: GPU hardware (NVIDIA RTX recommended).
-
Technique: Parameter tuning (like ancient alchemical recipes).
-
Time: Days to weeks of training (the “49 days” of digital cultivation).
Note
4.
-
Workspace Integrity
-
Never rename files/folders in the workspace.
-
-
Material Recommendations
-
Video > Images: Use video clips for both source and target whenever possible.
-
Example: To swap faces with a pop star, source a video of her or place high-quality images of her in
data_src
for extraction.
-
-
Image-Based Workflow
-
If using images instead of video:
-
Place source images directly in
data_src
. -
-
-