Skip to content

Can't run depth-anything-v2 #857

Description

@gwendall

System Info

React / Next.js

Environment/Platform

  • Website/web-app
  • Browser extension
  • Server-side (e.g., Node.js, Deno, Bun)
  • Desktop app (e.g., Electron)
  • Other (e.g., VSCode extension)

Description

const estimate = await pipeline("depth-estimation", "onnx-community/depth-anything-v2-small");
const estimation = await estimate(image) as DepthEstimationPipelineOutput;

Throws an error: Can't create session.

Also a warning: ort-web.min.js:7 D:/a/_work/1/s/onnxruntime/core/graph/model.cc:146 onnxruntime::Model::Model(ModelProto &&, const PathString &, const IOnnxRuntimeOpSchemaRegistryList *, const logging::Logger &, const ModelOptions &) Unsupported model IR version: 9, max supported IR version: 8.

Reproduction

  1. Run the code

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions