Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

aarondevstack
/
DepthPro-512x512-coreml

Depth Estimation
Core ML
Depth Pro
visionos
apple-silicon
amlr
computer-vision
512x512
ane-optimized
Model card Files Files and versions
xet
Community

Instructions to use aarondevstack/DepthPro-512x512-coreml with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Depth Pro

    How to use aarondevstack/DepthPro-512x512-coreml with Depth Pro:

    # Download checkpoint
    pip install huggingface-hub
    huggingface-cli download --local-dir checkpoints aarondevstack/DepthPro-512x512-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
DepthPro-512x512-coreml / DepthPro_encoder.mlpackage
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
aarondevstack
feat: initial upload of 512x512 DepthPro CoreML models
14ff16b 8 days ago
  • Data
    feat: initial upload of 512x512 DepthPro CoreML models 8 days ago
  • Manifest.json
    617 Bytes
    feat: initial upload of 512x512 DepthPro CoreML models 8 days ago