Architecture
~8 min readUpdated: November 2026

Apple DepthPro2: Sharp, Temporally Consistent Metric Depth for Vision Agents

Apple DepthPro2 Metric Monocular Depth Vision Agent Architecture in Smoke Monkey

Apple DepthPro2 (`apple/DepthPro2`, arXiv:2611.26603) predicts metrically accurate, boundary-sharp, and temporally consistent inverse depth maps for single images, videos, and live feeds at native resolution. With four model sizes (24.3M to 872.1M) plus a shared 23.5M focal-length estimator, it eliminates the sharpness-versus-jitter tradeoff in embodied and spatial AI agents.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

Apple DepthPro2: Sharp, Temporally Consistent Metric Depth for Vision Agents: Apple DepthPro2 (`apple/DepthPro2`, arXiv:2611.26603) predicts metrically accurate, boundary-sharp, and temporally consistent inverse depth maps for single images, videos, and live feeds at native resolution. With four model sizes (24.3M to 872.1M) plus a shared 23.5M focal-length estimator, it eliminates the sharpness-versus-jitter tradeoff in embodied and spatial AI agents. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.

Key Architectural Takeaways
Quick Implementation Exampledepthpro2-vision-agent.ts
depthpro2-vision-agent.tstypescript
import { createAgent } from '@smoke-monkey/harness';
const spatialAgent = createAgent({
agentId: 'depthpro2-spatial-inspector',
provider: 'anthropic',
model: 'claude-sonnet-4-5',
workspacePath: process.cwd(),
permissions: {
read_file: 'allow',
write_file: 'allow',
run_command: 'ask',
},
mcpServers: {
depthpro2: {
command: 'python3',
args: ['-m', 'depthpro2_mcp_server', '--model', 'apple/DepthPro2-B', '--dtype', 'bfloat16'],
},
},
});
async function measureSceneClearance(videoPath: string) {
const result = await spatialAgent.run(
`Run DepthPro2 metric depth inference on ${videoPath} without EXIF focal length, extract per-frame obstacle distances in meters, and write a clearance report.`
);
console.log('Spatial Clearance Result:', result.summary);
}
measureSceneClearance('./captures/warehouse-aisle.mp4').catch(console.error);
Video Guides

Watch: Related Video Guides

Depth Pro Apple: How Accurate is the Depth & Focal Length Estimation?

Depth Pro - monocular network from Apple. But can it do this?!

What Is Apple DepthPro2? Architecture & Focal Estimation

Apple DepthPro2 is a monocular metric depth foundation model family designed to solve the historical split between single-frame sharpness and multi-frame temporal stability. Earlier single-image models preserve fine boundary F1 detail at object edges but flicker across video frames, whereas multi-frame video models smooth away temporal jitter at the cost of blurry boundaries.

DepthPro2 resolves this by pairing a multi-view Vision Transformer backbone with a Dense Prediction Transformer (DPT) decoder. After the first third of its transformer blocks, the backbone alternates self-attention within each frame and cross-attention across frames, feeding multi-scale token representations at 1/32 to 1/4 of the input resolution into the DPT inverse-depth head. When camera EXIF focal lengths are absent, all four model tiers share a standalone apple/DepthPro2-focal estimator (23.5M parameters, 94 MB) to recover metric scale.

Model Family Specs & Zero-Shot Metric Depth Benchmarks

Trained across 19 datasets without ground-truth depth interpolation to prevent flying-pixel artifacts at occlusion boundaries, DepthPro2-H+ achieves an average rank of 2.4 (with ground-truth focal length) and 2.7 (with predicted focal length) across 11 indoor, outdoor, and synthetic benchmarks.

VariantTotal ParamsBackbone Params / Layers / DimDPT Decoder ParamsReassembled BlocksSky / Infinite Handling
Depth Pro 2-S24.3M21.6M / 12L / 384d2.7M2, 5, 8, 11Native inverse depth (inf)
Depth Pro 2-B96.5M85.6M / 12L / 768d10.9M2, 5, 8, 11Native inverse depth (inf)
Depth Pro 2-L334.0M303.1M / 24L / 1024d30.9M5, 11, 17, 23Native inverse depth (inf)
Depth Pro 2-H+872.1M840.5M / 32L / 1280d31.6M7, 15, 23, 31Native inverse depth (inf)

On individual zero-shot evaluation sets with ground-truth intrinsics, DepthPro2-H+ scores 97.8% on ETH3D, 98.2% on KITTI, 90.9% on nuScenes, 94.4% on iBims, 89.4% on HAMMER, and 60.2% on Sintel, surpassing UniK3D-L (avg rank 3.6), UniDepthV2-L (4.5), DAGE (4.7), and Depth Pro v1 (7.6).

Licensing Constraint for Commercial Pipelines

Apple DepthPro2 weights are published under the Apple Machine Learning Research Model license (`apple-amlr`), restricting use to non-commercial scientific research and academic development.

Running DepthPro2 Single-Image & Streaming Video Inference

DepthPro2 supports torch.bfloat16 GPU execution for single images and chunked 16-frame streaming video inference over arbitrary-length feeds.

bash
pip install "git+https://github.com/apple-aiml-research/ml-depth-pro-2"
python
from functools import partial
import torch
import av
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
from depth_pro_2 import DepthPro2, load_rgb, upright
from depth_pro_2.model import to_normalized_tensor
from depth_pro_2.network.fov import FOVEstimator

model = DepthPro2.from_pretrained("apple/DepthPro2-H", precision=torch.bfloat16)
weights = hf_hub_download("apple/DepthPro2-focal", "model.safetensors")
model.fov = FOVEstimator(torch.bfloat16)
model.fov.load_state_dict(load_file(weights))
model = model.to("cuda").eval()
transform = partial(to_normalized_tensor, device=torch.device("cuda"))

# Single photo inference (meters)
image, f_px = load_rgb("photo.jpg")
depth_map = model.infer(transform(image), f_px=f_px)["depth"]

# Streaming video inference (16 frames per batch)
video = av.open("video.mp4")
frames = (transform(upright(f)) for f in video.decode(video=0))
for pred in model.infer_video(frames):
    frame_depth_meters = pred["depth"]

Integrating DepthPro2 into Smoke Monkey Vision Agent Loops

Wrapping DepthPro2-B (96.5M) or DepthPro2-S (24.3M) inside a local MCP server gives Smoke Monkey Harness agents direct access to metric 3D geometry without cloud vision API fees. Because DepthPro2 outputs calibrated distances in meters rather than scale-ambiguous relative disparity, downstream planning tools can compute collision clearances, bounding-box volumes, and robot waypoint trajectories deterministically.

Google Search Questions & Answers

Frequently Asked Questions

Q:How does Apple DepthPro2 differ from Depth Pro v1?

Depth Pro v1 only processed single images (avg rank 7.6 GT), whereas DepthPro2 introduces alternating within-frame and cross-frame transformer attention, four size tiers (24.3M to 872.1M), and streaming video support achieving avg rank 2.4.

Q:Do I need camera calibration or EXIF focal length for DepthPro2?

No. While passing known `f_px` improves metric accuracy slightly (2.4 vs 2.7 avg rank), loading the shared 23.5M `apple/DepthPro2-focal` estimator (94 MB) predicts focal length automatically.

Q:What precision should I use to run DepthPro2 on consumer GPUs?

Apple recommends `torch.bfloat16` on CUDA GPUs. `DepthPro2-S` (24.3M) and `DepthPro2-B` (96.5M) comfortably fit alongside local LLM vision routers on 8 GB–16 GB VRAM cards.

Q:Can DepthPro2 process long videos without running out of VRAM?

Yes. Although trained on clips up to 32 frames, `model.infer_video()` streams frames in 16-frame chunks to process videos or live camera feeds of arbitrary duration.

Related Alternatives & Comparisons

Related Architecture Guides

View all guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness