huggingface / candle

Minimalist ML framework for Rust
Apache License 2.0
15.06k stars 877 forks source link

Parler-TTS Errors #2441

Open darxkies opened 3 weeks ago

darxkies commented 3 weeks ago

When running the Parler-TTS example commands it ends with the following error:

Error: index-select invalid index 1024 with dim size 1024

It works with CUDA though, but only as long as the default prompt is not changed. If it is changed the generated audio is incomplete.

It also crashes when choosing the mini model with the error:

Error: request error: https://huggingface.co/parler-tts/parler-tts-mini-v1/resolve/main/model.safetensors.index.json: status code 404

Caused by:
    https://huggingface.co/parler-tts/parler-tts-mini-v1/resolve/main/model.safetensors.index.json: status code 404
LaurentMazare commented 3 weeks ago

Thanks for reporting this, for the first error I just pushed #2442 which should get things to work on cpu. I've also added support for the mini model via --which mini-v1. For incomplete generation, you may want to try increasing the temperature with --temperature 0.6 or try other values. I've also found the python version to be a bit unstable on low temperatures so not sure how much of the issue comes from candle (I haven't been able to find the usual TTS evaluation metrics like word error rate to get a sense of the quality to expect from this TTS so it's hard to know what to expect here).