Depth Pro 2 ONNX in the browser (unofficial)

Metric depth in meters from one photo, running in your browser with ONNX Runtime Web. Nothing is uploaded. The focal length is estimated, or give it if you know it.

Auto model · Focal-free model · Code, ROS 2 node, TensorRT

Loading ONNX Runtime…
Model input: scaled to cover, center-cropped
Depth, red near, blue far. Hover for meters.

DepthPro2-S (24M parameters), FP16. "Estimate it" adds Apple's 23.5M-parameter focal-length network; it can be off on close-ups and unusual lenses, so give the focal length when you know it. Weights: Apple Machine Learning Research Model License, non-commercial research use only. Not affiliated with or endorsed by Apple. Example photo: Apple's ml-depth-pro-2 sample, loaded from GitHub.