-
Notifications
You must be signed in to change notification settings - Fork 478
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
Synthesizing some phrases triggers onnx error ("GatherElements op: Out of range value in index tensor") #520
Comments
just encountered the same issue a downgrade to the 1.17.1 for me resolved this issue seems to be a bug in the 1.18 version |
Thanks for the hint, I can confirm downgrading onnxruntime solves the problem for now! I guess this is related to microsoft/onnxruntime#20877. I initially ran into that thread but got discouraged from trying to downgrade as this didn’t seem to help the last participant, while the actual solution (changing "some of the tensors from int64 to int when calculating the metric on the prediction") was completely over my head 🙃 |
yeh thanks it also worked for me. But really I didn't get it why it didn't worked in 1.18 version |
Thanks for figuring this out. We had the same problem! |
I am facing this issue as well |
It still appears in latest piper version on Ubuntu linux 22.04.5 LTS. It seems this error relies on the text length used. On some speech models, processing is going futher, on some not. also the length of the processed text sometime varies. |
Hi, I’m currently trying to track down an issue when using the current Piper version with Python that came up after a recent system update. This runs in a venv with Python 3.11.9 (can’t test this in my main Python version 3.12.3 because of issue #509 for now). The following minimal example, trying to synthesizing the text "This is a test. This is a Test.", reproducibly produces the following rather strange error which seems to be related to onnx:
Here is the minimal example (stripped down version of a much larger project):
As you can see, shortening the text makes this work again for some reason. Before the system update this kind of error never came up. This uses onnxruntime-1.18.0, piper_phonemize-1.1.0., and piper_tts-1.2.0.
This works fine in the binary version of Piper, by the way.
The text was updated successfully, but these errors were encountered: