Download required checkpoints
mainThe face swap model must be placed in a ./checkpoints directory. For high-quality results, it is recommended to use CodeFormer for face restoration. The required models for CodeFormer will be downloaded automatically during the first inference run if you clone the repository as shown below.
mkdir checkpoints
wget -O ./checkpoints/inswapper_128.onnx https://github.com/facefusion/facefusion-assets/releases/download/models/inswapper_128.onnx
cd ..
git lfs install
git clone https://huggingface.co/spaces/sczhou/CodeFormer