This repository contains inference script for Face Swapping as A Simple Arithmetic Operation.
- Python
- PyTorch
- Opencv
- ninja:
pip install ninja
Download the following checkpoint to folder weights
.
To swap two images, run
python inference.py \
--src_img demo/source.jpg \
--tgt_img demo/target.jpg \
--save_dir demo/output.jpg
The swapped image will be saved as demo/output.jpg
Source image | Target image | Output |
---|---|---|