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

Missing argument error #151

Open
Goya-ye opened this issue Oct 23, 2024 · 6 comments
Open

Missing argument error #151

Goya-ye opened this issue Oct 23, 2024 · 6 comments

Comments

@Goya-ye
Copy link

Goya-ye commented Oct 23, 2024

when i run the demo code ("Hey, how are you doing today?") offered, it has the error info"GenerationMixin._sample() missing 1 required positional argument: 'logits_warper'

@DerXter
Copy link

DerXter commented Oct 28, 2024

same issue here

@ylacombe
Copy link
Collaborator

You should be able to do it now, if you reinstall from the latest version

@DerXter
Copy link

DerXter commented Oct 30, 2024

Thank you for your support. From the last Transformers version (4.46.1), I'm getting this error:

ValueError: 'dac' is already used by a Transformers config, pick another name.

@ylacombe
Copy link
Collaborator

I don't get this on my side, could you double check that you reinstall parler following those instructions: https://github.com/huggingface/parler-tts?tab=readme-ov-file#installation ?

@medemi68
Copy link

medemi68 commented Oct 30, 2024

Hey, I am getting this error as well on a fresh install where no previous version was installed before:

Traceback (most recent call last):

  File "/parler-tts/parler_tts/__init__.py", line 8, in <module>
    from .modeling_parler_tts import (
  File "/parler-tts/parler_tts/modeling_parler_tts.py", line 64, in <module>
    AutoConfig.register("dac", DACConfig)
  File "/usr/local/lib/python3.11/dist-packages/transformers/models/auto/configuration_auto.py", line 1070, in register
    CONFIG_MAPPING.register(model_type, config, exist_ok=exist_ok)
  File "/usr/local/lib/python3.11/dist-packages/transformers/models/auto/configuration_auto.py", line 769, in register
    raise ValueError(f"'{key}' is already used by a Transformers config, pick another name.")
ValueError: 'dac' is already used by a Transformers config, pick another name.

@DerXter
Copy link

DerXter commented Oct 30, 2024

Hello @ylacombe, thank you very much for your support, it's working fine now. The sound quality is just amazing, kudos to you for the great work. @medemi68 Try uninstalling your Transformers and ParlerTTS and only reinstall Parler as follows:

pip uninstall transformers
pip uninstall parler-tts -y
pip install --no-cache-dir --upgrade git+https://github.com/huggingface/parler-tts.git

If you're working with a jupyter notebook, don't forget to reboot the kernel before trying again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants