adde gui-demo

This commit is contained in:
Somdev Sangwan 2023-05-28 21:05:38 +05:30 committed by GitHub
parent 674de562c8
commit 763a7aa94c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,8 +18,8 @@ pip3 install -r requirements.txt
4. Download [this file](https://drive.google.com/file/d/1jbDUGrADco9A1MutWjO6d_1dwizh9w9P/view?usp=sharing) and keep it in **roop** directory 4. Download [this file](https://drive.google.com/file/d/1jbDUGrADco9A1MutWjO6d_1dwizh9w9P/view?usp=sharing) and keep it in **roop** directory
### Do you have a decent GPU? ### Do you have a decent GPU?
If you have a good enough GPU, you can use it to speed up the face-swapping process by running `run.py` with `--gpu` flag. If you have a good enough GPU, you can use it to speed-up the face-swapping process by running `run.py` with `--gpu` flag.
If you plan on doing, you will need to install the appropriate `onnxruntime-*` package as follows: If you plan on doing it, you will need to install the appropriate `onnxruntime-*` package as follows:
#### NVIDIA #### NVIDIA
``` ```
@ -37,6 +37,7 @@ pip install build/Linux/Release/dist/*.whl
> Note: When you run this program for the first time, it will download some models ~300MB in size. > Note: When you run this program for the first time, it will download some models ~300MB in size.
Executing `python run.py` command will launch this window: Executing `python run.py` command will launch this window:
![gui-demo](gui-demo.png)
Choose a face (image with desired face) and the target image/video (image/video in which you want to replace the face) and click on `Start`. The output will be saved in `output.mp4` file. Choose a face (image with desired face) and the target image/video (image/video in which you want to replace the face) and click on `Start`. The output will be saved in `output.mp4` file.