Instructions to use aarondevstack/DepthPro-1024x1024-coreml with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Depth Pro
How to use aarondevstack/DepthPro-1024x1024-coreml with Depth Pro:
# Download checkpoint pip install huggingface_hub hf download aarondevstack/DepthPro-1024x1024-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_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel from aarondevstack/DepthPro-1024x1024-coreml: direct link, hf CLI and curl.
- Browser
- Download file 954 kB
-
https://huggingface.co/aarondevstack/DepthPro-1024x1024-coreml/resolve/main/DepthPro_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel
- Command line
-
hf download hf://aarondevstack/DepthPro-1024x1024-coreml/DepthPro_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel
-
curl -L -o model.mlmodel https://huggingface.co/aarondevstack/DepthPro-1024x1024-coreml/resolve/main/DepthPro_encoder.mlpackage/Data/com.apple.CoreML/model.mlmodel
954 kB
- Xet hash:
- 2faef4473f7613b553e57b44bcab5b8e78ac11eae8e6af3079deb50763157485
- Size of remote file:
- 954 kB
- SHA256:
- 3fa60d4e13dee22215616497ab586e0861a9f86c73030302460e31f10c83f329
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.