Modeldepth-estimation
apple

apple/DepthPro2

Depth Pro 2: Sharp and Temporally Consistent Metric Monocular Depth 🚀 Try the Interactive Demo → -- Depth Pro 2 estimates metric depth for every pixel from an ordinary camera: a single photo, a whole video, or a live feed, at the input's full resolu...

1.1kthích
0tải xuống
0lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

2
TINIX TRENDING·Chủ đề: video-depth

#2 Repository Của Ngày

2
TINIX TRENDING·Chủ đề: arxiv:2611.26603

#2 Repository Của Ngày

2
TINIX TRENDING·Chủ đề: depth-pro-2

#2 Repository Của Ngày

Depth Pro 2: Sharp and Temporally Consistent Metric Monocular Depth

GitHub Technical Report Project Page

Depth Pro 2 estimates metric depth for every pixel from an ordinary camera: a single photo, a whole video, or a live feed, at the input's full resolution. Its depth is sharp at object edges and steady from frame to frame.

Models

Each size is its own repository with its weights. Larger sizes give sharper, steadier depth; smaller ones run faster.

ModelRepositoryParametersDownload size
Sapple/DepthPro2-S24M97 MB
Bapple/DepthPro2-B97M386 MB
Lapple/DepthPro2-L334M1.3 GB
H+apple/DepthPro2-H872M3.5 GB

All sizes share a focal length estimator, apple/DepthPro2-focal (23.5M parameters, 94 MB), which loads with each size and predicts the focal length when it is unknown.

Quick start

pip install "git+https://github.com/apple-aiml-research/ml-depth-pro-2"
from functools import partial

import torch
from depth_pro_2 import DepthPro2, load_rgb, upright
from depth_pro_2.model import to_normalized_tensor

# apple/DepthPro2-S, -B, -L or -H; bfloat16 is how the models run on a GPU.
model = DepthPro2.from_pretrained("apple/DepthPro2-H", precision=torch.bfloat16)
model = model.to("cuda")
transform = partial(to_normalized_tensor, device=torch.device("cuda"))

Image

# f_px is the focal length recorded in the photo, or None.
image, f_px = load_rgb("photo.jpg")
depth = model.infer(transform(image), f_px=f_px)["depth"]  # meters, (H, W)

Video

import av

# 16 frames at a time: one prediction per frame, in order.
video = av.open("video.mp4")
frames = (transform(upright(f)) for f in video.decode(video=0))
for prediction in model.infer_video(frames):
    depth = prediction["depth"]  # meters, (H, W)

Depth is infinite where the scene is infinitely far, such as the sky. The code has the command line and a live-feed example.

Results

Sharpness and temporal consistency

Boundary sharpness against temporal consistency for Depth Pro 2 and prior single-frame and multi-frame methods

Depth Pro 2 outperforms prior work operating on a single frame or multiple frames on sharpness (Boundary F1 score) and temporal consistency (Jitter). Higher F1 and lower jitter are better, so the top right is best. Results averaged over Sintel and Spring datasets.

Photos

Depth Pro 2 on photos: the inputs on top, their predicted depth below

Top row: the input photos. Bottom row: Depth Pro 2's depth, red near and blue far.

Method

Depth Pro 2's architecture: a multi-view transformer over the input frames, then a DPT decoder per frame

A multi-view transformer processes one or more frames jointly, and a DPT decoder predicts an inverse depth map for each frame. ① After the first third of its blocks, the transformer alternates attention within each frame and attention across frames. ② The decoder assembles tokens from several blocks into feature maps at 1/32 to 1/4 of the input resolution.

License

The weights are released under the Apple Machine Learning Research Model license, for research use only: non-commercial scientific research and academic development.

Citation

@article{DepthPro2:2026:arxiv,
  title   = {Depth Pro 2: Sharp and Temporally Consistent Metric Monocular Depth},
  author  = {Peiyun Hu and Marko Mihajlovic and Lyndon Duong and Lahav Lipson and Wei Dong and Ama\"{e}l Delaunoy and Stephan R. Richter and Vladlen Koltun},
  journal = {arXiv preprint arXiv:2611.26603},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.26603},
}

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

Modeldepth-estimation
depth-anything/DA3NESTED-GIANT-LARGE

Depth Anything 3: DA3NESTED-GIANT-LARGE !Project Page(https://img.shields.io/badge/ProjectPage-DepthAnything3-green)(https://depth-anything-3.github.io) !Paper(https://img.shields.io/badge/arXiv-DepthAnything3-red)(https://arxiv.org/abs/) !Demo(http...

♥0
173.3k
Nov 13, 2025
Modeldepth-estimation
depth-anything/DA3METRIC-LARGE

Depth Anything 3: DA3METRIC-LARGE !Project Page(https://img.shields.io/badge/ProjectPage-DepthAnything3-green)(https://depth-anything-3.github.io) !Paper(https://img.shields.io/badge/arXiv-DepthAnything3-red)(https://arxiv.org/abs/) !Demo(https://im...

♥0
294.6k
Nov 13, 2025
Modeldepth-estimation
depth-anything/DA3-LARGE

Depth Anything 3: DA3-LARGE !Project Page(https://img.shields.io/badge/ProjectPage-DepthAnything3-green)(https://depth-anything-3.github.io) !Paper(https://img.shields.io/badge/arXiv-DepthAnything3-red)(https://arxiv.org/abs/) !Demo(https://img.shie...

♥0
358.6k
Nov 19, 2025
Modeldepth-estimation
apple/DepthPro2-H

Depth Pro 2: Sharp and Temporally Consistent Metric Monocular Depth Model size H+ · 872M parameters 🚀 Try the Interactive Demo → -- | B200 | VGA | 720p | 1080p | 4K | |:---|:---:|:---:|:---:|:---:| | Throughput (fps) | 95.9 | 20.2 | 5.3 | 0.4 | | Pe...

♥0
1.2k
Nov 20, 2026
Modeldepth-estimation
apple/DepthPro2-S

Depth Pro 2: Sharp and Temporally Consistent Metric Monocular Depth Model size S · 24M parameters 🚀 Try the Interactive Demo → -- | B200 | VGA | 720p | 1080p | 4K | |:---|:---:|:---:|:---:|:---:| | Throughput (fps) | 347.0 | 143.9 | 44.8 | 3.6 | | P...

♥0
1.9k
Nov 20, 2026
Modeldepth-estimation
apple/DepthPro2-B

Depth Pro 2: Sharp and Temporally Consistent Metric Monocular Depth Model size B · 97M parameters 🚀 Try the Interactive Demo → -- | B200 | VGA | 720p | 1080p | 4K | |:---|:---:|:---:|:---:|:---:| | Throughput (fps) | 269.7 | 82.5 | 23.6 | 1.8 | | Pe...

♥0
664
Nov 20, 2026
Modeldepth-estimation
apple/DepthPro2-L

Depth Pro 2: Sharp and Temporally Consistent Metric Monocular Depth Model size L · 334M parameters 🚀 Try the Interactive Demo → -- | B200 | VGA | 720p | 1080p | 4K | |:---|:---:|:---:|:---:|:---:| | Throughput (fps) | 150.1 | 33.7 | 9.1 | 0.7 | | Pe...

♥0
1.0k
Nov 20, 2026
RepositoryPython
apple-aiml-research/ml-depth-pro-2

Depth Pro 2: Sharp and Temporally Consistent Metric Monocular Depth

588
Nov 20, 2026
Modeldepth-estimation
apple/DepthPro

Depth Pro: Sharp Monocular Metric Depth in Less Than a Second !Depth Pro Demo Image(https://github.com/apple/ml-depth-pro/raw/main/data/depth-pro-teaser.jpg) We present a foundation model for zero-shot metric monocular depth estimation. Our model, D...

♥0
6.2k
Feb 28, 2025