← All models · Metric3D · Segformer
use case · multi-model
Compose two models into one flow. Segformer answers "what is each pixel" — sky, road, person, building — across 150 semantic classes; Metric3D answers "how far is each pixel", in metres. Combine them and you get the mean distance of every labelled region, ranked near → far. Semantics meet metric geometry, entirely on your device.
Segmentation overlay
Regions, nearest first (metres)
Segformer runs in a WASM Web Worker; Metric3D runs in its own worker (WebGPU or WASM). Each labelled region's mean distance is read from Metric3D's metric field — the nearest region floats to the top, with its distance in metres.
Segformer gives a class per pixel; Metric3D gives a distance in metres per pixel. Overlay them and every pixel has both a label and a distance. Group by label, average the metres, and you know how far away "road", "building", or "person" is — a scene graph with real geometry. No shared weights, no retraining: one model's per-pixel output indexes into the other's.