After lots of fiddling and different errors, I ended up with:
Error: no available backend found. ERR: [wasm] Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. Received protocol 'https:'
I tried both cpu/wasm as a param, I didn't see onnx-node under gliner/node_modules but I also installed transformers.js and it brought it in:
[1/4] 🤔 Why do we have the module "onnxruntime-node"...?
[2/4] 🚚 Initialising dependency graph...
[3/4] 🔍 Finding dependency...
[4/4] 🚡 Calculating file sizes...
=> Found "onnxruntime-node@1.14.0"
info Reasons this module exists
- "@xenova#transformers" depends on it
- Hoisted from "@xenova#transformers#onnxruntime-node"
info Disk size without dependencies: "92.02MB"
info Disk size with unique dependencies: "92.86MB"
info Disk size with transitive dependencies: "92.86MB"
info Number of shared dependencies: 1
Just not sure if this lib knows how to use it..?
After lots of fiddling and different errors, I ended up with:
Error: no available backend found. ERR: [wasm] Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. Received protocol 'https:'
I tried both cpu/wasm as a param, I didn't see onnx-node under
gliner/node_modulesbut I also installed transformers.js and it brought it in:Just not sure if this lib knows how to use it..?