Instructions to use LibreYOLO/LibreDepthPro2l-depth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LibreYOLO
How to use LibreYOLO/LibreDepthPro2l-depth with LibreYOLO:
# pip install libreyolo from libreyolo import LibreYOLO model = LibreYOLO("LibreYOLO/LibreDepthPro2l-depth") results = model("https://raw.githubusercontent.com/LibreYOLO/libreyolo/release/libreyolo/assets/guggenheim-bilbao.jpg", save=True) - Notebooks
- Google Colab
- Kaggle
Initial upload of LibreDepthPro2l-depth (Apple Depth Pro 2 + focal)
Browse files- LICENSE +88 -0
- LibreDepthPro2l-depth.pt +3 -0
- NOTICE +43 -0
- README.md +79 -0
LICENSE
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Disclaimer: IMPORTANT: This Apple Machine Learning Research Model is
|
| 2 |
+
specifically developed and released by Apple Inc. ("Apple") for the sole purpose
|
| 3 |
+
of scientific research of artificial intelligence and machine-learning
|
| 4 |
+
technology. “Apple Machine Learning Research Model” means the model, including
|
| 5 |
+
but not limited to algorithms, formulas, trained model weights, parameters,
|
| 6 |
+
configurations, checkpoints, and any related materials (including
|
| 7 |
+
documentation).
|
| 8 |
+
|
| 9 |
+
This Apple Machine Learning Research Model is provided to You by
|
| 10 |
+
Apple in consideration of your agreement to the following terms, and your use,
|
| 11 |
+
modification, creation of Model Derivatives, and or redistribution of the Apple
|
| 12 |
+
Machine Learning Research Model constitutes acceptance of this Agreement. If You
|
| 13 |
+
do not agree with these terms, please do not use, modify, create Model
|
| 14 |
+
Derivatives of, or distribute this Apple Machine Learning Research Model or
|
| 15 |
+
Model Derivatives.
|
| 16 |
+
|
| 17 |
+
* License Scope: In consideration of your agreement to abide by the following
|
| 18 |
+
terms, and subject to these terms, Apple hereby grants you a personal,
|
| 19 |
+
non-exclusive, worldwide, non-transferable, royalty-free, revocable, and
|
| 20 |
+
limited license, to use, copy, modify, distribute, and create Model
|
| 21 |
+
Derivatives (defined below) of the Apple Machine Learning Research Model
|
| 22 |
+
exclusively for Research Purposes. You agree that any Model Derivatives You
|
| 23 |
+
may create or that may be created for You will be limited to Research Purposes
|
| 24 |
+
as well. “Research Purposes” means non-commercial scientific research and
|
| 25 |
+
academic development activities, such as experimentation, analysis, testing
|
| 26 |
+
conducted by You with the sole intent to advance scientific knowledge and
|
| 27 |
+
research. “Research Purposes” does not include any commercial exploitation,
|
| 28 |
+
product development or use in any commercial product or service.
|
| 29 |
+
|
| 30 |
+
* Distribution of Apple Machine Learning Research Model and Model Derivatives:
|
| 31 |
+
If you choose to redistribute Apple Machine Learning Research Model or its
|
| 32 |
+
Model Derivatives, you must provide a copy of this Agreement to such third
|
| 33 |
+
party, and ensure that the following attribution notice be provided: “Apple
|
| 34 |
+
Machine Learning Research Model is licensed under the Apple Machine Learning
|
| 35 |
+
Research Model License Agreement.” Additionally, all Model Derivatives must
|
| 36 |
+
clearly be identified as such, including disclosure of modifications and
|
| 37 |
+
changes made to the Apple Machine Learning Research Model. The name,
|
| 38 |
+
trademarks, service marks or logos of Apple may not be used to endorse or
|
| 39 |
+
promote Model Derivatives or the relationship between You and Apple. “Model
|
| 40 |
+
Derivatives” means any models or any other artifacts created by modifications,
|
| 41 |
+
improvements, adaptations, alterations to the architecture, algorithm or
|
| 42 |
+
training processes of the Apple Machine Learning Research Model, or by any
|
| 43 |
+
retraining, fine-tuning of the Apple Machine Learning Research Model.
|
| 44 |
+
|
| 45 |
+
* No Other License: Except as expressly stated in this notice, no other rights
|
| 46 |
+
or licenses, express or implied, are granted by Apple herein, including but
|
| 47 |
+
not limited to any patent, trademark, and similar intellectual property rights
|
| 48 |
+
worldwide that may be infringed by the Apple Machine Learning Research Model,
|
| 49 |
+
the Model Derivatives or by other works in which the Apple Machine Learning
|
| 50 |
+
Research Model may be incorporated.
|
| 51 |
+
|
| 52 |
+
* Compliance with Laws: Your use of Apple Machine Learning Research Model must
|
| 53 |
+
be in compliance with all applicable laws and regulations.
|
| 54 |
+
|
| 55 |
+
* Term and Termination: The term of this Agreement will begin upon your
|
| 56 |
+
acceptance of this Agreement or use of the Apple Machine Learning Research
|
| 57 |
+
Model and will continue until terminated in accordance with the following
|
| 58 |
+
terms. Apple may terminate this Agreement at any time if You are in breach of
|
| 59 |
+
any term or condition of this Agreement. Upon termination of this Agreement,
|
| 60 |
+
You must cease to use all Apple Machine Learning Research Models and Model
|
| 61 |
+
Derivatives and permanently delete any copy thereof. Sections 3, 6 and 7 will
|
| 62 |
+
survive termination.
|
| 63 |
+
|
| 64 |
+
* Disclaimer and Limitation of Liability: This Apple Machine Learning Research
|
| 65 |
+
Model and any outputs generated by the Apple Machine Learning Research Model
|
| 66 |
+
are provided on an “AS IS” basis. APPLE MAKES NO WARRANTIES, EXPRESS OR
|
| 67 |
+
IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF
|
| 68 |
+
NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE,
|
| 69 |
+
REGARDING THE APPLE MACHINE LEARNING RESEARCH MODEL OR OUTPUTS GENERATED BY
|
| 70 |
+
THE APPLE MACHINE LEARNING RESEARCH MODEL. You are solely responsible for
|
| 71 |
+
determining the appropriateness of using or redistributing the Apple Machine
|
| 72 |
+
Learning Research Model and any outputs of the Apple Machine Learning Research
|
| 73 |
+
Model and assume any risks associated with Your use of the Apple Machine
|
| 74 |
+
Learning Research Model and any output and results. IN NO EVENT SHALL APPLE BE
|
| 75 |
+
LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
| 76 |
+
IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF
|
| 77 |
+
THE APPLE MACHINE LEARNING RESEARCH MODEL AND ANY OUTPUTS OF THE APPLE MACHINE
|
| 78 |
+
LEARNING RESEARCH MODEL, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT,
|
| 79 |
+
TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS
|
| 80 |
+
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 81 |
+
|
| 82 |
+
* Governing Law: This Agreement will be governed by and construed under the laws
|
| 83 |
+
of the State of California without regard to its choice of law principles. The
|
| 84 |
+
Convention on Contracts for the International Sale of Goods shall not apply to
|
| 85 |
+
the Agreement except that the arbitration clause and any arbitration hereunder
|
| 86 |
+
shall be governed by the Federal Arbitration Act, Chapters 1 and 2.
|
| 87 |
+
|
| 88 |
+
Copyright (C) 2026 Apple Inc. All Rights Reserved.
|
LibreDepthPro2l-depth.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a39f1204de2d0e8461f3a44dbcd2afa4081864bd0f1e5f84b20b3c956157c27
|
| 3 |
+
size 1429834035
|
NOTICE
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
LibreDepthPro2l-depth weights
|
| 2 |
+
-----------------------------
|
| 3 |
+
|
| 4 |
+
Apple Machine Learning Research Model is licensed under the Apple Machine
|
| 5 |
+
Learning Research Model License Agreement.
|
| 6 |
+
|
| 7 |
+
Copyright (C) 2026 Apple Inc. All Rights Reserved.
|
| 8 |
+
|
| 9 |
+
Source checkpoints
|
| 10 |
+
------------------
|
| 11 |
+
- Depth model: https://huggingface.co/apple/DepthPro2-L
|
| 12 |
+
Revision: 849dc5461267e0bc006ec63ab46920ea1ed98702
|
| 13 |
+
File: model.safetensors
|
| 14 |
+
SHA-256: d799d8a91f2e8dc91715f9b33a405a1ff0727212041d206ebbb04e6c1424ff9f
|
| 15 |
+
- Focal length estimator: https://huggingface.co/apple/DepthPro2-focal
|
| 16 |
+
Revision: 622659d44a2002cf9ae4333f2569afa938290d9a
|
| 17 |
+
File: model.safetensors
|
| 18 |
+
SHA-256: 8f567d1c97ff916137288668f6bd306ce2094da2e2b852b0e4539dbb139c8c86
|
| 19 |
+
- Upstream reference code: https://github.com/apple-aiml-research/ml-depth-pro-2
|
| 20 |
+
Commit: aa389cbb0b74341664ed663a0966c859905cd6c0
|
| 21 |
+
|
| 22 |
+
Modifications
|
| 23 |
+
-------------
|
| 24 |
+
This file is a repackaged checkpoint for LibreYOLO. The learned tensors of
|
| 25 |
+
apple/DepthPro2-L and apple/DepthPro2-focal are completely unchanged (bitwise
|
| 26 |
+
identical to upstream). The only modifications are:
|
| 27 |
+
|
| 28 |
+
1. Bundling the apple/DepthPro2-focal state dict under the ``fov.*`` key prefix in the
|
| 29 |
+
same checkpoint file as the depth model state dict.
|
| 30 |
+
2. Wrapping the combined state dict with LibreYOLO checkpoint v1.0 metadata
|
| 31 |
+
(``model_family="depthpro2"``, ``size="l"``, ``task="depth"``).
|
| 32 |
+
|
| 33 |
+
See ``weights/convert_depthpro2_weights.py`` and
|
| 34 |
+
``weights/upload_depthpro2_hf.py`` in https://github.com/LibreYOLO/libreyolo.
|
| 35 |
+
|
| 36 |
+
License & non-endorsement
|
| 37 |
+
-------------------------
|
| 38 |
+
These weights are governed exclusively by the Apple Machine Learning Research
|
| 39 |
+
Model License Agreement (see the verbatim ``LICENSE`` file in this repository),
|
| 40 |
+
which restricts use and redistribution to non-commercial Research Purposes
|
| 41 |
+
only. Downstream users are solely responsible for complying with those terms.
|
| 42 |
+
Apple's name, trademarks, service marks, and logos are not used to endorse or
|
| 43 |
+
promote LibreYOLO or any derivative works.
|
README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: apple-amlr
|
| 4 |
+
license_link: https://github.com/apple-aiml-research/ml-depth-pro-2/blob/aa389cbb0b74341664ed663a0966c859905cd6c0/LICENSE_MODEL
|
| 5 |
+
library_name: libreyolo
|
| 6 |
+
pipeline_tag: depth-estimation
|
| 7 |
+
base_model:
|
| 8 |
+
- apple/DepthPro2-L
|
| 9 |
+
- apple/DepthPro2-focal
|
| 10 |
+
tags:
|
| 11 |
+
- depth-estimation
|
| 12 |
+
- video-depth
|
| 13 |
+
- metric-depth
|
| 14 |
+
- depth-pro-2
|
| 15 |
+
- non-commercial
|
| 16 |
+
- research-only
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# LibreDepthPro2l-depth
|
| 20 |
+
|
| 21 |
+
Apple Depth Pro 2 (DINOv3 ViT-L/16) bundled with Apple's companion focal-length
|
| 22 |
+
estimator (`DepthPro2-focal`) for metric single-image and streaming video depth
|
| 23 |
+
estimation, repackaged in [LibreYOLO](https://github.com/LibreYOLO/libreyolo)
|
| 24 |
+
checkpoint format.
|
| 25 |
+
|
| 26 |
+
> ## NON-COMMERCIAL RESEARCH-ONLY WEIGHTS
|
| 27 |
+
>
|
| 28 |
+
> These weights are **not** covered by LibreYOLO's MIT license.
|
| 29 |
+
>
|
| 30 |
+
> **Apple Machine Learning Research Model is licensed under the Apple Machine
|
| 31 |
+
> Learning Research Model License Agreement.**
|
| 32 |
+
>
|
| 33 |
+
> Under the [Apple Machine Learning Research Model License Agreement](./LICENSE)
|
| 34 |
+
> (`apple-amlr`, Copyright (C) 2026 Apple Inc. All Rights Reserved), use,
|
| 35 |
+
> modification, and redistribution of these pretrained weights are limited
|
| 36 |
+
> exclusively to **non-commercial Research Purposes** (scientific research and
|
| 37 |
+
> academic development; no commercial exploitation, product development, or use
|
| 38 |
+
> in any commercial product or service). Downstream users are solely responsible
|
| 39 |
+
> for complying with the license terms.
|
| 40 |
+
|
| 41 |
+
## Source
|
| 42 |
+
|
| 43 |
+
- **Depth checkpoint**: [apple/DepthPro2-L](https://huggingface.co/apple/DepthPro2-L)
|
| 44 |
+
`model.safetensors` at pinned revision `849dc5461267e0bc006ec63ab46920ea1ed98702`
|
| 45 |
+
(SHA-256: `d799d8a91f2e8dc91715f9b33a405a1ff0727212041d206ebbb04e6c1424ff9f`).
|
| 46 |
+
- **Focal-length checkpoint**: [apple/DepthPro2-focal](https://huggingface.co/apple/DepthPro2-focal)
|
| 47 |
+
`model.safetensors` at pinned revision `622659d44a2002cf9ae4333f2569afa938290d9a`
|
| 48 |
+
(SHA-256: `8f567d1c97ff916137288668f6bd306ce2094da2e2b852b0e4539dbb139c8c86`).
|
| 49 |
+
- **Upstream reference code**: [apple-aiml-research/ml-depth-pro-2](https://github.com/apple-aiml-research/ml-depth-pro-2/tree/aa389cbb0b74341664ed663a0966c859905cd6c0)
|
| 50 |
+
at commit `aa389cbb0b74341664ed663a0966c859905cd6c0` (Apple Sample Code License).
|
| 51 |
+
|
| 52 |
+
## Modifications
|
| 53 |
+
|
| 54 |
+
None to the learned parameters: every tensor from `apple/DepthPro2-L` and
|
| 55 |
+
`apple/DepthPro2-focal` is preserved unchanged (bit-identical inference parity verified
|
| 56 |
+
against upstream). The only modifications are bundling the `apple/DepthPro2-focal` state
|
| 57 |
+
dict under the `fov.*` key prefix alongside the depth state dict and adding
|
| 58 |
+
LibreYOLO checkpoint v1.0 metadata (`task="depth"`).
|
| 59 |
+
|
| 60 |
+
See `weights/convert_depthpro2_weights.py` and `weights/upload_depthpro2_hf.py`
|
| 61 |
+
in the [LibreYOLO source repository](https://github.com/LibreYOLO/libreyolo).
|
| 62 |
+
|
| 63 |
+
## Usage
|
| 64 |
+
|
| 65 |
+
```python
|
| 66 |
+
from libreyolo import LibreYOLO
|
| 67 |
+
|
| 68 |
+
model = LibreYOLO("LibreDepthPro2l-depth.pt")
|
| 69 |
+
result = model.predict("image.jpg")
|
| 70 |
+
depth = result.depth_map # metric depth in metres (inf on sky pixels)
|
| 71 |
+
K = depth.intrinsics # (3, 3) OpenCV pixel intrinsics
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
## License
|
| 75 |
+
|
| 76 |
+
Apple Machine Learning Research Model License Agreement (`apple-amlr`).
|
| 77 |
+
Apple Machine Learning Research Model is licensed under the Apple Machine
|
| 78 |
+
Learning Research Model License Agreement. See the verbatim
|
| 79 |
+
[`LICENSE`](./LICENSE) and [`NOTICE`](./NOTICE) files in this repository.
|