Open hunnble opened 1 year ago
Usually this should not happen. Could you share more info about how did you run the code snippet? Is it running in Node.js/deno/browser?
It's running in figma plugin, which is a special environment with the Realms sandbox.
a stack trace or the full log message would help.
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:
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)