mirror of
https://github.com/s0md3v/roop.git
synced 2025-12-06 18:08:29 +00:00
Update README.md
This commit is contained in:
parent
ab0804f2f4
commit
8fde7237aa
35
README.md
35
README.md
@ -6,7 +6,9 @@
|
||||
|
||||
## Chạy trên local
|
||||
|
||||
``` bash
|
||||
### Linux
|
||||
|
||||
```bash
|
||||
cd ~
|
||||
pip install --upgrade pip
|
||||
git clone https://github.com/tripleseven190504/change-face.git
|
||||
@ -21,7 +23,36 @@ pip install torch torchvision torchaudio --force-reinstall --index-url https://d
|
||||
pip install onnxruntime-gpu==1.15.1
|
||||
```
|
||||
|
||||
``` bash
|
||||
```bash
|
||||
cd ~/change-face
|
||||
python run.py -s ~/face.jpeg -t ~/video.mp4 -o ~/new_video.mp4 --frame-processor face_swapper
|
||||
```
|
||||
|
||||
### Windows
|
||||
|
||||
Download [Cuda](https://developer.download.nvidia.com/compute/cuda/11.8.0/network_installers/cuda_11.8.0_windows_network.exe)
|
||||
|
||||
```batch
|
||||
@echo off
|
||||
cd %USERPROFILE%\Desktop
|
||||
winget install -e --id Git.Git
|
||||
winget install -e --id Gyan.FFmpeg
|
||||
winget install -e --id Microsoft.VCRedist.2015+.x64
|
||||
winget install -e --id Microsoft.VisualStudio.2022.BuildTools --override "--wait --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended"
|
||||
pip install --upgrade pip
|
||||
git clone https://github.com/tripleseven190504/change-face.git
|
||||
pip install fastapi kaleido python-multipart uvicorn
|
||||
pip install --force-reinstall lida gcsfs google-colab huggingface-hub imageio tensorflow tensorflow-probability torchdata torchtext yfinance
|
||||
pip install -r %USERPROFILE%\Desktop\change-face\requirements.txt
|
||||
wget https://huggingface.co/ezioruan/inswapper_128.onnx/resolve/main/inswapper_128.onnx -O inswapper_128.onnx
|
||||
mkdir %USERPROFILE%\Desktop\change-face\models
|
||||
move inswapper_128.onnx %USERPROFILE%\Desktop\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
|
||||
|
||||
```
|
||||
```batch
|
||||
cd %USERPROFILE%\Desktop\change-face\
|
||||
python run.py -s %USERPROFILE%\Desktop\change-face\face.jpg -t %USERPROFILE%\Desktop\change-face\video.mp4 -o %USERPROFILE%\Desktop\change-face\new_video.mp4 --frame-processor face_swapper
|
||||
```
|
||||
|
||||
Loading…
Reference in New Issue
Block a user