Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qyum opened this issue May 16, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@qyum
Copy link

qyum commented May 16, 2024

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

@qyum qyum added the bug Something isn't working label May 16, 2024
@eginhard
Copy link
Contributor

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

@HardikJain02
Copy link

@qyum any workaround?

@eginhard
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants