microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator

Home Page:https://onnxruntime.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Web] vue3+vite wasm streaming compile failed: LinkError: WebAssembly.instantiate()

Mirror-Yu opened this issue · comments

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:
image

Urgency

Urgency!

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.17.1

Execution Provider

Other / Unknown