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
-
Add pipeline tag
Verified signatureThis PR ensures people can find the model at https://huggingface.co/models?pipeline_tag=depth-estimation.b1fc95f -
Cross-reference arXiv paper in README.md (#2)
Verified signature- Cross-reference arXiv paper in README.md (c5840accc0e82df40c560f263ba64ed1f6b91ced) Co-authored-by: Amael Delaunoy <amael-apple@users.noreply.huggingface.co>63ce9ba
-
Update README.md (#1)
Verified signature- Update README.md (1160443d631ce574f3602d5847ea6bc503640362) Co-authored-by: Amael Delaunoy <amael-apple@users.noreply.huggingface.co>92cf19f -
Depth Pro checkpoint
Verified signaturec9e4772 -
initial commit
Verified signatureb14940d