Video: https://youtu.be/8PiLAn2j9gw
Make sure the project folder contains the required Python files:
(https://github.com/hkuspace-pu/Deekfake-detection/tree/main/Frontend)
deepfake_streamlit_modular/
│
├── app.py
├── config.py
├── model_architectures.py
├── checkpoint_utils.py
├── image_processing.py
├── inference.py
├── ui_components.py
├── requirements.txt
└── models/
The models/ folder should contain the trained .pth model files, for example:
models/
├── spatial_resnet50_final_state_dict.pth
└── dft_resnet50_final_state_dict.pth
Open a terminal inside the project folder.
conda create -n deepfake_app python=3.10
conda activate deepfake_app
python -m venv deepfake_app_env
Activate on Windows PowerShell:
deepfake_app_env\Scripts\activate
Activate on Git Bash:
source deepfake_app_env/Scripts/activate