Instructions to use apple/DepthPro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Depth Pro
How to use apple/DepthPro with Depth Pro:
# Download checkpoint pip install huggingface_hub hf download apple/DepthPro --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
Commit History
-
AMLR license (#9)
Verified signature- AMLR license (9ea61d11d9f47ddb196ce3e48dbd97cf957ce728)ccd1350
-
Add LICENSE
Verified signature461bd77
-
Add library name (#6)
Verified signature- Add library name (4eb3282422f3ca3ee2a90acc93646ef72ef99895)5cd9cba
-
Add pipeline tag (#4)
Verified signature- Add pipeline tag (b1fc95fb46c2d3154dabfb6134ff09b77add323b) Co-authored-by: Niels Rogge <[email protected]>e52b794 -
Cross-reference arXiv paper in README.md (#2)
Verified signature- Cross-reference arXiv paper in README.md (c5840accc0e82df40c560f263ba64ed1f6b91ced) Co-authored-by: Amael Delaunoy <[email protected]>63ce9ba
-
Update README.md (#1)
Verified signature- Update README.md (1160443d631ce574f3602d5847ea6bc503640362) Co-authored-by: Amael Delaunoy <[email protected]>92cf19f -
Depth Pro checkpoint
Verified signaturec9e4772 -
initial commit
Verified signatureb14940d