Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.25.0
metadata
title: Depth Estimation Demo
emoji: π
colorFrom: gray
colorTo: gray
sdk: gradio
sdk_version: 6.19.0
python_version: '3.13'
app_file: app.py
pinned: false
license: mit
short_description: Building an Object Depth Comparison Pipeline on Hugging Face
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.