Depth Estimation

DepthPro2-S

Hugging Face: DepthPro2-S GitHub: DepthPro2-S

Overview

Estimate depth from a single photo on a Qualcomm NPU. This package adapts DepthPro2-S into fixed-shape QNN graphs with FP16 weights and activations.

Demo recording

On-device walkthrough on QCS8550 (10 seconds). Runs monocular depth estimation across all five built-in sample photos (Cattle, Street, Cactus, Goat, and Bicycle).

The model files use the AIDEM format and are loaded by the matching SDK in the Demo repository. The device needs Aidlux LMS (sudo lms check returns true); no separate QNN installation is required.

Download

First follow Install. Then, from the Demo root, download the shared files and one device target. The commands below use QCS8550; for another device, use the folder in the table below.

For a private model, run hf auth login first.

hf download APLUX-Pandora/DepthPro2-S --local-dir models --exclude "targets/*" --exclude "media/*" --exclude README.md --exclude .gitattributes
hf download APLUX-Pandora/DepthPro2-S --local-dir models --include "targets/qcs8550_qnn248/*"
SoC Target folder
QCS8550 qcs8550_qnn248
QCS9075 qcs9075_qnn248
QCS8625 qcs8625_qnn248
QCS8275 qcs8275_qnn248

Demo and Python Usage

Complete Install and the download above, then follow Run the Web Demo. For Python, run with the bundled sample photo from the Demo root in the same environment (or pass your own photo path):

from pandora_depthpro2_s import DepthPro2

with DepthPro2.from_pretrained("models") as model:
    result = model.infer("examples/assets/cattle.jpg")
    print(result["inverse_depth"].shape, result["focallength_px"])

Python API ยท Examples

License

Apple Machine Learning Research Model is licensed under the Apple Machine Learning Research Model License Agreement. The original model and these derivatives are limited to non-commercial scientific research and academic development. See NOTICE and the license agreement.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for APLUX-Pandora/DepthPro2-S

Finetuned
(3)
this model