Depth Estimation
Core ML
Depth Pro
visionos
apple-silicon
amlr
computer-vision
512x512
ane-optimized
Instructions to use aarondevstack/DepthPro-512x512-coreml with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Depth Pro
How to use aarondevstack/DepthPro-512x512-coreml with Depth Pro:
# Download checkpoint pip install huggingface_hub hf download aarondevstack/DepthPro-512x512-coreml --local-dir checkpoints
import depth_pro # Load model and preprocessing transform model, transform = depth_pro.create_model_and_transforms() model.eval() # Load and preprocess an image. image, _, f_px = depth_pro.load_rgb("example.png") image = transform(image) # Run inference. prediction = model.infer(image, f_px=f_px) # Results: 1. Depth in meters depth = prediction["depth"] # Results: 2. Focal length in pixels focallength_px = prediction["focallength_px"] - Notebooks
- Google Colab
- Kaggle
Download DepthPro_transform.mlpackage/Data/com.apple.CoreML/model.mlmodel from aarondevstack/DepthPro-512x512-coreml: direct link, hf CLI and curl.
- Browser
- Download file 1.45 kB
-
https://huggingface.co/aarondevstack/DepthPro-512x512-coreml/resolve/main/DepthPro_transform.mlpackage/Data/com.apple.CoreML/model.mlmodel
- Command line
-
hf download hf://aarondevstack/DepthPro-512x512-coreml/DepthPro_transform.mlpackage/Data/com.apple.CoreML/model.mlmodel
-
curl -L -o model.mlmodel https://huggingface.co/aarondevstack/DepthPro-512x512-coreml/resolve/main/DepthPro_transform.mlpackage/Data/com.apple.CoreML/model.mlmodel
1.45 kB
- Xet hash:
- 32d11d501166e3d64f8c1107a9f740067c6ce85b69877653054d3eeb5095a1d7
- Size of remote file:
- 1.45 kB
- SHA256:
- e0a33f01ba1aebf2c1c34b2a24775509e98e6edaddc3864f8ecb12c026efaf6a
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.