How sumit-kumar-guptaa/pretrained-mode--deepfake-model works
This is a video-KYC deepfake detection application: a user submits a video and receives a REAL/FAKE verdict with supporting metrics and signal evidence. The documented default path samples and filters frames, extracts physiological rPPG and visual features, then makes a fused quantum-model decision; ViT and DeepfakeBench are alternative decision backends, with optional rPPG fusion. The frontend and API provide the user-facing workflow. Relationships among the documented stages are based on the README and runner references; unsampled backend internals are represented at subsystem level rather than inferred.
Main entry points: run_pipeline.py Video workflow runner · predict.py DeepfakeBench detector · RPPG/pipeline.py rPPG signal pipeline · vit/pipeline.py ViT video classifier
Components 18
User interface
- Upload and results UI
frontend/src/App.jsx - Web API server
frontend/server.py
Pipeline orchestration
- Video workflow runner
WORKING/run_pipeline.py - Frame sampling and quality
WORKING/frame/pipeline.py - Face detection
WORKING/frame/detector.py - REAL/FAKE verdict
WORKING/run_pipeline.py
Evidence extraction
- rPPG signal pipeline
WORKING/RPPG/pipeline.py - Facial ROI extraction
WORKING/RPPG/face_roi.py - Physiological features
WORKING/RPPG/features.py - Visual feature extraction
WORKING/visual/extractor.py
Decision backends
- QAOA feature selection
WORKING/quantum/qaoa.py - Hybrid VQC classifier
WORKING/quantum/vqc.py - ViT video classifier
WORKING/vit/pipeline.py - ViT temporal model
WORKING/vit/model.py - DeepfakeBench detector
WORKING/dfb_backend/predict.py - DFB and rPPG fusion
WORKING/dfb_backend/fusion.py
Model preparation
- DFDC fine-tuning
WORKING/dfb_backend/train.py
Other components
- KYC operator
Connections 21
- KYC operator → Upload and results UI: submits video
README.md - Upload and results UI → Web API server: requests detection
- Web API server → Video workflow runner: starts analysis
- Video workflow runner → Frame sampling and quality: samples and filters
WORKING/run_pipeline.py - Frame sampling and quality → Face detection: detects faces
WORKING/frame/pipeline.py - Video workflow runner → rPPG signal pipeline: runs rPPG
WORKING/run_pipeline.py - rPPG signal pipeline → Facial ROI extraction: extracts ROIs
WORKING/RPPG/pipeline.py - rPPG signal pipeline → Physiological features: computes features
WORKING/RPPG/pipeline.py - Video workflow runner → Visual feature extraction: extracts visual evidence
WORKING/run_pipeline.py - Video workflow runner → QAOA feature selection: selects features
README.md - QAOA feature selection → Hybrid VQC classifier: feeds selected features
README.md - Video workflow runner → ViT video classifier: selects ViT backend
WORKING/run_pipeline.py - ViT video classifier → ViT temporal model: encodes video frames
README.md - Video workflow runner → DeepfakeBench detector: selects DFB backend
WORKING/run_pipeline.py - DeepfakeBench detector → DFB and rPPG fusion: optionally fuses rPPG
README.md - Physiological features → DFB and rPPG fusion: supplies physiology
README.md - DFDC fine-tuning → DeepfakeBench detector: fine-tunes detector
README.md - Hybrid VQC classifier → REAL/FAKE verdict: produces decision
README.md - ViT video classifier → REAL/FAKE verdict: produces decision
README.md - DeepfakeBench detector → REAL/FAKE verdict: produces decision
README.md - REAL/FAKE verdict → Upload and results UI: shows result