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
-
Cross-reference arXiv paper in README.md
Verified signaturec5840ac
-
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