-
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
Model cannot be used because the inference status is rejected #19624
Comments
Isn't the 'create' method part of InferenceSessionFactory not InferenceSession? onnxruntime/js/common/lib/inference-session.ts Lines 415 to 458 in c12a20b
|
@skottmckay The usage patterns are the same, but I didn't see any inheritance. When I look at the ort.min.js file using the https://sokra.github.io/source-map-visualization/ tool: |
Not following what you mean by the 'usage patterns' are the same. I'm not an expert on the JS API but I don't see a What happens if you change onnxruntime/js/common/lib/inference-session.ts Lines 341 to 413 in c12a20b
|
@skottmckay When I used InferenceSession, it was working on the web, but not in the React Windows application. The codes are the same on the web and in the application because they are received from the server. |
@fs-eire might be able to help |
@skottmckay I encountered this as an error when I did not use the Promise structure. |
I think the usage of Promise has no problem. I need more information (error messages or stacktrace or whatever) to know why it does not work on windows app. just knowing that a Promise is rejected does not give me enough info to understand the root cause. |
This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details. |
Describe the issue
I have the yolov8 nano onnx model. I want to use this model on the web. I made the necessary improvements regarding this. It works as desired on the web with React. It does not work in the Cromium-based React Windows application.
As you can see I am using this code. This way it works correctly in the browser. But in windows applitaction :
In this way, the model cannot be loaded successfully because the status is rejected. When I look at the network through the Windows application, it does not download the necessary WASM file.
Upgrading the onnxweb version used from 1.14 to 1.17 did not solve the problem. No matter what I do the problem persists.
To reproduce
Urgency
I need to deliver the project within 1 week. I'm already past the deadline.
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
1.17.0
Execution Provider
'wasm'/'cpu' (WebAssembly CPU)
The text was updated successfully, but these errors were encountered: