Models · Monocular depth

Depth Pro

Apple's single-image model for metric depth and the camera focal length, at 1536x1536 internal resolution. Research-only licence.

Commercial use: no (weights: LicenseRef-research-only).

variantinputbackendtime (ms)peak memory (MiB, allocated / reserved)
depth-proMiddlebury 2014 half (994x1482)original (fp32)
original
portable
kernels
portable + torch.compile
TensorRT fp16
1776
569
518
271
488
299
8170 / 9020
3828 / 4294
3306 / 3498
3667 / 3778
3053 / 3198
2926 (engine)
Details
  • Original code: https://github.com/apple/ml-depth-pro at 9e65e4d
  • Code licence: LicenseRef-Apple-Sample-Code (permissive); files: LICENSE
  • Weights licence: LicenseRef-research-only
  • Licence evidence: https://github.com/apple/ml-depth-pro/blob/9e65e4d/README.md (License section: code and weights under LICENSE, the Apple sample-code licence) and https://huggingface.co/apple/DepthPro (license: apple-amlr, research use only); the stricter model-card terms are recorded for the weights
  • Training data: Mixture of real and synthetic metric-depth datasets per the Depth Pro paper (Table 15); the list is not on the model card
  • Licence note: The Apple sample-code licence and the model licence allow research use only.
  • Kernel libraries: fastbb, dpt_fused
  • Variants: depth-pro
  • Outputs: depth, intrinsics; kind: metric
  • Input size: any H x W >= 8, resized or padded inside the model (ViT patch 16)
  • Tested up to (portable, fp16, RTX 5060 Ti 16 GB): depth-pro 3000x4000 (3.4 GiB peak allocated, 4.0 reserved)
  • depth-pro 994x1482, first call: portable + torch.compile 39 s (cold Inductor cache), TensorRT fp16 163 s (ONNX + engine).
  • depth-pro original 994x1482: torch.autocast(fp16) around the forward; fp16 = original's own precision=float16 model
  • depth-pro load / first call: original 17.34 s / 0.745 s, portable 4.67 s / 0.584 s, kernels 1.11† s / 0.371 s
  • † measured in the speed sweep after the portable load (or an earlier size) in the same process: file cache and kernels are warm, so the time is lower than a fresh start.
  • Protocol, median of 5 after 3 warm-up, uint8 CUDA input (synthetic for bench_inputs sizes), card defaults; gc before each load; peak = max over the first call and the timed calls

Measured

AbsRel / delta1 after a least-squares scale + shift fit (in disparity space for inverse-depth models), mean over images. Original = the original code named under Details, same checkpoint and protocol.

variantdatasetoriginal fp32original fp16portablekernelsnote
depth-proNYUv2 test, AbsRel / delta10.0425 / 0.98100.0425 / 0.98100.0425 / 0.98100.0425 / 0.9810
depth-proiBims-1, AbsRel / delta10.0353 / 0.98270.0353 / 0.98260.0353 / 0.98260.0353 / 0.9827
depth-proETH3D two-view train left, AbsRel / delta10.0651 / 0.96420.0652 / 0.96420.0652 / 0.96420.0656 / 0.9638possibly in the training data
depth-proMiddlebury 2014 trainingH left, AbsRel / delta10.0295 / 0.99660.0295 / 0.99660.0295 / 0.99660.0295 / 0.9966possibly in the training data

Measured on NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks 939adfe8, 2026-11-06.

Parity

CPU, float32: max |diff| <= 0.005 vs the original. GPU, float16 (the default), portable and kernels: mean |diff| <= 1 % and p99 <= 3 % of the reference's median |value| (absolute error of the output depth).

variantkernels error vs original, mean / p99GPU, torchkernels used
depth-pro0.00107 / 0.00197RTX 5060 Ti, torch 2.14.1+cu130dpt_fused@48e0065bb7cf:sm_120, fastbb@7d058322634d:sm_120