-
Notifications
You must be signed in to change notification settings - Fork 790
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
Uncaught (in promise) Error: failed to call OrtRun(). error code = 6 #54
Comments
Could you post the code you used? I'm not currently at my computer, so I can't run it yet, but one potential issue is that it's a .webm video file, which might be messing with the audio extraction part of the code. |
Here is what I'm using in my worker file:
|
Okay, one problem is that you are creating the model each time the function is run. Note that I would recommend creating a factory/singleton class to handle this, to ensure that only one model is created |
@xenova do you think it's okay if I just call pipe.dispose() ?
|
Yep, It's an asynchronous function, so, if you want to make 100% the resources are cleaned up before progressing, remember to await its result. Here's some example usage: https://github.com/xenova/transformers.js/blob/main/tests/index.js |
I noticed that the |
Hmmm, perhaps. I'll do some testing tonight 👍 |
I made some updates to the ONNX models (exporting after HF made some fixes):
and I tested all 6 models on my side (tiny/base/small for english-only/multilingual), and everything seemed to work correctly! I'll close the issue for now, but feel free to reopen or open a new issue if you have any problems/questions! |
Confirmed it now works. |
Describe the bug
A clear and concise description of what the bug is.
How to reproduce
Steps or a minimal working example to reproduce the behavior
Expected behavior
A clear and concise description of what you expected to happen.
Try on this audio file in Chrome for macOS
Logs/screenshots
If applicable, add logs/screenshots to help explain your problem.
Environment
file.webm
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: