File size: 1,678 Bytes
b9ccf6e
 
 
 
 
 
 
 
 
223aff6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
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