transformers.js
transformers.js copied to clipboard
v3: Onnx createInferenceSession wasmPaths and logLevel
With v3, in web environment, using relative path (eg 'dist', '/dist') for env.backends.onnx.wasm.wasmPaths
, doesn't seem to work.
Uncaught (in promise) Error: no available backend found. ERR: [wasm] TypeError: Failed to execute 'fetch' on 'WorkerGlobalScope': Failed to parse URL from dist/v3/ort-wasm-simd.jsep.wasm
This PR should fix it.