vits_onnx / README.md
chocolatedesue
add metedata
b9ccf6e
|
raw
history blame
1.68 kB
---
title: vits_onnx
emoji: 🐳
colorFrom: purple
colorTo: gray
sdk: docker
app_port: 7860
---
## onnx inference server in docker container
### Copy the demo web from [link](https://huggingface.co/spaces/skytnt/moe-japanese-tts/tree/main)
> Thanks a lot to [@CjangCjengh](https://github.com/CjangCjengh)
> Thanks a lot to [wetts](https://github.com/wenet-e2e/wetts)
***Only used for entertainment.
Don't used for bussiness***
### quick start
> To use other model and config<br> please use -v /path/to/dir:/app/.model to mount your model and config
```shell
export name=vits_onnx
docker stop $name
docker rm $name
docker run -d \
--name $name \
-p 7860:7860 \
ccdesue/vits_demo:onnx
# -v /path/to/dir:/app/.model
```
### dir structure
```
β”œβ”€β”€ app # gradio code
β”œβ”€β”€ build.sh
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ export # some util for export model
β”œβ”€β”€ LICENSE
β”œβ”€β”€ poetry.lock
β”œβ”€β”€ __pycache__
β”œβ”€β”€ pyproject.toml
β”œβ”€β”€ README.md
β”œβ”€β”€ setup.sh
└── util # some posibile util
```
### Helpful info
1. please read the source code to better understand
2. refer to the demo config.json to tail to your own model config
3. refer the dockerfile
### limitation
1. only test on japanese_cleaners and japanese_cleaners2 in config.json with [raw vits](https://github.com/jaywalnut310/vits)
### Reference
1. [vits_export_discussion](https://github.com/MasayaKawamura/MB-iSTFT-VITS/issues/8)
2. [other_vits_onnx](https://github.com/NaruseMioShirakana/VitsOnnx)
3. [wetts](https://github.com/wenet-e2e/wetts)
4. [android_vits](https://github.com/weirdseed/Vits-Android-ncnn)
### license
GPLv2