-
Web Interface:
python main_demo.py --mode web
-
Run Tests:
python main_demo.py --mode test -
Batch Processing:
python main_demo.py --mode batch --test-dir your_images/
Place your test images in:
test_images/real/- for authentic photostest_images/fake/- for AI-generated images
deepfake_detector.py- Core detection logicgradio_demo.py- Web interfacetest_utils.py- Testing and evaluation toolsmain_demo.py- Main execution scriptsetup.py- This setup script
- Python 3.8+
- PyTorch
- OpenAI CLIP
- Gradio
- Other dependencies (automatically installed)
This is part of an MSc project on "Enhancing Deepfake Detection Robustness through Prompt Engineering and Vision-Language Models" at the University of Liverpool.
Author: Jintaek Uh Supervisor: Guangliang Cheng