File size: 3,358 Bytes
b974e71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
license: other
license_name: apple-amlr
license_link: https://github.com/apple-aiml-research/ml-depth-pro-2/blob/aa389cbb0b74341664ed663a0966c859905cd6c0/LICENSE_MODEL
library_name: libreyolo
pipeline_tag: depth-estimation
base_model:
  - apple/DepthPro2-L
  - apple/DepthPro2-focal
tags:
  - depth-estimation
  - video-depth
  - metric-depth
  - depth-pro-2
  - non-commercial
  - research-only
---

# LibreDepthPro2l-depth

Apple Depth Pro 2 (DINOv3 ViT-L/16) bundled with Apple's companion focal-length
estimator (`DepthPro2-focal`) for metric single-image and streaming video depth
estimation, repackaged in [LibreYOLO](https://github.com/LibreYOLO/libreyolo)
checkpoint format.

> ## NON-COMMERCIAL RESEARCH-ONLY WEIGHTS
>
> These weights are **not** covered by LibreYOLO's MIT license.
>
> **Apple Machine Learning Research Model is licensed under the Apple Machine
> Learning Research Model License Agreement.**
>
> Under the [Apple Machine Learning Research Model License Agreement](./LICENSE)
> (`apple-amlr`, Copyright (C) 2026 Apple Inc. All Rights Reserved), use,
> modification, and redistribution of these pretrained weights are limited
> exclusively to **non-commercial Research Purposes** (scientific research and
> academic development; no commercial exploitation, product development, or use
> in any commercial product or service). Downstream users are solely responsible
> for complying with the license terms.

## Source

- **Depth checkpoint**: [apple/DepthPro2-L](https://huggingface.co/apple/DepthPro2-L)
  `model.safetensors` at pinned revision `849dc5461267e0bc006ec63ab46920ea1ed98702`
  (SHA-256: `d799d8a91f2e8dc91715f9b33a405a1ff0727212041d206ebbb04e6c1424ff9f`).
- **Focal-length checkpoint**: [apple/DepthPro2-focal](https://huggingface.co/apple/DepthPro2-focal)
  `model.safetensors` at pinned revision `622659d44a2002cf9ae4333f2569afa938290d9a`
  (SHA-256: `8f567d1c97ff916137288668f6bd306ce2094da2e2b852b0e4539dbb139c8c86`).
- **Upstream reference code**: [apple-aiml-research/ml-depth-pro-2](https://github.com/apple-aiml-research/ml-depth-pro-2/tree/aa389cbb0b74341664ed663a0966c859905cd6c0)
  at commit `aa389cbb0b74341664ed663a0966c859905cd6c0` (Apple Sample Code License).

## Modifications

None to the learned parameters: every tensor from `apple/DepthPro2-L` and
`apple/DepthPro2-focal` is preserved unchanged (bit-identical inference parity verified
against upstream). The only modifications are bundling the `apple/DepthPro2-focal` state
dict under the `fov.*` key prefix alongside the depth state dict and adding
LibreYOLO checkpoint v1.0 metadata (`task="depth"`).

See `weights/convert_depthpro2_weights.py` and `weights/upload_depthpro2_hf.py`
in the [LibreYOLO source repository](https://github.com/LibreYOLO/libreyolo).

## Usage

```python
from libreyolo import LibreYOLO

model = LibreYOLO("LibreDepthPro2l-depth.pt")
result = model.predict("image.jpg")
depth = result.depth_map            # metric depth in metres (inf on sky pixels)
K = depth.intrinsics                # (3, 3) OpenCV pixel intrinsics
```

## License

Apple Machine Learning Research Model License Agreement (`apple-amlr`).
Apple Machine Learning Research Model is licensed under the Apple Machine
Learning Research Model License Agreement. See the verbatim
[`LICENSE`](./LICENSE) and [`NOTICE`](./NOTICE) files in this repository.