one-click face swap
Go to file
2024-02-05 21:10:45 +07:00
.github Remove preview files 2023-08-17 22:48:48 +02:00
roop update change and translate to vietnamese 2024-02-05 21:10:45 +07:00
.flake8 Next (#734) 2023-07-19 13:32:58 +02:00
.gitignore Next (#564) 2023-06-20 10:57:07 +02:00
DeepFake.ipynb update change and translate to vietnamese 2024-02-05 21:10:45 +07:00
mypy.ini Next (#583) 2023-06-26 07:49:43 +02:00
README.md update change and translate to vietnamese 2024-02-05 21:10:45 +07:00
requirements.txt Next (#810) 2023-08-03 09:13:17 +02:00
run.py Fix multiple ui opening 2023-06-02 19:58:47 +02:00

Hướng dẫn sử dụng

Chạy trên Google Colab

Open In Colab

Chạy trên local

cd ~
pip install --upgrade pip
git clone https://github.com/tripleseven190504/change-face.git
pip install -r ~/change-face/requirements.txt
pip install fastapi kaleido python-multipart uvicorn
pip install --force-reinstall lida gcsfs google-colab huggingface-hub imageio tensorflow tensorflow-probability torchdata torchtext yfinance
wget https://huggingface.co/ezioruan/inswapper_128.onnx/resolve/main/inswapper_128.onnx -O inswapper_128.onnx
mkdir ~/change-face/models
mv inswapper_128.onnx ~/change-face/models
pip uninstall onnxruntime onnxruntime-gpu -y
pip install torch torchvision torchaudio --force-reinstall --index-url https://download.pytorch.org/whl/cu118
pip install onnxruntime-gpu==1.15.1
cd ~/change-face
python run.py -s ~/face.jpeg -t ~/video.mp4 -o ~/new_video.mp4 --frame-processor face_swapper