[Web] vue3+vite wasm streaming compile failed: LinkError: WebAssembly.instantiate()
Mirror-Yu opened this issue · comments
Mirror-Yu commented
Describe the issue
I use Vue3+Vite to load onnxruntime-web;
I get error :wasm streaming compile failed: LinkError: WebAssembly.instantiate()
To reproduce
Here is a screenshot of my code and error:
home.vue:
import { env, InferenceSession } from 'onnxruntime-web';
env.wasm.wasmPaths = 'http://192.168.2.67:8085/sam/onnxruntime-web/dist/';
const model = await InferenceSession.create('http://192.168.2.67:8085/sam/sam_onnx_example.onnx');
error:
Urgency
Urgency!
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.17.1
Execution Provider
Other / Unknown