Skip to content

Instantly share code, notes, and snippets.

@zhitongLIU
Created June 30, 2021 10:28
Show Gist options
  • Save zhitongLIU/d90276aa0f482254178ebf0019635963 to your computer and use it in GitHub Desktop.
Save zhitongLIU/d90276aa0f482254178ebf0019635963 to your computer and use it in GitHub Desktop.
SimSwap installation

https://www.youtube.com/watch?v=1NWJz_rFMq0

  1. download anaconda3 from link
  2. download simswap project from link, extract and place it somewhere
  3. download antelope from link or link
  4. create folder models in SimSwap-main\insightface_func\ extract antelope inside
  5. download pretrained files (checkpoints.zip and arcface_checkpoint.tar) from link
  6. create folder arcface_model under SimSwap-main\ , place arcface_checkpoint.tar inside
  7. unzip checkpoints.zip inside SimSwap-main\
  8. open anaconda prompt and cd to SimSwap-main\ folder location
  9. run command conda create -n simswap python=3.6 to create environment
  10. run command conda activate simswap to activate env
  11. run command conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=10.2 -c pytorch
  12. run command pip install --ignore-installed imageio
  13. run command pip install insightface==0.2.1 onnxruntime moviepy
  14. launch swap
python test_video_swapsingle.py --isTrain false  --name people --Arc_path arcface_model/arcface_checkpoint.tar --pic_a_path ./demo_file/Iron_man.jpg --video_path ./demo_file/mutil_people_1080p.mp4 --output_path ./output/mutil_test_swapsingle.mp4 --temp_path ./temp_results

or more command on https://github.com/neuralchen/SimSwap/blob/main/docs/guidance/usage.md

  1. optional: remove watermark open util/add_watermark.py change line 80 to
		def apply_frames(self, frame):
        return frame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment