How vamsikrishna308/deepfake-defender works
DeepFake Defender is a web application for examining media for signs of manipulation. Users select a dashboard, image/video upload, batch-image, or live-camera view; the upload interface submits analysis requests, and the backend runs inference and can retain results for history and reporting. The dashboard fetches analytics and detection history, while single-file results offer PDF and CSV exports. Batch analysis is currently simulated in the sampled component, and the live-camera view describes local processing. The README also documents CNN/ViT training; the sampled inference path instead describes forensic image analysis and mock video simulation.
Main entry points: App.jsx App navigation · main.py REST API · UploadSection.jsx Media upload · LiveCamera.jsx Live camera
Components 13
Web client
- App navigation
frontend/src/App.jsx - Media upload
frontend/src/components/UploadSection.jsx - Batch analysis
frontend/src/components/BatchAnalysis.jsx - Live camera
frontend/src/components/LiveCamera.jsx - Dashboard
frontend/src/components/Dashboard.jsx
Detection service
- REST API
backend/main.py
Analysis and training
- Media inference
ml/inference.py - CNN ViT model
ml/model.py - Model training
ml/train.py
Detection records
- Detection history
backend/models.py - SQLite session
backend/database.py
Other components
- Analyst
- Browser
Connections 14
- Analyst → Browser: uses
README.md - Browser → App navigation: loads
- App navigation → Media upload: selects
frontend/src/App.jsx - App navigation → Batch analysis: selects
frontend/src/App.jsx - App navigation → Live camera: selects
frontend/src/App.jsx - App navigation → Dashboard: selects
frontend/src/App.jsx - Media upload → REST API: submits media
- Dashboard → REST API: fetches analytics
frontend/src/components/Dashboard.jsx - REST API → Media inference: runs prediction
backend/main.py - REST API → Detection history: queries and saves
backend/main.py - Detection history → SQLite session: uses base
backend/models.py - REST API → Browser: returns reports
backend/main.py - Live camera → Browser: processes locally
- Model training → CNN ViT model: trains