mirror of
https://github.com/s0md3v/roop.git
synced 2025-12-06 18:08:29 +00:00
one-click face swap
| .github | ||
| roop | ||
| .flake8 | ||
| .gitignore | ||
| DeepFake.ipynb | ||
| mypy.ini | ||
| README.md | ||
| requirements.txt | ||
| run.py | ||
Hướng dẫn sử dụng
Chạy trên Google 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