add onnxslim support

Signed-off-by: inisis <desmond.yao@buaa.edu.cn>
pull/215/head
inisis 2024-08-12 11:51:24 +00:00
parent 78c808ef36
commit 00f2e8c34e
2 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,10 @@ Users of this software are expected to use this software responsibly while abidi
1. [GFPGANv1.4](https://huggingface.co/hacksider/deep-live-cam/resolve/main/GFPGANv1.4.pth)
2. [inswapper_128_fp16.onnx](https://huggingface.co/hacksider/deep-live-cam/resolve/main/inswapper_128_fp16.onnx)
Then put those 2 files on the "**models**" folder
Then put those 2 files on the "**models**" folder, you can further optimize inswapper_128_fp16.onnx by using [onnxslim](https://github.com/inisis/OnnxSlim)
```
onnxslim inswapper_128_fp16.onnx inswapper_128_fp16.onnx
```
#### 4. Install dependency
We highly recommend to work with a `venv` to avoid issues.

View File

@ -22,3 +22,4 @@ protobuf==4.23.2
tqdm==4.66.4
gfpgan==1.3.8
pyobjc==9.1; sys_platform == 'darwin'
onnxslim