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
There are uninitialized variables that cause issues when loading the model. I hastily opened a PR and it got auto closed. #3471 . All details are in the PR
To Reproduce
import torch
from TTS.api import TTS
# Get device
device = "cuda" if torch.cuda.is_available() else "cpu"
api = TTS("tts_models/pol/fairseq/vits")
api.tts_with_vc_to_file(
"Dzień dobry",
speaker_wav="speech.wav",
file_path="output.wav"
)
You'll get this error
Traceback (most recent call last):
File "/home/shoaib/temp.py", line 6, in <module>
api = TTS("tts_models/pol/fairseq/vits")
File "/home/shoaib/.local/lib/python3.10/site-packages/TTS/api.py", line 74, in __init__
self.load_tts_model_by_name(model_name, gpu)
File "/home/shoaib/.local/lib/python3.10/site-packages/TTS/api.py", line 171, in load_tts_model_by_name
model_path, config_path, vocoder_path, vocoder_config_path, model_dir = self.download_model_by_name(
File "/home/shoaib/.local/lib/python3.10/site-packages/TTS/api.py", line 129, in download_model_by_name
model_path, config_path, model_item = self.manager.download_model(model_name)
File "/home/shoaib/.local/lib/python3.10/site-packages/TTS/utils/manage.py", line 385, in download_model
model_item, model_full_name, model, md5sum = self._set_model_item(model_name)
File "/home/shoaib/.local/lib/python3.10/site-packages/TTS/utils/manage.py", line 304, in _set_model_item
model_full_name = f"{model_type}--{lang}--{dataset}--{model}"
UnboundLocalError: local variable 'dataset' referenced before assignment
Describe the bug
There are uninitialized variables that cause issues when loading the model. I hastily opened a PR and it got auto closed. #3471 . All details are in the PR
To Reproduce
You'll get this error
Expected behavior
No response
Logs
No response
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: