Downloads · 30 days
0
77ukhtar/depth-anything-v2-metric-onnx
depth-anything-v2-metric-onnx is a depth estimation model from 77ukhtar. Use it for the depth estimation task on the model card, and read the license before you ship it in a product. It is set up for onnx. The card lists the license as apache-2.0.
A self-exported ONNX build of depth-anything/Depth-Anything-V2-Metric-Hypersim-Small (indoor metric depth, maxdepth = 20 m). Exported so it can run on onnxruntime (CPU/Node) without a PyTorch dependency.
Downloads · 30 days
0
Access
Public
Updated Jul 3, 2026
Repo size
98.9 MB
Likes
0
Public
Click a slice to open those files.
.onnx98.9 MB · 100%
From the Hugging Face model README
A self-exported ONNX build of
depth-anything/Depth-Anything-V2-Metric-Hypersim-Small
(indoor metric depth, max_depth = 20 m). Exported so it can run on
onnxruntime (CPU/Node) without a PyTorch dependency.
depth_anything_v2_metric_hypersim_vits.pth.torch.onnx.export, opset 17, static input 1 × 3 × 518 × 518, constant-folded.< 1e-3.pixel_values: 1 × 3 × 518 × 518, RGB, ImageNet-normalized
(mean [0.485, 0.456, 0.406], std [0.229, 0.224, 0.225]).predicted_depth: 1 × 518 × 518, metric depth in metres,
range (0, 20); larger = farther.import onnxruntime as ort, numpy as np
sess = ort.InferenceSession("model.onnx", providers=["CPUExecutionProvider"])
depth = sess.run(None, {"pixel_values": x})[0] # x: 1x3x518x518 float32
@article{depth_anything_v2,
title={Depth Anything V2},
author={Yang, Lihe and Kang, Bingyi and Huang, Zilong and Zhao, Zhen and Xu, Xiaogang and Feng, Jiashi and Zhao, Hengshuang},
journal={arXiv:2406.09414},
year={2024}
}