InfoSwap: Information Bottleneck Disentanglement for Identity Swapping (Official PyTorch Implementation)
Copyright (C) 2021, CRIPAC, NLPR, CASIA. All rights reserved. Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/).
See requirements.txt, tested on Linux platforms.
For pre-trained models, please send a request email with subject "APPLY FOR MODELS" to us and describe in detail your purpose of using the models. Please inform us your name and institution, and use an email address certified by your research institution (e.g., @ia.ac.cn) to send this request, as we need to confirm that our models will not be used for any potential commercial purposes. Thanks for understanding!
Clone this repo:
git clone https://github.com/GGGHSL/InfoSwap-master.git
cd InfoSwap-master
Run the following command:
python inference_demo.py -src [YOUR SOURCE IMAGE] -tar [YOUR DIR OF TARGET IMAGES] -save [YOUR SAVE DIR] --ib_mode [CHOICES: smooth, no_smooth]
The results are stored in results_[INFERENCE_DATE]
folder.