havan2605/depth-estimation-demo
0
Object Depth Comparison Pipeline
End-to-end pipeline that detects and segments objects in an image, estimates per-pixel depth, then reports the average depth of each object and the difference between them.
Pipeline:
- SAM3 — promptable concept segmentation (text prompt → boxes + masks per class, in one step)
- Depth Anything V2 Large — monocular depth estimation
- Average depth per mask
- JSON comparison (depth per object + pairwise difference)
Note:facebook/sam3is a gated model on the Hugging Face Hub. The environment running this app needs anHF_TOKEN(or a priorhuggingface-cli login) for an account that has accepted the SAM3 license, otherwise model download will fail.
