You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,10 @@ python app.py
120
120
121
121
Go to the [releases page](https://github.com/Artrajz/vits-simple-api/releases) and download the latest deployment package. Extract the downloaded files.
122
122
123
+
For compression reasons (and the Github release limiting the size of a single file to 2GB), there are some optional dependency models that are not included in the deployment package, and these are usually downloaded **automatically** by the program when loading the corresponding sound model (if the loaded model requires it).
124
+
125
+
In case the program doesn't download the dependency model manually, or if you find that If the program does not download the sound model automatically and you need to download the dependency model manually, or if you find that the successfully loaded sound model is empty, please read the **Troubleshooting - Successfully loaded model is empty** section below.
126
+
123
127
### Step 2: Start
124
128
125
129
Run `start.bat` to launch the program.
@@ -135,6 +139,8 @@ Download the VITS model files and place them in the `data/models` folder.
135
139
136
140
Starting from version 0.6.6, it is default behavior to automatically load all models in the `data/models` folder, making it easier for beginners to use.
137
141
142
+
(If this is your first time and you don't have any additional special needs, you don't need to know how to load the model manually)
143
+
138
144
#### Manual Model Loading
139
145
140
146
After the initial startup, a config.yaml configuration file will be generated. You need to change `tts_config.auto_load` to `false` in order to enable manual loading mode.
@@ -333,6 +339,25 @@ To ensure compatibility with the Bert-VITS2 model, modify the config.json file b
333
339
334
340
Please note that for the Chinese extra version, the version should be changed to `extra` or `zh-clap`, and for the extra fix version, the version should be `2.4` or `extra-fix`.
335
341
342
+
## Troubleshooting - Successfully loaded models are empty
343
+
First of all, please check if your program directory is a **plain English path** (can't contain any Chinese or special characters), or else you will encounter the situation that the program can't load models even if it doesn't report an error.
344
+
345
+
Secondly, please check if your models are correctly placed (refer to the section of **Manual Model Loading**).
346
+
347
+
Your models should not be placed directly in `data/models`, but in a folder under the models directory (this folder can be any name without special characters), one directory for each sound model.
348
+
349
+
Lastly, check the log for any messages like download failure, you can refer to the following section on **manually placing dependent models**
350
+
351
+
### Manually placing dependency models
352
+
353
+
download https://hf-mirror.com/TencentGameMate/chinese-hubert-base/resolve/main/pytorch_model.bin place in 'data\hubert\chinese_hubert_base'
354
+
355
+
download https://hf-mirror.com/hfl/chinese-roberta-wwm-ext-large/resolve/main/pytorch_model.bin place 'data\bert\chinese-roberta-wwm-ext-large'
356
+
357
+
download https://openi.pcl.ac.cn/Stardust_minus/Bert-VITS2/modelmanage/model_filelist_tmpl?name=G2PWModel-v2-onnx place 'data\G2PWModel'
358
+
359
+
If you don't want to download it from the openi.pcl.ac.cn platform (large files are not available directly from your browser), you can download it here https://huggingface.co/restsun2028/B2ZHTH/blob/b0a8cc2c69c6d1962c679ea2887080a0a86e6bbf/g2pW/g2pW.onnx Get to 'g2pW.onnx'
0 commit comments