/swapFaces

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

swapFaces

DEMO: demo1-jpg

Install the following dependencies:

  1. python3
  2. pip
  3. ffmpeg
  4. visual studio 2022 runtimes (windows)

pip install -r requirements.txt

CLI Commands

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