Spaces:
Running
Running
metadata
title: Depth Anything V2
emoji: π
colorFrom: indigo
colorTo: purple
sdk: static
app_file: index.html
short_description: In-browser monocular depth estimation with Transformers.js
license: apache-2.0
Depth Anything V2 β In-Browser Demo
Runs Depth Anything V2 (Yang et al., 2024 β arXiv 2406.09463) entirely in your browser via Transformers.js and ONNX Runtime. No server, no GPU β all inference happens client-side on WebAssembly / WebGPU.
Models
Uses the ONNX ports from onnx-community:
| Option | Model repo | Params |
|---|---|---|
| Small | onnx-community/depth-anything-v2-small-ONNX |
24.8M |
| Base | onnx-community/depth-anything-v2-base-ONNX |
97.5M |
| Large | onnx-community/depth-anything-v2-large-ONNX |
335.3M |
How it works
- Upload an image (or pick an example).
- Select a model size.
- Click Compute Depth β the model downloads (cached afterwards) and runs locally.
- Compare the original and depth map with the slider.