Does not work with "@xenova/transformers": "^2.17.2"

#2
by gamester2665 - opened

@Xenova

When running the example + when replacing "Xenova/depth-anything-small-hf" in the "transformers.js/examples
/depth-anything-client".. I received the following error... using "@xenova/transformers": "^2.17.2" .......

[Error: Failed to load model with error: D:\a\_work\1\s\onnxruntime\core\graph\model.cc:146 onnxruntime::Model::Model Unsupported model IR 
version: 9, max supported IR version: 8](rror: Failed to load model with error: D:\a\_work\1\s\onnxruntime\core\graph\model.cc:146 onnxruntime::Model::Model Unsupported model IR 
version: 9, max supported IR version: 8

    at new OnnxruntimeSessionHandler (C:\Users\games\Desktop\depthAnything_client\node_modules\onnxruntime-node\dist\backend.js:27:92)    
    at C:\Users\games\Desktop\depthAnything_client\node_modules\onnxruntime-node\dist\backend.js:64:29
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Something went wrong during model construction (most likely a missing operation). Using `wasm` as a fallback.
TypeError [ERR_WORKER_PATH]: The worker script or module filename must be an absolute path or a relative path starting with './' or '../'. Received "blob:nodedata:e54b44f8-84cb-49e0-ab1d-56c83f288b37"       
    at new NodeError (node:internal/errors:405:5)
    at new Worker (node:internal/worker:168:15)
    at Object.yc (C:\Users\games\Desktop\depthAnything_client\node_modules\@xenova\transformers\node_modules\onnxruntime-web\dist\ort-web.node.js:6:7890)
    at Object.Cc (C:\Users\games\Desktop\depthAnything_client\node_modules\@xenova\transformers\node_modules\onnxruntime-web\dist\ort-web.node.js:6:7948)
    at lt (C:\Users\games\Desktop\depthAnything_client\node_modules\@xenova\transformers\node_modules\onnxruntime-web\dist\ort-web.node.js:6:5690)
    at Et (C:\Users\games\Desktop\depthAnything_client\node_modules\@xenova\transformers\node_modules\onnxruntime-web\dist\ort-web.node.js:6:9720)
    at wasm://wasm/025ff5d6:wasm-function[10917]:0x7f0507
    at wasm://wasm/025ff5d6:wasm-function[1580]:0xf3ecb
    at wasm://wasm/025ff5d6:wasm-function[2786]:0x1d31ee
    at wasm://wasm/025ff5d6:wasm-function[5903]:0x49713d {
  code: 'ERR_WORKER_PATH'
}
(base) 
games@FLUXCAPACITOR MINGW64 ~/Desktop/depthAnything_client
$ node depth_v2.js
Error: Failed to load model with error: D:\a\_work\1\s\onnxruntime\core\graph\model.cc:146 onnxruntime::Model::Model Unsupported model IR 
version: 9, max supported IR version: 8

    at new OnnxruntimeSessionHandler (C:\Users\games\Desktop\depthAnything_client\node_modules\onnxruntime-node\dist\backend.js:27:92)    
    at C:\Users\games\Desktop\depthAnything_client\node_modules\onnxruntime-node\dist\backend.js:64:29
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Something went wrong during model construction (most likely a missing operation). Using `wasm` as a fallback.
TypeError [ERR_WORKER_PATH]: The worker script or module filename must be an absolute path or a relative path starting with './' or '../'. Received "blob:nodedata:f81cac84-69f5-4e48-8f4d-f125ba8cbf81"       
    at new NodeError (node:internal/errors:405:5)
    at new Worker (node:internal/worker:168:15)
    at Object.yc (C:\Users\games\Desktop\depthAnything_client\node_modules\@xenova\transformers\node_modules\onnxruntime-web\dist\ort-web.node.js:6:7890)
    at Object.Cc (C:\Users\games\Desktop\depthAnything_client\node_modules\@xenova\transformers\node_modules\onnxruntime-web\dist\ort-web.node.js:6:7948)
    at lt (C:\Users\games\Desktop\depthAnything_client\node_modules\@xenova\transformers\node_modules\onnxruntime-web\dist\ort-web.node.js:6:5690)
    at Et (C:\Users\games\Desktop\depthAnything_client\node_modules\@xenova\transformers\node_modules\onnxruntime-web\dist\ort-web.node.js:6:9720)
    at wasm://wasm/025ff5d6:wasm-function[10917]:0x7f0507
    at wasm://wasm/025ff5d6:wasm-function[1580]:0xf3ecb
    at wasm://wasm/025ff5d6:wasm-function[2786]:0x1d31ee
    at wasm://wasm/025ff5d6:wasm-function[5903]:0x49713d {
  code: 'ERR_WORKER_PATH'
})
ONNX Community org

Hi there! This model requires Transformers.js v3 (see https://github.com/xenova/transformers.js/pull/545 for instructions). We will publish the package shortly too. :)

Sign up or log in to comment