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 huggingface-cli download --local-dir checkpoints aarondevstack/DepthPro-1024x1024-coreml
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
- Xet hash:
- 5ac5c39080befd727a64c2048a6815aeebdde9fb210e29d4fc3fa8c22645a235
- Size of remote file:
- 609 MB
- SHA256:
- f1bfe93ab1fe0b313838c697e013b6cd90fd0a42657407d4da9e0d359dc1cbad
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.