LibreDepthPro2l-depth
Apple depth estimation for LibreYOLO
2 min readupdated
The model combines Apple Depth Pro 2 (built on the DINOv3 ViT-L/16 architecture) and the auxiliary DepthPro2-focal focal length estimator into a single LibreYOLO format file. The tool calculates metric depth from a single image or in streaming video, and also determines camera intrinsic parameters. The original Apple weights remain unchanged, guaranteeing results that match the source completely. This solution will be useful for computer vision and 3D reconstruction researchers.
Key features
- Combines the
apple/DepthPro2-Landapple/DepthPro2-focalcheckpoints under a unified LibreYOLO interface. - Outputs a metric depth map in meters and a matrix of camera pixel intrinsics (optical parameters for OpenCV).
- Weights are saved without fine-tuning, delivering bit-exact output relative to Apple's official code.
- The Apple AMLR license permits non-commercial scientific research and development exclusively.
What you can do
- Build a metric depth map for a single photo in an academic project.
- Run real-time depth estimation to analyze streaming video.
- Obtain an OpenCV camera parameter matrix (3×3) without prior manual calibration.
Example
from libreyolo import LibreYOLO
model = LibreYOLO("LibreDepthPro2l-depth.pt")
result = model.predict("image.jpg")
depth = result.depth_map # метрическая глубина в метрах
K = depth.intrinsics # (3, 3) интринсики камеры OpenCVRead more
DetailsArchitecture: DINOv3 ViT-L/16 + focal length estimation module (keys under the
fov.* prefix).Output details: returns infinity (
inf) for sky pixels.License: Apple Machine Learning Research Model License Agreement (non-commercial use only).










Comments