parler-tts icon indicating copy to clipboard operation
parler-tts copied to clipboard

Missing argument error

Open Goya-ye opened this issue 1 year ago • 6 comments

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'

Goya-ye avatar Oct 23 '24 16:10 Goya-ye

same issue here

DerXter avatar Oct 28 '24 21:10 DerXter

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

ylacombe avatar Oct 30 '24 12:10 ylacombe

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.

DerXter avatar Oct 30 '24 13:10 DerXter

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 ?

ylacombe avatar Oct 30 '24 13:10 ylacombe

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.

medemi68 avatar Oct 30 '24 18:10 medemi68

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.

DerXter avatar Oct 30 '24 19:10 DerXter