A powerful web application that uses advanced deep learning to detect deepfake images. Built with React and powered by an ensemble of state-of-the-art neural networks (MobileNetV2, EfficientNet-B0, and Vision Transformer).
- 🎯 High Accuracy Detection - Ensemble model combining three powerful architectures
- 🖼️ Easy Image Upload - Drag-and-drop or click to upload interface
- 📊 Confidence Scores - Get detailed confidence metrics for each prediction
- 📝 Analysis History - Track all your previous detections
- 🔐 User Authentication - Secure login and signup system
- 📱 Responsive Design - Works seamlessly on desktop and mobile devices
- ⚡ Fast Processing - Quick inference with optimized model
- React - UI framework
- TypeScript - Type-safe JavaScript
- Material-UI - Component library
- Axios - HTTP client
- React Router - Navigation
- Node.js - Server runtime
- Express - Web framework
- Python - ML inference
- PyTorch - Deep learning framework
- Torchvision - Computer vision library
- MobileNetV2 - Lightweight CNN for efficient feature extraction
- EfficientNet-B0 - Compound scaling for optimal performance
- Vision Transformer (ViT-B_16) - Transformer-based image recognition
- Node.js (v14 or higher)
- Python (v3.8 or higher)
- npm or yarn
- CUDA (optional, for GPU acceleration)
git clone https://github.com/YOUR_USERNAME/deepfake-detector.git
cd deepfake-detectornpm install
cd server npm install pip install -r requirements.txt cd ..
Terminal 1 - Frontend:
npm start
The React app will open at http://localhost:3000
Terminal 2 - Backend:
cd server
node index.jsThe backend server will run at http://localhost:5000
npm run build
- Upload Image - User uploads a face image through the web interface
- Preprocessing - Image is resized to 224×224 and normalized
- Ensemble Inference - Three models process the image in parallel:
- MobileNetV2 extracts 1280-dimensional features
- EfficientNet-B0 extracts 1280-dimensional features
- ViT-B_16 extracts 768-dimensional features
- Feature Fusion - All features are concatenated (3328 dimensions)
- Classification - Final classifier predicts real vs. fake
- Results - Confidence score and prediction displayed to user
The ensemble model combines the strengths of:
- MobileNetV2: Efficient feature extraction with depthwise separable convolutions
- EfficientNet-B0: Balanced accuracy and efficiency through compound scaling
- Vision Transformer: Global context understanding through self-attention
Classification threshold: 0.65
- Score > 0.65: Real image
- Score ≤ 0.65: Fake/Deepfake image
- Video deepfake detection
- Batch processing for multiple images
- API endpoint for external integrations
- Model performance metrics dashboard
- Export detection reports
- Anshika Gupta - GitHub Profile-anshika1279
- PyTorch team for the amazing deep learning framework
- Pre-trained model weights from torchvision
- Material-UI for the beautiful component library
- The open-source community
⭐ If you find this project useful, please consider giving it a star!