You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating an Electron app where I need to run inference on some onnx models through the Node.js backend. I have installed "onnxruntime-node": "^1.19.0" as dependency. I am initializing the models with -
This throws the following error when I run electron . -
Error: no available backend found. ERR: [wasm] backend not found.
at resolveBackendAndExecutionProviders (~/my-electron-app/node_modules/onnxruntime-common/dist/cjs/backend-impl.js:124:15)
at async InferenceSession.create (~/my-electron-app/node_modules/onnxruntime-common/dist/cjs/inference-session-impl.js:183:52)
I am on intel x64 MacOS 12.7.5 with Node.js version 20.16.0.
This issue to very urgent to me, as I am not able to write the inference code without first loading the model.
What is the issue here and how to resolve it?
The text was updated successfully, but these errors were encountered:
Try to replace 'wasm' with 'cpu'. onnxruntime-node would not include the webassemly flavor.
If you want webassembly you can replace onnxruntime-node with onnxruntime-web - should be the same api but that one will support 'wasm' ep.
@fs-eire I found the cpu backend to be decently fast, with the models loading in ~1.x second, and inferencing in ~200 milliseconds. I couldn't test wasm as it wouldn't load in node.js though.
I am creating an Electron app where I need to run inference on some onnx models through the Node.js backend. I have installed
"onnxruntime-node": "^1.19.0"
as dependency. I am initializing the models with -This throws the following error when I run
electron .
-I am on intel x64 MacOS 12.7.5 with Node.js version 20.16.0.
This issue to very urgent to me, as I am not able to write the inference code without first loading the model.
What is the issue here and how to resolve it?
The text was updated successfully, but these errors were encountered: