-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Open
Labels
platform:webissues related to ONNX Runtime web; typically submitted using templateissues related to ONNX Runtime web; typically submitted using template
Description
Describe the issue
When use ort to use pretrained model in browser, throw ReferenceError: 'self' is not defined.
To reproduce
pnpm install onnxruntime-web@1.15.1
then call:
import * as ort from 'onnxruntime-web';
const session = await ort.InferenceSession.create('./best.onnx');
Urgency
is urgent.
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
onnxruntime-web@1.15.1
Execution Provider
'webgl' (WebGL), 'wasm'/'cpu' (WebAssembly CPU)
Metadata
Metadata
Assignees
Labels
platform:webissues related to ONNX Runtime web; typically submitted using templateissues related to ONNX Runtime web; typically submitted using template