DOWNLOAD BOTH MODELS FIRST BEFORE RUNNING CODE, THEN PROCEED WITH THE NEXT STEPS Download link: Google Drive
- If in
/src, no action needed - If in
/project, runcd src
FOR FIRST TIME SETUP, RUN STEP 2.1
- 2.1.
python -m venv venv(Create virtual environment - creates avenvfolder insrc) - 2.2.
source venv/Scripts/activate(Activate virtual environment -.venvwill appear in the prompt) - 2.3.
pip install -r requirements.txt(Install required packages - if an error occurs, check the path torequirements.txt) - 2.4.
python app.py(Run this inside the terminal with virtual environment activated)
If started successfully, the Flask log will appear. Open your browser at: http://127.0.0.1:5000/
========
========
src/ │ ├── app.py # Main Flask server ├── templates/ │ ├── index.html # Image upload interface │ └── webcam.html # Realtime webcam interface ├── static/ │ └── uploads/ # Uploaded images and YOLO results ├── requirements.txt # Required Python packages ├── best_face_fake_detector14b211.pth # Custom EfficientNet-B4 checkpoint └── yolo11n.pt # YOLO model