-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
IndexError: index -1 is out of bounds for dimension 1 with size 0 #24600
Comments
Hey @diaojunxian 👋 Your reproducer contains private data, which means we can't easily reproduce on our end -- would you be able to share the audio file with us OR rewrite the reproducer from public data? At a first glance, because of the thrown exception ( |
I can send it to you privately, but it cannot be published on the Internet. Only you can personally verify this bug. Can you see it? |
@diaojunxian yeah, that would be helpful. You can send it to the email attached to my GH account (joaofranciscocardosogante@gmail.com) You are using an unmodified |
yes, unmodified whisper-large-v2, and had send the audio to the gmail. |
Hey @diaojunxian 👋 In both snippets, the problem is the same: as soon as the model tries to generate beyond its maximum length, the output sequence dimension becomes 0, causing the exception. I've found the issue and will open a PR to fix it. The second example you provided works perfectly after the fix. The first one probably will fail because of |
After the PR linked above gets merged, you can install from |
System Info
PC: M2
transformers== 4.31.0.dev0
refer: openai/whisper#1478
meet the error:
use these code all occur error.
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Expected behavior
the audio can transform to the context.
The text was updated successfully, but these errors were encountered: