Depth from one camera is usually sharp or steady, not both. Depth Pro 2 is both, in metres: boundary F1 30.1 and jitter 1.13, the best on both axes of the paper’s Figure 2.
Pick a method family. Watch the fur in the warm inset and the animal’s distance in the line below it. Then we build, piece by piece, the two scores, the network, the losses and the speed.
You need a feel for pixels and neural networks and a little Python. We build the rest from zero.
Based on Depth Pro 2: Sharp and Temporally Consistent Metric Monocular Depth (arXiv 2611.26603, November 2026) by Peiyun Hu, Marko Mihajlovic, Lyndon Duong, Lahav Lipson, Wei Dong, Amaël Delaunoy, Stephan R. Richter and Vladlen Koltun of Apple. Every idea is re-taught here in our own words and devices.
Illustrative clip. The scatter is the paper’s Figure 2: Table 4b and Table 5 averaged over Sintel and Spring. The toy blur follows each method’s F1, and its wobble follows its jitter.
Chapter 0
See why a depth video needs crisp edges and a steady distance at the same time
You filmed a meerkat on holiday. Now you want the leaves behind it blurred, as a wide-open lens would do. A blur tool can do it, but it needs a depth map for every frame: the distance from the camera to each pixel.
The paper tries two tools on such a clip (Figure 1). A single-image method traces the fur, but it puts the meerkat at a new distance in each frame. A video method holds the distance, but it smooths the fur away.
The tool blurs every pixel farther than the animal. Pick a depth source and play 24 frames. Red marks a mistake.
Illustrative. The halo width follows each family’s boundary F1 and the wobble follows its jitter (Figure 2 values).
Each failure has its own look. A soft depth edge leaves a ring of sharp leaves around the animal and erases the fur. A jumpy distance blurs the animal itself in some frames.
The paper finds this split across the prior methods it tests (Figure 2). Its answer is one network that reads one frame or many, at the frame’s full resolution, and predicts depth in metres.
Failure: the subject flickers soft. Symptom: in a few frames the meerkat goes blurry. Measure: plot one point’s depth over time. Fix: a model that sees several frames together.
Chapter 1
Learn why one photo cannot tell size from distance, and how the focal length gives metres
A depth map is an image whose pixels hold distances in metres instead of colours. Depth Pro 2 outputs one depth map for each input frame, at that frame’s size.
One photo cannot tell size from distance. A 1.8 m person 6 m away and a 0.3 m doll 1 m away make the same picture. A method that knows depth only up to an unknown scale predicts relative depth. A method that gives metres predicts metric depth.
Move the person. The doll follows so that both cast the same image. Then change the focal length, or guess it wrong.
Illustrative pinhole camera. The rule that metric depth needs the focal length is the paper’s (Section 3.1).
The focal length f, in pixels, sets how much the camera magnifies. An object of height H at distance Z appears h pixels tall:
So the picture holds only the ratio f / Z. Depth Pro 2 predicts that ratio: inverse depth normalized by the focal length, following Depth Pro. Give it f and the metres follow.
c = f / Z = 250 px per metre, f = 1500 px ⇒ Z = 1500 / 250 = 6.0 m
The focal length often sits in the photo’s EXIF metadata. When it is missing, a small separate network estimates it (Chapter 5).
The score for metric depth is δ1: the share of pixels whose predicted depth is within a factor of 1.25 of the truth. A guess of 7.2 m for a true 6.0 m is off by a factor of 1.2, so it still counts.
Failure: the whole scene is 20% too far. Measure: compare the estimated f with EXIF on photos that have it. Cause: the estimate of f was 1800 px instead of 1500, so Z = 1800 / 250 = 7.2 m. Fix: a better focal estimator.
Chapter 2
Measure an edge with boundary F1 and a video with jitter, each on one worked number
An occlusion edge is where a near surface ends and a far one starts, such as fur against a wall. The true depth jumps there in one pixel. A network that works at low resolution spreads the jump over several pixels, and thin hairs vanish.
The paper scores edges with the boundary F1 of Depth Pro. Two neighbouring pixels form an edge if one is more than t percent farther than the other. Edges in the prediction are then matched to edges in the truth:
2 m → 3 m in one step: ratio 1.50, found at every t.
2, 2.25, 2.5, 2.75, 3 m: largest ratio 2.25 / 2 = 1.125. Found only for t < 12.5, so 7.5 of the 20 points of range.
One row of 64 pixels: a thin twig, then the animal. Lower the resolution to blur the depth. Move t and watch which edges survive.
Illustrative row; blur stands in for low resolution. The edge rule and t from 5 to 25 are Depth Pro’s; it weights high t more, we average evenly.
Temporal consistency means a point keeps the same depth error from frame to frame. The paper measures it with jitter (Appendix F.1). Follow one tracked point and take its error in each frame, in log space:
predictions 2.2, 1.8, 2.2 m, truth 2.0 m ⇒ e = +0.095, −0.105, +0.095
changes 0.200 and 0.200 ⇒ jitter 0.20, printed as 20. Depth Pro 2-H+ on Sintel: 1.39.
A wall point 2.0 m away, over 12 frames. Add a constant bias, then add wobble. Only one of them moves jitter.
Illustrative track with fixed random draws. The jitter formula is the paper’s Equation F.1.
Both scores first fit each prediction to the truth with a scale and a shift. So they ignore metric scale, and relative-depth methods can take part.
Failure: high δ1, shimmering video. δ1 scores each frame alone, so it cannot see flicker. Measure jitter along point tracks. Fix: a model that shares information across frames.
Chapter 3
Read the paper’s Figure 2 and find where each family sits, and why
Put every method on two axes: boundary F1 going up, and jitter with steadier to the right. The paper does this on Sintel and Spring, two synthetic video sets with dense, sharp ground truth (Figure 2).
Tap a point, or pick one below. Hollow points were not zero-shot on these sets.
Each point averages Sintel and Spring: F1 from Table 4b (DP2 sizes: Table 16b), jitter from Table 5 (Table 17a).
Single-frame methods sit top left. InfiniDepth reaches F1 28.3 but jitter 8.57. Multi-frame methods sit bottom right. π3 reaches jitter 1.59 but F1 7.9.
Video methods buy steadiness with attention over many frames, video diffusion priors and video training data. That costs memory. So they usually run below the input resolution, and the edges go soft. Table 13 shows the cost when every method must run at native 1080p on one B200 GPU:
| Method | Frames per second | Peak memory |
|---|---|---|
| π3 | 1.2 | 24.9 GiB |
| VGGT-1B | 0.9 | 68.0 GiB |
| DA3-NGL | 1.0 | 114.6 GiB |
| InfiniDepth | 4.1 | 4.4 GiB |
| Depth Pro 2-S | 44.8 | 8.0 GiB |
| Depth Pro 2-H+ | 5.3 | 29.5 GiB |
Failure: you pick the leader on one axis. Choose by sharpness and you get flicker; choose by steadiness and you lose the fur. Measure both scores on your own clips. Pick a point that is high and far right.
Chapter 4
Follow a frame through a transformer that attends within frames, then across them
Depth Pro 2 is a vision transformer (ViT). It cuts each frame into 16 × 16 pixel patches and turns each patch into a vector, a token. Tokens share information through attention: each token takes a weighted mix of other tokens. A DPT decoder then turns the tokens back into one depth map per frame.
The ViT starts from DINOv3, a ViT pretrained on images to give dense, high-resolution features. Training updates all of its weights. A frozen DINOv3 made every metric worse (Table 19, row H2).
Video enters through one change. Some blocks attend within a frame: a token sees only its own frame. Other blocks attend across frames: a token sees every frame of the clip. The first third of the blocks stay within the frame, because early blocks compute low-level features. After that the two kinds alternate.
Rows are frames, columns are blocks. Teal blocks attend across frames. Pick a model and a clip length, then cut links between frames.
Block indices from Table 1. The cut-link numbers are Table 20: Depth Pro 2-H+ on 32-frame DynamicReplica clips, three draws each.
The cross-frame blocks reuse the pretrained attention weights, so they add no parameters. Token positions carry no frame number, so a clip can hold 1 frame or 32, in any order. A photo is a clip of length 1.
| Stage | Shape for N frames of 1920 × 1088, Depth Pro 2-L |
|---|---|
| Input | N × 3 × 1088 × 1920 pixels |
| Patches of 16 × 16 | N × 8,160 tokens × 1,024 channels (68 × 120 grid) |
| Within-frame block | attention over the 8,160 tokens of each frame |
| Cross-frame block | attention over all N × 8,160 tokens |
| Reassemble 4 blocks | maps at 1/4, 1/8, 1/16, 1/32 size with 256, 512, 1024, 1024 channels |
| Fuse and upsample | all maps projected to 256 channels, upsampled by transposed convolutions |
| Output | N × 1088 × 1920 inverse depth, normalized by focal length |
Each token’s position goes into a 2D rotary embedding. The embedding divides both axes by the longer side, so the network sees the aspect ratio. On a 68 × 120 grid, x runs from −0.99 to +0.99, but y runs only from −0.99 to +0.13.
Failure: the video shimmers again. Cut the cross-frame links and jitter rises from 0.24 to 0.84, while δ1 barely moves, 98.9 to 98.1 (Table 20). Boundary F1 also falls, from 57.7 to 53.4. The fix is to keep every link.
Chapter 5
See how input size drives edge sharpness, how the cost stays low, and where the focal length comes from
Sharp edges need pixels. The paper runs Depth Pro 2-H+ at four input sizes on the same clips (Table 21). From a 360 px short side to native size, boundary F1 more than doubles, from 24.1 to 57.7. Jitter falls too, from 0.33 to 0.24.
The grid is what the network sees of a two-pixel twig. Pick an input size.
Twig illustrative. F1 and jitter: Table 21 (DynamicReplica). Native is 720 px there, so the last two stops tie.
Full resolution costs tokens. A 16:9 frame has 3,600 tokens at 720 px and 900 at 360 px. Attention compares every token with every other, so 4 times the tokens means 16 times the pairs. Three choices keep the cost down:
Training keeps native pixels too. It never interpolates ground-truth depth, because averaging across an edge makes flying pixels, points halfway between the near and the far surface. It crops at many aspect ratios and sometimes takes every second pixel.
Failure: metric depth collapses on wide frames. Train only on square crops and metric δ1 on Waymo drops 46.6 points (Table 19, E2). Waymo frames are 3:2 and about 2.2:1. Fix: crop at varied aspect ratios.
For metres, the focal length comes from EXIF or from a separate estimator: a DINOv3 ViT-S/16 with 23.5M parameters, fine-tuned on about 92M Flickr photos. It reads a 512 px input and predicts the field of view along the short side. For a clip, it takes the median over frames.
mean δ25: 88.6% for Depth Pro 2 against 71.7% for Depth Pro
share of photos whose focal error is under 25%, six datasets (Table 6)
It adds about 8% to the compute of Depth Pro 2-S at 1080p, and 0.5% for H+.
Chapter 6
Learn what each training loss teaches, and how a second frame checks the first
Depth Pro 2 trains on 19 datasets, mostly synthetic (Table 7). Rendered scenes give depth that is exact at every edge; real depth sensors blur edges. The largest source is internal synthetic data: 24.2 million frames of people, pets and objects. A training clip is one image, or up to 32 video frames.
The loss is the plain sum of four terms:
| Term | What it compares | Used on | Why it is there |
|---|---|---|---|
| Lmae | focal-normalized inverse depth, trimmed L1 | metric sources | anchors metres |
| Lssi | both maps shifted to median 0 and scaled to unit mean deviation, trimmed L1 | all data | teaches shape, even from data without scale |
| Lmge | gradients of the normalized maps at 3 scales | synthetic only | sharp edges; gradients are reliable only where edges are exact |
| Lmvc | depth of one point seen in two frames | clips with camera poses | steadiness across frames |
Trimmed means each frame drops its worst pixels before averaging: 1% on synthetic data, 10% on real data, where labels are noisier.
Take pixel p in frame i with its predicted depth. Lift it into 3D and project it into frame j, using the true camera poses. That gives a pixel p′ and a depth z′. In a static scene, frame j’s own prediction at p′ should equal z′.
z′ = 2.5 m, Ẑj(p′) = 2.0 m ⇒ | 0.40 − 0.50 | = 0.10 per metre
Two cameras look at a wall. Push frame j’s prediction off, then add a moving box in front.
Illustrative geometry. The warp, the inverse-depth gap and the 2% rule are Section 3.2.
A moving object or an occlusion breaks the static assumption. So the loss also warps each pixel with its true depth. If that warped depth misses the true depth at p′ by more than 2%, the loss drops the pixel.
Failure: each change has a price (Table 19). Without Lmvc, jitter rises by 0.05. Depth Pro’s old edge loss in place of Lmge costs 3.5 points of F1; weighting losses by confidence costs 6.8. More real data lifts δ1 but costs 1.2 points of F1.
Chapter 7
Choose a model size by speed and quality, and run a long video in two ways
Four models share one design. Each starts from a DINOv3 backbone of its own size (Table 1): S has 24.3M parameters, B 96.5M, L 334.0M and H+ 872.1M. At 128 GPUs, every metric improves with size (Table 19, rows B1 to B4).
Speed runs to the right on a log scale; the dotted line is 30 frames per second. Pick an input size and a score.
Our plot: speed from Table 13 (32-frame Spring clip, one B200, focal estimator included); scores as in Chapter 3. Out-of-memory runs and fixed-size inputs are left out.
A video longer than one clip runs in one of two modes (Section 3.3):
The two modes give nearly the same quality: boundary F1 within 0.3 points and jitter within 3% (Table 22). In unbuffered mode, S and B run in real time at 1080p (Figure 12). The abstract’s 53 fps for S comes from that mode; Table 13 shows 44.8 because it also runs the focal estimator on 32-frame clips.
Failure: live frames pile up. If the model runs slower than the camera, frames queue or drop. Measure throughput against 30 fps at your input size. In Figure 12, H+ keeps up only at 480p; pick S or B for live 1080p.
Chapter 8
Compare Depth Pro 2-H+ with the field on metres, edges, steadiness and focal length
Every test is zero-shot: the test sets were not in the model’s training data. The comparisons use Depth Pro 2-H+. The authors re-ran every baseline from its released checkpoint under one protocol. Each table ranks the methods per dataset and averages the ranks; lower is better.
Pick a table. Short bars are better, except in the focal table, where long bars are better.
Numbers from Tables 2 to 6. The focal toggle applies to Tables 2 and 3.
Some single numbers carry the story:
It is not first everywhere. On Booster with a predicted focal length, δ1 is 43.1 against 74.8 for DAGE. On Spring with the true focal length, it scores 20.5 where MoGe-2 scores 27.2 (Table 2).
Failure: an average rank hides a weak dataset. An average rank of 2.7 still allows a 31-point miss on Booster. Read the column for the data you care about. Then test on a clip like yours.
Chapter 9
Read the caveats in the paper’s own tables, starting with a metric that rewards blur
The paper has no limitations section. The caveats below come from its own tables and notes.
The first is about measuring. A common steadiness score, the temporal alignment error (TAE), warps predicted depth between frames with the true poses and assumes a static scene. On blurry or sparse ground truth it rewards blur.
Lower TAE should mean steadier. Pick a dataset and compare the blurred model with the ground truth.
Table 12, times 100. The blur is a Gaussian with sigma 2% of the image width.
On ScanNet, the blurred model scores 0.42, below the ground truth itself at 0.44. That is why the paper ranks steadiness by jitter along tracks, which compares against the truth.
Other caveats:
Failure: a score that prefers blur. Symptom: a blurred depth map ranks better. Measure: score the ground truth itself; it should get zero. Fix: use a metric defined against the truth, such as jitter.
Chapter 10
Keep the terms, the numbers, a checklist, the core code and where to read next
Prior depth methods are sharp or steady. Depth Pro 2 is both. One ViT attends within and across frames at native resolution. A consistency loss on clips of 1 to 32 frames trains it to stay steady. A small focal estimator turns its output into metres.
| Term or number | Meaning | Where |
|---|---|---|
| Metric depth | depth in metres; needs f / Z plus the focal length | Section 3.1 |
| Boundary F1 | match of depth edges, averaged over thresholds of 5 to 25% | Table 4 |
| Jitter | mean change of a tracked point’s log error per frame, times 100 | Appendix F.1 |
| δ1 | share of pixels within a factor 1.25 of the true depth | Table 2 |
| 30.1 and 1.13 | F1 and jitter of H+, Sintel and Spring averaged | Figure 2 |
| 24.1 to 57.7 | F1 from 360 px input to native | Table 21 |
| 0.24 to 0.84 | jitter as cross-frame links go from all to none | Table 20 |
| 88.6% against 71.7% | focal accuracy, Depth Pro 2 against Depth Pro | Table 6 |
| 24.3M to 872.1M | parameters, S to H+ | Table 1 |
| 44.8 and 5.3 fps | S and H+ at 1080p, focal estimator included | Table 13 |
| N = 16, K = 4; C = 16 | default buffered and unbuffered streaming | Appendix E.3 |
Tick each step you have done on a project of yours.
Our summary of the paper’s lessons, not a list from the paper.
Our sketch of the inference procedure, not the authors’ code.
import numpy as np
def depth_video(frames, depth_net, fov_net, N=16, K=4, f_exif=None):
# focal length: EXIF if present, else the median of per-frame estimates (Ch 5)
f = f_exif or np.median([fov_net(x) for x in frames])
out = {}
for s in range(0, len(frames), N - K): # buffered streaming (Ch 7)
clip = frames[s:s + N] # N x 3 x H x W, native size
c = depth_net(clip) # N x H x W: f / Z, all frames attend jointly
for i, ci in enumerate(c):
t = s + i
if t in out and i < K: # overlap: new clip's weight rises linearly
a = (i + 1) / (K + 1)
out[t] = (1 - a) * out[t] + a * ci
else:
out[t] = ci
if s + N >= len(frames):
break
return [f / out[t] for t in range(len(frames))] # metres (Ch 1)
def jitter(pred, true): # one track, depth per frame (Ch 2)
e = np.log(pred) - np.log(true)
return 100 * np.mean(np.abs(np.diff(e)))
In the paper’s words: “We release a family of models, each of which processes both single images and video sequences at full resolution, and can process video in a streaming fashion.” Videos and links are on the project page.
Depth Pro 2 builds on Depth Pro’s focal-normalized output and its edge score. Its cross-frame trick is close to Depth Anything 3, which also rearranges tokens so pretrained attention works across views.
Keep going with Depth Anything V2 for the single-image line and Depth Anything 3 for attention across views. Then read DeFM for depth features in robotics and π4 for 4D geometry and motion. For the basics, see camera geometry and the vision transformer.
Based on “Depth Pro 2: Sharp and Temporally Consistent Metric Monocular Depth” by Peiyun Hu, Marko Mihajlovic, Lyndon Duong, Lahav Lipson, Wei Dong, Amaël Delaunoy, Stephan R. Richter and Vladlen Koltun (Apple, 2026). Read it at arxiv.org/abs/2611.26603. Every number here comes from that paper, except where a device says it is illustrative.