apple-aiml-research/ml-depth-pro-2
Depth Pro 2: Sharp and Temporally Consistent Metric Monocular Depth
Edition record
- 2026-11-29 · growth · 7d · small — rank 9 / 222
- 2026-11-29 · growth · small — rank 9 / 222
Editions on the board: 1
What it solves
Depth Pro 2 estimates the depth of every pixel in meters from a single ordinary camera image. It addresses two common problems in monocular depth: blurry edges around objects and inconsistent depth across video frames. The model gives sharp object boundaries and steady depth from frame to frame, whether you feed it a photo, a video, or a live feed.
How it works
The model takes an image at full resolution and predicts a depth map where each pixel value is the distance along the camera's viewing direction. For videos, it processes overlapping clips of frames so the depth remains consistent where clips meet. It includes a field-of-view estimator that predicts the focal length when it is not known; you can also provide the focal length manually. There are four model sizes (S, B, L, H+) with different speed and accuracy trade-offs. On NVIDIA and Apple GPUs, it runs under bfloat16 autocast by default; on CPU it runs in float32. The repository provides code for inference only—no training or evaluation code.
Who it's for
Developers and researchers who need metric depth from ordinary camera images or videos, for applications like 3D reconstruction, visual effects, robotics, or computer vision pipelines. It is designed for inference on a laptop or workstation, with a command-line interface and a Python API. It also includes a Mac demo app that shows live depth from the camera using Core ML, aimed at Apple silicon users.
Highlights
- Four model sizes (S, B, L, H+) from 24M to 872M parameters, letting you balance sharpness and speed.
- Sharp depth at object edges and temporally consistent depth across video frames.
- Handles single photos, video files, and live camera streams at the input's full resolution.
- Saves depth as color visualizations, 16-bit grayscale PNGs, and raw depth in meters along with focal length.
- Includes a field-of-view estimator that predicts focal length when unknown, or accepts a known focal length.
- Provides a Python API (
infer,infer_video,stream) and a command-line interface. - Exports Core ML models for Apple hardware and includes a minimal Mac demo for live camera depth.
Related
- Project
- Project
- Project
- Project