|
Download README.md from apple/DepthPro2-L: direct link, hf CLI and curl.
- Browser
- Download file 3.78 kB
-
https://huggingface.co/apple/DepthPro2-L/resolve/main/README.md
- Command line
-
hf download hf://apple/DepthPro2-L/README.md
-
curl -L -o README.md https://huggingface.co/apple/DepthPro2-L/resolve/main/README.md
3.78 kB
metadata
license: other
license_name: apple-amlr
license_link: https://github.com/apple-aiml-research/ml-depth-pro-2/blob/main/LICENSE_MODEL
pipeline_tag: depth-estimation
library_name: depth-pro-2
tags:
- depth-estimation
- metric-depth
- monocular-depth
- video-depth
Depth Pro 2: Sharp and Temporally Consistent Metric Monocular Depth
Model size L · 334M parameters
| B200 | VGA | 720p | 1080p | 4K |
|---|---|---|---|---|
| Throughput (fps) | 150.1 | 33.7 | 9.1 | 0.7 |
| Peak memory (GiB) | 4.0 | 10.6 | 21.7 | 82.6 |
Benchmark details
- GPU: NVIDIA B200, in bfloat16 and PyTorch eager mode (no compilation)
- Input: a 32-frame video clip, processed in one call at its native resolution
- Resolutions: VGA is 640 × 480; 720p, 1080p and 4K are 16:9
- Throughput: frames per second, averaged over the clip
- Memory: the peak GPU memory PyTorch reserves
- Included: the focal length estimator, a separate 23.5M-parameter model that loads with the depth model
How to use
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
from depth_pro_2.model import to_normalized_tensor
model = DepthPro2.from_pretrained("apple/DepthPro2-L", precision=torch.bfloat16)
model = model.to("cuda")
transform = partial(to_normalized_tensor, device=torch.device("cuda"))
image, f_px = load_rgb("photo.jpg") # f_px: EXIF focal length, or None
depth = model.infer(transform(image), f_px=f_px)["depth"] # meters, (H, W)
Videos, the other sizes and the command line are on the Depth Pro 2 page.
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},
}