Head 1 Β· Predicted Depth
Near foreground = warm/bright Β· Far background = cool/dark.
depth-estimation Β· multi-view 3D geometry Β· vision Β· WASM fp32 Β· 105.3 MB Β· Apache-2.0
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.
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.
Download or initialise Depth Anything V3 Small above, then run live 4-head inference.
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).
Near foreground = warm/bright Β· Far background = cool/dark.
High certainty = bright emerald Β· Low certainty = dark plum.
| K | u | v | 1 |
|---|---|---|---|
| r0 | β | β | β |
| r1 | β | β | β |
| r2 | β | β | β |
| 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.
intrinsics alongside predicted_depth so every pixel lifts cleanly to (X, Y, Z).
confidence head lets apps prune
uncertain geometry interactively before exporting .ply meshes.
S = 2 photos as
[1, 2, 3, H, W] and DA3 aligns both views into a shared 3D coordinate frame via
extrinsics β no COLMAP server or feature-matching pipeline required.
Click any pixel across synchronized RGB, depth, and confidence maps to inspect exact depth, certainty, 3D coordinates, and 280 vs 392 grid detail.
PracticalFilter flying pixels with a live confidence slider, orbit the metric-unprojected 3D cloud, and download real ASCII .ply & formula-safe .csv files.
WildRun a single 5D [1, 2, 3, 280, 280] pass on 2 viewpoints to recover live relative camera yaw/pitch/roll and fuse both frustums in 3D.
Multi-modelChain Apache-2.0 ORMBG foreground matting with Depth Anything V3 Small to carve background-stripped 3D object point clouds and export .ply.
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,
});