Skip to content
WebAI

vision / depth

Depth

Estimates a depth map from a single image. The output is relative depth unless the model is explicitly metric, so it is usable for ordering, blur and parallax effects, and not for measurement without calibration.

2 entries

Open demo →

Catalog comparison

Entries include models, tools and applications. An upstream example documents a browser integration, not a test on your device. Missing versions, measurements and licenses remain unverified. Historical estimates are not benchmark results.

Catalog comparison
EntryEntry typeFrameworkResourcesLicenseBrowser evidenceLinks

DPT-Hybrid (MiDaS 3.0)

Robust monocular depth estimation for the browser.

Tasks: Depth

ModelTransformers.js

q4f16: 112.7 MiB

q8: 198.2 MiB

fp16: 254.7 MiB

fp32: 508.4 MiB

Code license: Apache-2.0

Weight license: Apache-2.0

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/dpt-hybrid-midas
Natural languages
Not specified
Programming languages
Not specified
Other reported capabilities
Monocular Depth
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
Apache-2.0
Legacy license label (unverified)
MIT

Deployment variants

q4f16
Download size: 112.7 MiB
Peak runtime memory: Not measured
Quantization / precision: q4f16
Weight revision: 8af5a62e326ba3e842759aa27e13008c1c758db5
Weight artifact ↗
q8
Download size: 198.2 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: 8af5a62e326ba3e842759aa27e13008c1c758db5
Weight artifact ↗
fp16
Download size: 254.7 MiB
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: 8af5a62e326ba3e842759aa27e13008c1c758db5
Weight artifact ↗
fp32
Download size: 508.4 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: 8af5a62e326ba3e842759aa27e13008c1c758db5
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

Depth Anything v2 Small

State-of-the-art monocular depth, ported to Transformers.js.

Tasks: Depth

ModelTransformers.js

q4f16: 18.2 MiB

q8: 26.0 MiB

fp16: 47.3 MiB

fp32: 94.5 MiB

Code license: Apache-2.0

Weight license: Apache-2.0

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
onnx-community/depth-anything-v2-small
Natural languages
Not specified
Programming languages
Not specified
Other reported capabilities
Monocular Depth
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
Apache-2.0
Legacy license label (unverified)
Apache-2.0

Deployment variants

q4f16
Download size: 18.2 MiB
Peak runtime memory: Not measured
Quantization / precision: q4f16
Weight revision: 4472b7362082ad9968fee890ca0f1e5aca36b93d
Weight artifact ↗
q8
Download size: 26.0 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: 4472b7362082ad9968fee890ca0f1e5aca36b93d
Weight artifact ↗
fp16
Download size: 47.3 MiB
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: 4472b7362082ad9968fee890ca0f1e5aca36b93d
Weight artifact ↗
fp32
Download size: 94.5 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: 4472b7362082ad9968fee890ca0f1e5aca36b93d
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

Application workflows

About Depth

Depth under Vision holds 2 catalogue entries: 2 models.

2 of them carry browser evidence, all from upstream browser examples.

The usual pattern for this task is to load quantised weights (ONNX, TFLite or a MediaPipe asset bundle) into the page, hand them to Transformers.js, and accelerate with WebGPU or WebAssembly. What decides the experience is weight size, peak memory and decoding path — not the parameter count.

To see the output first, open the interactive demo for this task: switch models, edit the sample input and compare results on one page. Every demo states whether it is running real weights or a deterministic simulator.

At a glance

Entries
2 in total
Main runtime
Transformers.js
Smallest known weights
18.2 MiB
Browser evidence
2 of 2 verified

Depth: common questions

Can Depth run directly in a browser?
Yes. 2 entries already carry browser evidence (tested here or an upstream example), so the approach works; whether it runs smoothly on your device depends on weight size, browser version and whether WebGPU is enabled.
How large is the model for Depth?
We verified the weight file sizes of 2 entries in this task; the smallest tier is 18.2 MiB. Quantisation differs between entries, so the real download depends on the precision you pick. Files are reused from the HTTP cache or Cache Storage after the first download.
Which devices suit Depth?
Any modern browser with WebAssembly is a starting point, and WebGPU usually makes it faster. Phones are tighter on memory, so run the demo once on the target device before deciding.
Does running a model here upload my data?
The demos on this site infer inside the tab, so inputs never reach a server. Weights and runtimes are fetched from a CDN on first use and then served from the browser cache.

Other tasks in this category

Browse all Vision models →

Read next

All posts →