# 7-MobileFaceSwap **Repository Path**: ppandaer/7-mobile-face-swap ## Basic Information - **Project Name**: 7-MobileFaceSwap - **Description**: 77777777777777777777777 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-26 - **Last Updated**: 2024-05-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### [MobileFaceSwap: A Lightweight Framework for Video Face Swapping (AAAI 2022)](https://arxiv.org/abs/2201.03808) --- **Dependencies** - paddlepaddle==2.1.2 - insightface==0.2.1 - opencv - numpy **Getting Started** 1. The pretrained models can be downloaded from [Baidu Drive](https://pan.baidu.com/s/14_Wat-OA6ljGfR3Hk8Fk6A) (passward:f6wu) or [Google Drive](https://drive.google.com/file/d/1ZIzGLDB15GRAZAbkfNR0hNWdgQpxeA_r/view?usp=sharing). 2. Run the codes as follows for image or video tests. ``` python image_test.py --target_img_path data/xxx.png --source_img_path data/xxx.png --output_dir results --use_gpu True python video_test.py --target_video_path data/xxx.mp4 --source_img_path data/xxx.png --output_dir results --use_gpu True ``` **Results** ![](docs/demo.png) ![](docs/video.gif) **Citation** ``` @inproceedings{xu2022MobileFaceSwap, title={MobileFaceSwap: A Lightweight Framework for Video Face Swapping}, author={Xu, Zhiliang and Hong, Zhibin and Ding, Changxing and Zhu, Zhen and Han, Junyu and Liu, Jingtuo and Ding, Errui}, booktitle={Proceedings of the AAAI Conference on Artificial Intelligence}, year={2022} } ```