coqui-ai / TTS

🐸💬 - a deep learning toolkit for Text-to-Speech, battle-tested in research and production
http://coqui.ai
Mozilla Public License 2.0
31.64k stars 3.78k forks source link

UnboundLocalError: local variable 'dataset' referenced before assignment [Bug] #3744

Open qyum opened 1 month ago

qyum commented 1 month ago

Describe the bug

i got the error from following code

TTS with on the fly voice conversion

bug

api = TTS("tts_models/ben/fairseq/vits")

To Reproduce

bug

Expected behavior

No response

Logs

TTS.utils.manage.ModelManager object at 0x7d4d9a33d3f0>
---------------------------------------------------------------------------
UnboundLocalError                         Traceback (most recent call last)
<ipython-input-10-d1f358930bab> in <cell line: 3>()
      1 print(TTS().list_models())
      2 # TTS with on the fly voice conversion
----> 3 api = TTS("tts_models/ben/fairseq/vits")

4 frames
/usr/local/lib/python3.10/dist-packages/TTS/utils/manage.py in _set_model_item(self, model_name)
    302             model_item["model_type"] = model_type
    303 
--> 304         model_full_name = f"{model_type}--{lang}--{dataset}--{model}"
    305         md5hash = model_item["model_hash"] if "model_hash" in model_item else None
    306         model_item = self.set_model_url(model_item)

UnboundLocalError: local variable 'dataset' referenced before assignment

Environment

Use google colab

Additional context

No response

eginhard commented 1 month ago

This is fixed in our fork, available via pip install coqui-tts

HardikJain02 commented 1 month ago

@qyum any workaround?

eginhard commented 1 month ago

@HardikJain02 This repo is not maintained anymore. But it's fixed in our fork, available via pip install coqui-tts