Welcome to the π Painted Skin π! Get ready to have some fun with faces. π
-
Clone the Repository:
git clone https://github.com/BlackThompson/Painted-Skin.git
-
Create a New Environment and Install Dependencies:
- Note: Python version should be >=3.8
- Note: The versions of
torch
,torchvision
, andtorchaudio
should align with your CUDA version.
conda create --name painted_skin python=3.8 conda activate painted_skin pip install -r requirements.txt
-
Run
gradio_UI.py
:gradio gradio_UI.py
-
Click the Local URL
This tool allows you to perform a face swap. Simply follow these steps:
- Upload Source:
- Choose between
src_picture
andsrc_video
for the face you want to swap. - Note: You can only upload one source at a time, and the tool processes one task at a time.
- Choose between
- Upload Target:
- Upload
target_picture
, and our model will swap the face onto the source image or video.
- Upload
- Submit and Wait:
- Click the submit button and patiently wait for the process to complete.
- Keep in mind that face swapping in videos might take some time, so be patient! π
- If you are able to load
src_picture
but encounter issues with loadingsrc_video
, please ensure that you have downloaded FFmpeg and correctly added itsbin
directory to your system path. - Ensure that
target_picture
is uploaded for the face swap to work effectively.
Enjoy swapping faces and have a good laugh! π
This repository borrows heavily from facefusion-damo and face-change. Thanks to the authors for sharing their code and models.