mirror of https://github.com/coqui-ai/TTS.git
Extract dataset and model for fairseq models
When we use the model "tts_models/eng/fairseq/vits", got the following error. Error in text to speech: cannot access local variable 'dataset' where it is not associated with a value at line ..../.conda/envs/venv/lib/python3.11/site-packages/TTS/utils/manage.py", line 304, in _set_model_item model_full_name = f"{model_type}--{lang}--{dataset}--{model}"
This commit is contained in:
parent
dbf1a08a0d
commit
0d1aa58fca
|
@ -262,6 +262,8 @@ class ModelManager(object):
|
|||
if "fairseq" in model_name:
|
||||
model_type = "tts_models"
|
||||
lang = model_name.split("/")[1]
|
||||
dataset = model_name.split("/")[2]
|
||||
model = model_name.split("/")[3]
|
||||
model_item = {
|
||||
"model_type": "tts_models",
|
||||
"license": "CC BY-NC 4.0",
|
||||
|
|
Loading…
Reference in New Issue