Skip to content
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

env.backends.onnx.logLevel = "fatal"; does not work #529

Open
1 of 5 tasks
sroussey opened this issue Jan 22, 2024 · 4 comments · May be fixed by #530 or #545
Open
1 of 5 tasks

env.backends.onnx.logLevel = "fatal"; does not work #529

sroussey opened this issue Jan 22, 2024 · 4 comments · May be fixed by #530 or #545
Labels
bug Something isn't working

Comments

@sroussey
Copy link

System Info

2.14.0 on MacOS node env

Environment/Platform

  • Website/web-app
  • Browser extension
  • Server-side (e.g., Node.js, Deno, Bun)
  • Desktop app (e.g., Electron)
  • Other (e.g., VSCode extension)

Description

env.backends.onnx.logLevel = "fatal";

This does not have an effect as expected.

When creating a pipeline, in options, setting a config with {log_severity_level:4} works but breaks other things as it is not added to a config, but overwrites it.

Reproduction

I have a nice little download progress bar but I can't see it when it floods with messages like

2024-01-21 20:57:14.104 bun[74866:28886536] 2024-01-21 20:57:14.103988 [W:onnxruntime:, graph.cc:3553 CleanUnusedInitializersAndNodeArgs] Removing initializer '/decoder/block.0/layer.2/DenseReluDense/act/Constant_4_output_0'. It is not used by any node and should be removed from the model.
2024-01-21 20:57:14.104 bun[74866:28886536] 2024-01-21 20:57:14.104000 [W:onnxruntime:, graph.cc:3553 CleanUnusedInitializersAndNodeArgs] Removing initializer '/decoder/block.18/layer.2/DenseReluDense/act/Constant_2_output_0'. It is not used by any node and should be removed from the model.
2024-01-21 20:57:14.104 bun[74866:28886536] 2024-01-21 20:57:14.104009 [W:onnxruntime:, graph.cc:3553 CleanUnusedInitializersAndNodeArgs] Removing initializer '/decoder/block.13/layer.2/DenseReluDense/act/Constant_4_output_0'. It is not used by any node and should be removed from the model.
2024-01-21 20:57:14.104 bun[74866:28886536] 2024-01-21 20:57:14.104019 [W:onnxruntime:, graph.cc:3553 CleanUnusedInitializersAndNodeArgs] Removing initialize
@sroussey sroussey added the bug Something isn't working label Jan 22, 2024
@sroussey
Copy link
Author

Just in case it is upstream: microsoft/onnxruntime#19225

@xenova
Copy link
Owner

xenova commented Jan 22, 2024

Hi there 👋 Yes, this is a bug with onnxruntime itself, and it has been reported before at #270. This should be fixed once we upgrade to ORT v1.17.

@sroussey sroussey linked a pull request Jan 22, 2024 that will close this issue
@sroussey
Copy link
Author

Thanks for the update. I used the linked PR in my fork and it seems to work well enough, but looking forward to not needing a fork later. :)

@xenova xenova linked a pull request Jan 27, 2024 that will close this issue
18 tasks
@fs-eire
Copy link

fs-eire commented Jan 30, 2024

Upgrading to 1.17 does not fix this problem for onnxruntime-node. I think that flag currently only works for onnxruntime-web. Need a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants