-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Web] Unable to change log level and hide warning messages when creating inference session from buffer #17377
Comments
I build main branch and tested locally and cannot reproduce this issue. I will do a test on 1.15.1 later |
I can reproduce this issue on 1.15.1 and 1.16.0. However, my local build seems has no issue. I am taking further investigations. |
I found the root cause. So this was a bug and it's fixed in main branch. However unfortunately v1.16 release does not include this change. I will check if we are able to do this bugfix in 1.16.1 patch |
Great, thanks for that! |
### Description fix session option access in Node.js binding ### Motivation and Context This is a bug that affect transformer.js using ONNX Runtime Node.js binding. Issue: #17377 This bug is already fixed in main branch, but it is not picked in 1.16 release.
v1.16.1 is released with this fix. |
Getting these again. Any way to filter them out? Its overwhelming my console
|
@wesbos The issue should be fixed in v1.16.1. If you are just asking about how to deal with the warning messages, here are the solutions -
|
For those who are still stumped, adding a nodejs code snippet here to set log level to 3 . warning levels
your code
|
Describe the issue
It is impossible to disable warning messages generated when creating an onnx session if you use a buffer to create the model (instead of a path).
Linked to:
CleanUnusedInitializersAndNodeArgs
warnings are printed only with subgraphs #14694cc @fs-eire @guschmue
To reproduce
Get model files. For this example, I'll use whisper-tiny.en's decoder, but it happens for most models.
or just download the single onnx file needed from here.
Run this code:
See output:
WORKING:
BROKEN:
Urgency
Blocks the following issues from being fixed in transformers.js:
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.15.1
Execution Provider
'wasm'/'cpu' (WebAssembly CPU)
The text was updated successfully, but these errors were encountered: