Install the following dependencies:
- python3
- pip
- ffmpeg
- visual studio 2022 runtimes (windows)
pip install -r requirements.txt
python swapFacesMain.py (Use this to do swaping on multiple videos in a directory)
python swapFacesMain.py --[options]
options:
-f SOURCE_IMG, --face SOURCE_IMG
use this face
-t TARGET_PATH, --target TARGET_PATH
replace this face
-o OUTPUT_FILE, --output OUTPUT_FILE
save output to this file
--gpu use gpu
--keep-fps maintain original fps