transformers.js icon indicating copy to clipboard operation
transformers.js copied to clipboard

v3: Onnx createInferenceSession wasmPaths and logLevel

Open Th3G33k opened this issue 9 months ago • 0 comments

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.

Th3G33k avatar May 08 '24 21:05 Th3G33k