Spaces:
Sleeping
Sleeping
metadata
title: Deepfake Detection API
emoji: 🔍
colorFrom: blue
colorTo: red
sdk: docker
app_port: 7860
Deepfake Detection API
Flask API for the deepfake detection frontend.
Health checks:
/health/health/models
Detector configuration:
IMAGE_DETECTOR_BACKEND=huggingfaceusesIMAGE_HF_MODEL_IDS.IMAGE_HF_MODEL_IDS=pretrained_model/huggingface/buildborderless__CommunityForensics-DeepfakeDet-ViTis the default local broad AI-image detector after runningpython download_hf_models.py.VIDEO_DETECTOR_BACKEND=huggingfaceusesVIDEO_HF_MODEL_ID.VIDEO_HF_MODEL_ID=pretrained_model/huggingface/Vansh180__VideoMae-ffc23-deepfake-detectoris the default local temporal video detector after runningpython download_hf_models.py.DETECTOR_DEVICE=cpucan be changed tocudaon GPU hosts.ALLOW_LOCAL_MODEL_FALLBACK=truefalls back to the bundled.pthcheckpoints if Hugging Face models are unavailable.IMAGE_FAKE_THRESHOLD,VIDEO_FAKE_THRESHOLD,IMAGE_UNCERTAIN_MARGIN, andVIDEO_UNCERTAIN_MARGINtune classification strictness.
Download the stronger Hugging Face model files into pretrained_model/huggingface/:
python download_hf_models.py
Required files in this Space:
app.pydetection.pyvideo_detection.pymodel_loader.pydetector_config.pyhf_detectors.pycross_efficient_vit_model.pynpr_model.pyrequirements.txtDockerfileNPR.pthorpretrained_model/NPR.pthcross_efficient_vit.pthorpretrained_model/cross_efficient_vit.pthefficientnet.pthorpretrained_model/efficientnet.pth