A web application for detecting deepfake images and videos using machine learning.
- Upload images or videos for deepfake detection
- Batch prediction support
- Model management
- Python 3.8+
- pip
-
Clone the repository
git clone https://github.com/yourusername/Web_Deepfake_Detect.git cd Web_Deepfake_Detect -
Create and activate a virtual environment
python -m venv venv # On Windows: venv\Scripts\activate # On macOS/Linux: source venv/bin/activate
-
Install dependencies
pip install -r requirements.txt
-
Download or place your trained model weights
- Place your model files in the
weights/directory.
- Place your model files in the
Download the pretrained model weights from this Google Drive folder and place them in the weights/ directory before running the application.
-
Start the web server
python web.py
or, if using Flask:
flask run
-
Open your browser
- Go to http://localhost:5000
-
Upload images or videos
- Use the web interface to upload files and view predictions.
To run predictions on a folder of files and save results to a CSV:
./predict_submission.sh <test_folder> <output.csv>On Windows, use Git Bash or WSL to run the script.
- Ensure your model weights are compatible with the code.
- For large files or datasets, adjust the configuration as needed.
MIT License
Feel free to contribute or open issues!