Using TTS api to load a fine tuned model repo at HF #230
Closed
ROBERT-MCDOWELL
started this conversation in
General
Replies: 2 comments
-
Loading models from HuggingFace is not supported, you can only load the models defined in Your model also has an incorrect license - XTTS is licensed CPML. |
Beta Was this translation helpful? Give feedback.
0 replies
-
ok thanks. the model I use is a test, nothing official |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
my repo at HF is zermok/BobRoss and use the api TTS("zermok/BobRoss") to load it as a simple way.
but I get:
Loading TTS xtts model from zermok/BobRoss...
Traceback (most recent call last):
File "E:\Z______MYDATA\DEV\ebook2audiobook-2.0.0\lib\functions.py", line 516, in convert_chapters_to_audio
params['tts'] = XTTS(model_name=models[params['tts_model']][session['fine_tuned']]['repo'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Z______MYDATA\DEV\ebook2audiobook-2.0.0\python_env\Lib\site-packages\TTS\api.py", line 101, in init
self.load_model_by_name(model_name, vocoder_name, gpu=gpu)
File "E:\Z______MYDATA\DEV\ebook2audiobook-2.0.0\python_env\Lib\site-packages\TTS\api.py", line 184, in load_model_by_name
self.load_tts_model_by_name(model_name, vocoder_name, gpu=gpu)
File "E:\Z______MYDATA\DEV\ebook2audiobook-2.0.0\python_env\Lib\site-packages\TTS\api.py", line 211, in load_tts_model_by_name
model_path, config_path, model_dir = self.download_model_by_name(model_name, vocoder_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Z______MYDATA\DEV\ebook2audiobook-2.0.0\python_env\Lib\site-packages\TTS\api.py", line 161, in download_model_by_name
model_path, config_path, model_item = self.manager.download_model(model_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Z______MYDATA\DEV\ebook2audiobook-2.0.0\python_env\Lib\site-packages\TTS\utils\manage.py", line 375, in download_model
model_item, model_full_name, model, md5sum = self._set_model_item(model_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Z______MYDATA\DEV\ebook2audiobook-2.0.0\python_env\Lib\site-packages\TTS\utils\manage.py", line 290, in _set_model_item
model_type, lang, dataset, model = model_name.split("/")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 4, got 2)
Caught DependencyError: not enough values to unpack (expected 4, got 2)
Beta Was this translation helpful? Give feedback.
All reactions