How DFDetect Works
Read how the public EfficientNet training pipeline works, what a face-level score means, and how to evaluate its limitations.
The live face classifier
DFDetect serves an EfficientNet-B7 checkpoint. Each detected face crop is resized to 128 × 128 RGB for classification. The checkpoint returns one sigmoid score per face. See the published evaluation for the tested checkpoint version.
The public training pipeline
The project extracts frames from videos, crops faces, and prepares labeled real and manipulated examples. The public tools support MTCNN or an Azure Vision workflow for training-data crops.
The public training example uses an ImageNet-initialized EfficientNet-B0 backbone with max pooling, followed by dense layers and a sigmoid output. The example resizes and rescales training images to 128 × 128 RGB.
Read the public training script and dataset preparation script.
What the score measures
Higher scores mean the classifier leans toward its real-face class, and lower scores mean it leans toward its manipulated-face class. A score of 90% should not be read as a calibrated 90% chance that the person or image is genuine.
Each score applies to a detected face crop. The tool doesn’t identify people, verify a profile’s ownership, or check the visual history of the rest of the image.
Where the detector can struggle
Small faces, unusual angles, obstructed faces, and heavy compression can affect the crop or score. Face edits outside the training data may be missed. Ordinary images can also be flagged.
The public dataset-preparation script splits prepared face crops. It does not document separation by source video or identity. A benchmark for new images should hold out entire identities or source videos, then report false positives, missed manipulations, and images where no face was detected.
How to compare altered copies
See the JPEG compression evaluation for a tested example with the exact input files.
Use a labeled set of permitted images and keep a matching original for each crop, screenshot, and compressed copy. Change one property at a time. For example, compare a losslessly cropped image with its original before changing JPEG quality.
Compare how frequently scores cross the same thresholds. Count false positives among known real faces and missed manipulations among known manipulated faces. Report inconclusive, no-face, and request-error counts alongside them so readers can see which images yielded usable scores.