microsoft / microsoft/onnxruntime
[Web]
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 184
Description
### Describe the issue
Error: no available backend found. ERR: [wasm] RuntimeError: Aborted(LinkError: WebAssembly.instantiate(): Import #46 "a" "V": function import requires a callable). Build with -sASSERTIONS for more info., [cpu] Error: previous call to 'initWasm()' failed.
at Dn (onnxruntime-web.js?v=641f318a:80:13)
at async a.create (onnxruntime-web.js?v=641f318a:600:20)
at async initModel (AnythingModel.vue:44:17)
at async initSegment (AnythingModel.vue:26:7)
at async AnythingModel.vue:137:3
### To reproduce
vue3+vite
ort.env.wasm.wasmPaths = {
'ort-wasm.wasm': 'https://cdnjs.cloudflare.com/ajax/libs/onnxruntime-web/1.14.0/ort-wasm.wasm',
'ort-wasm-threaded.wasm':
'https://cdnjs.cloudflare.com/ajax/libs/onnxruntime-web/1.14.0/ort-wasm-threaded.wasm',
'ort-wasm-simd.wasm':
'https://cdnjs.cloudflare.com/ajax/libs/onnxruntime-web/1.14.0/ort-wasm-simd.wasm',
'ort-wasm-simd-threaded.wasm':
'https://cdnjs.cloudflare.com/ajax/libs/onnxruntime-web/1.14.0/ort-wasm-simd-threaded.wasm'
}
var modelFile : string = "http://localhost:5173/anythingModel/sam_onnx_quantized_example.onnx";
model = await InferenceSession.create(modeUrl);
### Urgency
_No response_
### ONNX Runtime Installation
Built from Source
### ONNX Runtime Version or Commit ID
1.18.0
### Execution Provider
'wasm'/'cpu' (WebAssembly CPU)
Contributor guide
Assessment
This issue has not been assessed yet.