Downloads · 30 days
42
16% of all-time downloads
Ko033/distill-any-depth-base-onnx
distill-any-depth-base-onnx is a depth estimation model from Ko033. 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 transformers.js. The card lists the license as mit.
ONNX weights of Distill Any Depth (Base, ViT-B, 97.5M params) for use with transformers.js (depth-estimation pipeline).
Downloads · 30 days
42
16% of all-time downloads
All-time downloads
268
Public
Repo size
970 MB
Likes
0
Public
Click a slice to open those files.
.onnx374 MB · 100%
From the Hugging Face model README
ONNX weights of Distill Any Depth (Base, ViT-B, 97.5M params) for use with
transformers.js (depth-estimation pipeline).
model_type: depth_anything, relative depth,
518 input, DPT preprocessing).onnx/model_fp16.onnx (WebGPU), onnx/model_quantized.onnx (q8, WASM),
onnx/model_q4f16.onnx (q4 weights + fp16 activations, low-memory WebGPU option).torch.onnx.export, verified against PyTorch on square
and non-square inputs, fp32 max abs diff < 2e-5):
scale=None) as a dynamic
Shape->Slice->Cast->Sqrt chain; after fp16 conversion the fp16 Sqrt lands on the CPU EP,
which has no fp16 Sqrt kernel, and session creation fails on the WebGPU EP
(onnxruntime-web). Patched to pass a constant scale so the chain is never emitted.import { pipeline } from '@huggingface/transformers';
const depth = await pipeline('depth-estimation', 'Ko033/distill-any-depth-base-onnx', {
device: 'webgpu', dtype: 'fp16', // or device: 'wasm', dtype: 'q8'
});
const output = await depth('image.jpg');
MIT, following the upstream Distill Any Depth release. Credit: Distill Any Depth: Distillation Creates a Stronger Monocular Depth Estimator (He et al., 2025).