Instructions to use LibreYOLO/LibreDepthPro2b-depth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LibreYOLO
How to use LibreYOLO/LibreDepthPro2b-depth with LibreYOLO:
# pip install libreyolo from libreyolo import LibreYOLO model = LibreYOLO("LibreYOLO/LibreDepthPro2b-depth") results = model("https://raw.githubusercontent.com/LibreYOLO/libreyolo/release/libreyolo/assets/guggenheim-bilbao.jpg", save=True) - Notebooks
- Google Colab
- Kaggle
File size: 3,358 Bytes
15c18af | 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-B
- apple/DepthPro2-focal
tags:
- depth-estimation
- video-depth
- metric-depth
- depth-pro-2
- non-commercial
- research-only
---
# LibreDepthPro2b-depth
Apple Depth Pro 2 (DINOv3 ViT-B/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-B](https://huggingface.co/apple/DepthPro2-B)
`model.safetensors` at pinned revision `85e67fdfb7f5b36a6f6c4495e6789d331b1d8a04`
(SHA-256: `244ff85e0d9bde6e0f985de1c61420abc4c2110265b495c974556225ac2b60ed`).
- **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-B` 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("LibreDepthPro2b-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.
|