depth-estimation Β· multi-view 3D geometry Β· vision Β· WASM fp32 Β· 105.3 MB Β· Apache-2.0

Depth Anything V3 Small

The catalogue's first multi-view 3D geometry foundation model (depth-anything/DA3-SMALL via onnx-community/depth-anything-v3-small). From a single DINOv2-S/14 transformer pass over 1 or more images ([B, S, 3, H, W]), it predicts four coupled geometry heads simultaneously β€” depth, per-pixel confidence, camera intrinsics (focal length & FoV), and 3D camera extrinsics ([R | t] pose) β€” 100% locally in your browser on CPU WebAssembly.

depth-anything/DA3-SMALL onnx-community/depth-anything-v3-small depth-estimation onnxruntime-web 1.21.0 Β· WASM fp32 Β· 105.3 MB Apache-2.0

At a glance

Upstream model
depth-anything/DA3-SMALL
Task & architecture
depth-estimation Β· DINOv2-S/14 multi-view 4-head
Runtime & backend
onnxruntime-web@1.21.0 Β· CPU WASM + externalData
Quantisation & size
fp32 Β· 105.3 MB (0.64 + 104.70 MB sidecar)
License
Apache-2.0 (commercial-friendly)

1 Β· Initialise Depth Anything V3 Small locally

Runtime note: Because onnx-community/depth-anything-v3-small omits preprocessor_config.json, standard transformers.js pipeline("depth-estimation") cannot load it. This page runs onnxruntime-web@1.21.0 directly off the main thread in a FIFO Web Worker, caching both onnx/model.onnx (0.64 MB) and onnx/model.onnx_data (104.70 MB) in Cache Storage and passing the weights via externalData.

2 Β· Choose a photo or drop your own image

Drop any PNG, JPG, or WebP here β€” images stay 100% on your device and are flattened onto opaque white before 5D tensor packing.

Download or initialise Depth Anything V3 Small above, then run live 4-head inference.

BackendWASM fp32
ORT Latencyβ€”
Input Tensor[1, 1, 3, 280, 280]
Depth Rangeβ€”
Focal / H-FoVβ€”
NaN Checkβ€”

See inside β€” all 4 live geometry heads

Every forward pass emits four coupled tensors simultaneously. Smaller predicted_depth values are closer to the camera; confidence exposes low-certainty regions (sky, motion blur, thin edges); intrinsics estimates the camera lens without EXIF metadata; and extrinsics places the camera in 3D space ([I | 0] for view 0, relative [R | t] for multi-view pairs).

Head 1 Β· Predicted Depth

Near foreground = warm/bright Β· Far background = cool/dark.

Head 2 Β· Per-Pixel Confidence

High certainty = bright emerald Β· Low certainty = dark plum.

Head 3 Β· Camera Intrinsics & FoV

K u v 1
r0β€”β€”β€”
r1β€”β€”β€”
r2β€”β€”β€”

Head 4 Β· 3Γ—4 Camera Extrinsics [R | t]

Pose r0 r1 r2 t
Xβ€”β€”β€”β€”
Yβ€”β€”β€”β€”
Zβ€”β€”β€”β€”

Single-view view 0 anchors the world frame at [I | 0]. Feed 2 viewpoints in the Wild lab to recover live relative camera yaw, pitch, roll & baseline.

Live 3D Unprojected Preview (drag to orbit, wheel or arrows to zoom)

Why this matters

Use-case ladder β€” 4 interactive demos

How the ONNX Runtime Web 5D API works

import * as ort from "https://cdn.jsdelivr.net/npm/onnxruntime-web@1.21.0/dist/ort.wasm.min.mjs";

const session = await ort.InferenceSession.create(graphBytes, {
  executionProviders: ["wasm"],
  externalData: [{ path: "model.onnx_data", data: dataBytes }], // 104.70 MB sidecar
});

// Pack S views (ImageNet normalized, H & W multiples of 14) into [1, S, 3, H, W]
const input = new ort.Tensor("float32", pixelValues5D, [1, numViews, 3, 280, 280]);
const { predicted_depth, confidence, intrinsics, extrinsics } = await session.run({
  pixel_values: input,
});

References