Downloads · 30 days
0
manar54/DEFAKE
DEFAKE is a machine learning model from manar54. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A complete deepfake detection system that combines a backbone classifier with Vision-Language Model (VLM) reasoning for explainable predictions.
Downloads · 30 days
0
Access
Public
Updated Jan 28, 2026
Repo size
794 KB
Likes
0
Public
Click a slice to open those files.
.pdf794 KB · 98%
From the Hugging Face model README
A complete deepfake detection system that combines a backbone classifier with Vision-Language Model (VLM) reasoning for explainable predictions.
pip install -r requirements.txt
python predict.py --input_dir /path/to/test_images --output_file predictions.json
--input_dir (required): Path to folder containing images to analyze--output_file (required): Path to output JSON file for predictions--real_threshold (optional): Confidence threshold for "Real" classification (default: 0.90)python predict.py --input_dir ./test_images --output_file results.json --real_threshold 0.85
The script generates a JSON file with predictions for each image:
[
{
"image_name": "example.jpg",
"manipulation_type": "Deepfake",
"authenticity_score": 0.8542,
"explanation": "The image exhibits unnatural texture smoothing in facial regions. Frequency analysis reveals artifacts consistent with GAN-based synthesis."
}
]