TTS server and xtts not works with fine tuned models (#3476) #3544
Replies: 3 comments 6 replies
-
Currently attempting to run a fine tuned xtts v2 model like (with these changes applied: bivashy:fix/xtts-server-error) : and
Neither works and returns this error: |
Beta Was this translation helpful? Give feedback.
-
Here are readable format of the error: Traceback (most recent call last):
File "/usr/local/bin/tts-server", line 33, in <module>
sys.exit(load_entry_point('TTS', 'console_scripts', 'tts-server')())
File "/usr/local/bin/tts-server", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/root/TTS/server/server.py", line 104, in <module>
synthesizer = Synthesizer(
File "/root/TTS/utils/synthesizer.py", line 93, in __init__
self._load_tts(tts_checkpoint, tts_config_path, use_cuda)
File "/root/TTS/utils/synthesizer.py", line 183, in _load_tts
self.tts_config = load_config(tts_config_path)
File "/root/TTS/config/__init__.py", line 97, in load_config
config_class = register_config(model_name.lower())
File "/root/TTS/config/__init__.py", line 40, in register_config
from TTS.tts.configs.xtts_config import XttsConfig
File "/root/TTS/tts/configs/xtts_config.py", line 5, in <module>
from TTS.tts.models.xtts import XttsArgs, XttsAudioConfig
File "/root/TTS/tts/models/xtts.py", line 67, in <module>
manager = ModelManager(path)
File "/root/TTS/utils/manage.py", line 56, in __init__
self.read_models_file(models_file)
File "/root/TTS/utils/manage.py", line 68, in read_models_file
self.models_dict = read_json_with_comments(file_path)
File "/root/TTS/config/__init__.py", line 17, in read_json_with_comments
with fsspec.open(json_path, "r", encoding="utf-8") as f:
File "/usr/local/lib/python3.10/dist-packages/fsspec/core.py", line 103, in __enter__
f = self.fs.open(self.path, mode=mode)
File "/usr/local/lib/python3.10/dist-packages/fsspec/spec.py", line 1295, in open
f = self._open(
File "/usr/local/lib/python3.10/dist-packages/fsspec/implementations/local.py", line 180, in _open
return LocalFileOpener(path, mode, fs=self, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/fsspec/implementations/local.py", line 302, in __init__
self._open()
File "/usr/local/lib/python3.10/dist-packages/fsspec/implementations/local.py", line 307, in _open
self.f = open(self.path, mode=self.mode)
FileNotFoundError: [Errno 2] No such file or directory: '/root/TTS/tts/models/../.models.json' For some reason in Maybe you've downloaded/using modified tts? |
Beta Was this translation helpful? Give feedback.
-
OK, so I finally got this working. I had to modify /root/TTS/utils/synthesizer.py with the following
Now I'm able to generate TTS via the web page. The main usage for me was to link this up with home assistant (Mary TTS integration). I'll test that today to make sure everything works correctly. |
Beta Was this translation helpful? Give feedback.
-
Question: #3476 (comment)
Beta Was this translation helpful? Give feedback.
All reactions