Instructions to use LibreYOLO/LibreDepthPro2h-depth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LibreYOLO
How to use LibreYOLO/LibreDepthPro2h-depth with LibreYOLO:
# pip install libreyolo from libreyolo import LibreYOLO model = LibreYOLO("LibreYOLO/LibreDepthPro2h-depth") results = model("https://raw.githubusercontent.com/LibreYOLO/libreyolo/release/libreyolo/assets/guggenheim-bilbao.jpg", save=True) - Notebooks
- Google Colab
- Kaggle
|
Download README.md from LibreYOLO/LibreDepthPro2h-depth: direct link, hf CLI and curl.
- Browser
- Download file 3.36 kB
-
https://huggingface.co/LibreYOLO/LibreDepthPro2h-depth/resolve/main/README.md
- Command line
-
hf download hf://LibreYOLO/LibreDepthPro2h-depth/README.md
-
curl -L -o README.md https://huggingface.co/LibreYOLO/LibreDepthPro2h-depth/resolve/main/README.md
3.36 kB
| 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-H | |
| - apple/DepthPro2-focal | |
| tags: | |
| - depth-estimation | |
| - video-depth | |
| - metric-depth | |
| - depth-pro-2 | |
| - non-commercial | |
| - research-only | |
| # LibreDepthPro2h-depth | |
| Apple Depth Pro 2 (DINOv3 ViT-H+/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-H](https://huggingface.co/apple/DepthPro2-H) | |
| `model.safetensors` at pinned revision `68426c789f75a7c760273e857222625b4fe69576` | |
| (SHA-256: `cfc532336019abd2128b04be2c2967175522e46de69222ef72b87c6675ee3b17`). | |
| - **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-H` 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("LibreDepthPro2h-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. | |