HyperAIHyperAI

Command Palette

Search for a command to run...

Depth Pro 2 : estimation de profondeur métrique monoculaire nette et temporellement cohérente

Peiyun Hu Marko Mihajlovic Lyndon Duong Lahav Lipson Wei Dong Amaël Delaunoy Stephan R. Richter Vladlen Koltun

Résumé

Nous présentons Depth Pro 2, une approche d'estimation de profondeur métrique dense pour les images et les vidéos à pleine résolution. En analysant les méthodes antérieures d'estimation de profondeur monoculaire, nous constatons qu'elles opèrent généralement un compromis entre cohérence temporelle et netteté des contours : les méthodes multi-images privilégient la cohérence, tandis que les méthodes mono-image privilégient la netteté. Pour dépasser ce compromis, nous entraînons un réseau unique et extensible qui traite à la fois les images et les vidéos et prédit des cartes de profondeur à résolution native. Depth Pro 2 produit des cartes de profondeur à la fois métriquement précises, nettes et temporellement cohérentes, surpassant les travaux antérieurs sur l'ensemble de ces dimensions. Nous publions une famille de modèles qui définit un nouveau front de Pareto en termes de précision métrique, de netteté, de cohérence temporelle et de temps d'exécution.

One-sentence Summary

Apple introduces Depth Pro 2, a single scalable network that processes both images and video and predicts metric depth maps at native resolution, overcoming the tradeoff between temporal consistency and boundary sharpness while delivering metrically accurate, sharp, and temporally consistent results, along with a model family that defines a new Pareto frontier in metric accuracy, sharpness, temporal consistency, and runtime.

Key Contributions

  • Depth Pro 2 is a single scalable network that processes both images and video and predicts metric depth at native resolution, overcoming the trade-off between boundary sharpness and temporal consistency.
  • The approach adapts a single-image vision transformer to flexible frame counts by allowing a subset of self-attention layers to attend across views without adding parameters, and penalizes temporal inconsistency during training while using a lightweight field-of-view estimator for metric scale.
  • A released family of models includes Depth Pro 2-S, which processes streaming 1080p video at 53 fps on a single GPU, and Depth Pro 2-H+, which processes 1080p video at 8 fps and sets a new state of the art on metric depth accuracy, boundary sharpness, and temporal stability at once.

Introduction

Monocular depth estimation matters for video applications such as synthetic background blur, where every frame requires a reliable depth map. Prior single-image methods produce sharp occlusion boundaries but are temporally inconsistent, while multi-frame video methods are more stable but often operate at reduced resolution and oversmooth fine detail. The authors introduce Depth Pro 2, a family of models that process a flexible number of frames jointly at native resolution, preserving sharp boundaries while improving temporal stability. Trained on clips of 1 to 32 frames with mixed image, video, and multi-view data, Depth Pro 2 outperforms prior methods in boundary sharpness, temporal consistency, and metric depth accuracy, and includes lightweight focal-length estimation for streaming video.

Method

The authors design Depth Pro 2 to address the inherent trade-off in monocular depth estimation between boundary sharpness and temporal consistency. As illustrated in the qualitative comparison, single-image methods often produce sharp boundaries but suffer from temporal flicker, while multi-frame methods achieve consistency at the cost of blurred details.

This trade-off is further quantified in the scatter plot of boundary sharpness versus temporal consistency, where single-frame methods cluster at the top left and multi-frame methods at the bottom right.

To overcome this, the authors propose an architecture that processes a flexible number of frames jointly at their native resolution.

The overall framework is depicted in the architecture diagram.

The network consists of a multi-view transformer that ingests one or multiple input frames and processes them jointly, followed by a DPT decoder that predicts an inverse depth map per frame. The depth estimation network predicts inverse depth normalized by focal length, which is then combined with a known or estimated focal length to yield metric depth. A separate lightweight field-of-view estimator predicts the focal length if it is not provided via metadata.

The multi-view transformer is initialized from pretrained weights to leverage dense, high-resolution features. Input images are split into patches, embedded as tokens, and their spatial positions are encoded using 2D rotary embeddings. To preserve aspect ratio information, coordinates are normalized by the longer side of the image. The transformer alternates between within-frame self-attention and cross-frame attention to align predictions across frames. For efficiency, the first third of the transformer blocks are restricted to self-attention within the same frame, while the remaining blocks alternate between within- and cross-frame attention. Crucially, the network omits any encoding of frame order, making it equivariant to frame permutation and allowing flexible processing of any number of frames.

The DPT decoder extracts features from intermediate layers of the transformer, assembles them into feature maps at different resolutions, and projects them to a common channel dimension. Transposed convolutions are used for upsampling instead of bilinear interpolation to maintain sharp boundaries.

Training is conducted on a diverse set of datasets with a focus on synthetic ground truth. To preserve boundary sharpness, the authors avoid interpolating ground-truth depth maps. The model is trained on clips of varying lengths, treating single images as clips of length one. Batching is performed by tokens, with each GPU receiving a fixed budget of tokens to efficiently handle varying resolutions and clip lengths.

The training objective is an unweighted sum of four loss terms:

L=Lmae+Lssi+Lmge+Lmvc\mathcal{L} = \mathcal{L}_{mae} + \mathcal{L}_{ssi} + \mathcal{L}_{mge} + \mathcal{L}_{mvc}L=Lmae​+Lssi​+Lmge​+Lmvc​

Lmae\mathcal{L}_{mae}Lmae​ is a trimmed L1\mathcal{L}_1L1​ loss on focal-normalized inverse depth for metric anchoring. Lssi\mathcal{L}_{ssi}Lssi​ is a trimmed L1\mathcal{L}_1L1​ loss after scale-and-shift invariant normalization. Both trimmed losses discard a fraction of pixels with the largest loss to handle noise. Lmge\mathcal{L}_{mge}Lmge​ is a multi-scale gradient term that matches first-order gradients of normalized depth maps, applied only to synthetic data where boundaries are exact.

To stabilize predictions across frames, the authors introduce a multi-view consistency loss Lmvc\mathcal{L}_{mvc}Lmvc​. This loss unprojects pixels using predicted depth and reprojects them into other frames using ground-truth camera poses. The deviation in inverse depth between the reprojected point and the prediction in the target frame is penalized. To handle occlusions and moving objects, pixels are warped using ground-truth depth, and those with significant depth discrepancies are discarded.

At inference, the model supports two streaming modes. Buffered streaming divides video into overlapping clips and processes them with full attention, blending predictions in the overlap region. Unbuffered streaming processes frames sequentially with causal cross-attention, using a cache for keys and values of past frames to minimize latency.

Experiment

Depth Pro 2 is evaluated in zero-shot settings for metric depth accuracy, boundary sharpness, temporal consistency, focal-length estimation, and downstream applications, using both single-image and 50-frame video inputs across diverse benchmarks. The experiments show that prior multi-frame methods are temporally consistent but lose boundary detail, while single-frame methods preserve boundaries but suffer temporal inconsistency, and Depth Pro 2 overcomes this trade-off by achieving the lowest average rank for metric depth and boundary sharpness along with state-of-the-art temporal consistency. Its focal-length estimator also ranks first across all tested datasets, and additional experiments cover depth-guided bokeh rendering and novel view synthesis.

The Depth Pro 2 family scales across four variants built on DINOv3 ViT backbones with a shared 16x16 patch size. Larger variants use more transformer blocks and wider token channels, while all variants keep cross-frame attention in later blocks after an initial self-attention-only section. A DPT decoder reassembles selected backbone tokens at multiple scales, and decoder capacity remains a small part of the total model. The model family progresses from a compact backbone with 12 transformer blocks and 384 token channels to a high-capacity backbone with 32 blocks and 1280 token channels. Cross-frame attention is limited to later backbone blocks, with early blocks using only within-frame self-attention. The two largest variants share identical decoder fusion widths and reassembled feature-map channels despite differing backbone depth and width. Decoder parameters are a small fraction of total parameters in every variant, and the focal-length estimator is excluded from parameter counts.

This evaluation measures zero-shot metric depth accuracy across indoor, indoor-outdoor, outdoor, and synthetic datasets under ground-truth and predicted camera intrinsics. Depth Pro 2 attains the best average rank in both intrinsic conditions. The listed baselines show domain-dependent strengths, with no single baseline leading across all dataset groups. Depth Pro 2 has the lowest average rank overall with both ground-truth and predicted intrinsics. MoGe-3-G and FoundationGeo are the strongest listed baselines on average, but their per-dataset accuracy varies considerably, particularly on synthetic and outdoor sequences. MetricAnything is evaluated only with ground-truth intrinsics, so its predicted-intrinsic accuracy is absent from this comparison.

In zero-shot metric depth evaluation on video clips, accuracy varies widely across real and synthetic datasets, with no baseline leading on every scene type. Depth Pro 2 achieves the lowest average rank both with ground-truth and predicted camera intrinsics. Predicted intrinsics are especially challenging for some methods, causing large relative drops on synthetic sequences. Depth Pro 2 has the lowest average rank in the video setting with and without ground-truth intrinsics. Methods that are competitive on one dataset often fall behind on others, so strong real-outdoor performance does not guarantee strong synthetic results. Using predicted intrinsics instead of ground truth substantially weakens some methods on synthetic clips.

This evaluation measures zero-shot temporal consistency using jitter along point tracks, where lower values and average ranks indicate more stable video depth. Among the listed methods, MoGe-2-L and UniK3D-L show the strongest average ranks, while Depth Pro and Pixel-Perfect Depth show the weakest. The accompanying text reports that Depth Pro 2 sets a new state of the art for temporal consistency while also preserving boundary sharpness. MoGe-2-L and UniK3D-L achieve the best average rank among the listed methods, ahead of Lapis, FoundationGeo, InfiniDepth, Depth Pro, and Pixel-Perfect Depth. On Sintel, UniK3D-L records the lowest jitter among the listed methods, while on Spring, FoundationGeo records the lowest jitter. Depth Pro and Pixel-Perfect Depth have the highest average ranks and are the least temporally consistent among the compared methods. The reported analysis indicates Depth Pro 2 avoids the usual trade-off between temporal consistency and boundary detail and achieves state-of-the-art temporal consistency.

Zero-shot focal length estimation is evaluated across six datasets using relative error thresholds, with higher accuracy at δ25 and δ50 being better. Among the methods shown, Depth Pro achieves the strongest overall performance, with the highest mean δ25 and the best average rank. Its per-dataset accuracy is consistently high, while several other methods fall below 40% δ25 on at least one dataset. Depth Pro leads the comparison in mean δ25 and average rank, outperforming dedicated calibration and depth-based methods. Depth Pro remains above 64% δ25 on every dataset, whereas several competitors drop below 40% δ25 on datasets such as DDDP or PPR10K. GeoCalib has the lowest mean δ25 and the worst average rank among the compared methods.

The experiments evaluate the Depth Pro 2 family across four backbone variants and assess zero-shot metric depth on indoor, outdoor, and synthetic datasets, video depth, temporal consistency via point-track jitter, and focal length estimation under ground-truth and predicted intrinsics. Depth Pro 2 achieves the best average rank in both image and video metric depth settings, with no baseline dominant across all domains, and it sets state-of-the-art temporal consistency while preserving boundary sharpness. For focal length estimation, Depth Pro attains the best mean δ25 and average rank, outperforming dedicated calibration and depth-based methods.


Créer de l'IA avec l'IA

De l'idée au lancement — accélérez votre développement IA avec le co-codage IA gratuit, un environnement prêt à l'emploi et le meilleur prix pour les GPU.

Codage assisté par IA
GPU prêts à l’emploi
Tarifs les plus avantageux

HyperAI Newsletters

Abonnez-vous à nos dernières mises à jour
Nous vous enverrons les dernières mises à jour de la semaine dans votre boîte de réception à neuf heures chaque lundi matin
Propulsé par MailChimp