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: docs/source/faq.md
+38-16
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,43 @@
1
1
# FAQ
2
-
We tried to collect common issues and questions we receive about 🐸TTS. It is worth checking before going deeper.
2
+
We tried to collect common issues and questions we receive about 🐸TTS. It is
3
+
worth checking before going deeper.
3
4
4
-
## Errors with a pre-trained model. How can I resolve this?
5
-
- Make sure you use the right commit version of 🐸TTS. Each pre-trained model has its corresponding version that needs to be used. It is defined on the model table.
6
-
- If it is still problematic, post your problem on [Discussions](https://github.com/idiap/coqui-ai-TTS/discussions). Please give as many details as possible (error message, your TTS version, your TTS model and config.json etc.)
7
-
- If you feel like it's a bug to be fixed, then prefer Github issues with the same level of scrutiny.
5
+
## Using Coqui
8
6
9
-
## What are the requirements of a good 🐸TTS dataset?
7
+
### Where does Coqui store downloaded models?
8
+
9
+
The path to downloaded models is printed when running `tts --list_models`.
10
+
Default locations are:
11
+
12
+
-**Linux:**`~/.local/share/tts`
13
+
-**Mac:**`~/Library/Application Support/tts`
14
+
-**Windows:**`C:\Users\<user>\AppData\Local\tts`
15
+
16
+
You can change the prefix of this `tts/` folder by setting the `XDG_DATA_HOME`
17
+
or `TTS_HOME` environment variables.
18
+
19
+
### Errors with a pre-trained model. How can I resolve this?
20
+
- Make sure you use the latest version of 🐸TTS. Each pre-trained model is only
21
+
supported from a certain minimum version.
22
+
- If it is still problematic, post your problem on
23
+
[Discussions](https://github.com/idiap/coqui-ai-TTS/discussions). Please give
24
+
as many details as possible (error message, your TTS version, your TTS model
25
+
and config.json etc.)
26
+
- If you feel like it's a bug to be fixed, then prefer Github issues with the
27
+
same level of scrutiny.
28
+
29
+
## Training Coqui models
30
+
31
+
### What are the requirements of a good 🐸TTS dataset?
10
32
-[See this page](datasets/what_makes_a_good_dataset.md)
11
33
12
-
## How should I choose the right model?
34
+
###How should I choose the right model?
13
35
- First, train Tacotron. It is smaller and faster to experiment with. If it performs poorly, try Tacotron2.
14
36
- Tacotron models produce the most natural voice if your dataset is not too noisy.
15
37
- If both models do not perform well and especially the attention does not align, then try AlignTTS or GlowTTS.
16
38
- If you need faster models, consider SpeedySpeech, GlowTTS or AlignTTS. Keep in mind that SpeedySpeech requires a pre-trained Tacotron or Tacotron2 model to compute text-to-speech alignments.
17
39
18
-
## How can I train my own `tts` model?
40
+
###How can I train my own `tts` model?
19
41
20
42
```{note} XTTS has separate fine-tuning scripts, see [here](models/xtts.md#training).
21
43
```
@@ -70,13 +92,13 @@ We tried to collect common issues and questions we receive about 🐸TTS. It is
70
92
**Note:** You can also train your model using pure 🐍 python. Check the
71
93
[tutorial](tutorial_for_nervous_beginners.md).
72
94
73
-
## How can I train in a different language?
95
+
### How can I train in a different language?
74
96
- Check steps 2, 3, 4, 5 above.
75
97
76
-
## How can I train multi-GPUs?
98
+
### How can I train multi-GPUs?
77
99
- Check step 5 above.
78
100
79
-
## How can I check model performance?
101
+
### How can I check model performance?
80
102
- You can inspect model training and performance using ```tensorboard```. It will show you loss, attention alignment, model output. Go with the order below to measure the model performance.
81
103
1. Check ground truth spectrograms. If they do not look as they are supposed to, then check audio processing parameters in ```config.json```.
82
104
2. Check train and eval losses and make sure that they all decrease smoothly in time.
@@ -91,7 +113,7 @@ We tried to collect common issues and questions we receive about 🐸TTS. It is
91
113
- 'bidirectional_decoder' is your ultimate savior, but it trains 2x slower and demands 1.5x more GPU memory.
92
114
- You can also try the other models like AlignTTS or GlowTTS.
93
115
94
-
## How do I know when to stop training?
116
+
### How do I know when to stop training?
95
117
There is no single objective metric to decide the end of a training since the voice quality is a subjective matter.
96
118
97
119
In our model trainings, we follow these steps;
@@ -104,17 +126,17 @@ In our model trainings, we follow these steps;
104
126
Keep in mind that the approach above only validates the model robustness. It is hard to estimate the voice quality without asking the actual people.
105
127
The best approach is to pick a set of promising models and run a Mean-Opinion-Score study asking actual people to score the models.
106
128
107
-
## My model does not learn. How can I debug?
129
+
### My model does not learn. How can I debug?
108
130
- Go over the steps under "How can I check model performance?"
109
131
110
-
## Attention does not align. How can I make it work?
132
+
### Attention does not align. How can I make it work?
111
133
- Check the 4th step under "How can I check model performance?"
112
134
113
-
## How can I test a trained model?
135
+
### How can I test a trained model?
114
136
- The best way is to use `tts` or `tts-server` commands. For details check [here](inference.md).
115
137
- If you need to code your own ```TTS.utils.synthesizer.Synthesizer``` class.
116
138
117
-
## My Tacotron model does not stop - I see "Decoder stopped with 'max_decoder_steps" - Stopnet does not work.
139
+
### My Tacotron model does not stop - I see "Decoder stopped with 'max_decoder_steps" - Stopnet does not work.
118
140
- In general, all of the above relates to the `stopnet`. It is the part of the model telling the `decoder` when to stop.
119
141
- In general, a poor `stopnet` relates to something else that is broken in your model or dataset. Especially the attention module.
120
142
- One common reason is the silent parts in the audio clips at the beginning and the ending. Check ```trim_db``` value in the config. You can find a better value for your dataset by using ```CheckSpectrogram``` notebook. If this value is too small, too much of the audio will be trimmed. If too big, then too much silence will remain. Both will curtail the `stopnet` performance.
0 commit comments