HubCloneHubClone
Tasks

Depth Estimation

Depth estimation predicts how far each pixel of an image is from the camera.

Inputs

Input
A photo of a red fox in fresh snow

Depth Estimation Model

Output

Output
Depth map — near is bright, far is dark

About Depth Estimation

Depth estimation predicts how far each pixel of an image is from the camera. Browse depth estimation models on HubClone to compare checkpoints, or open a Space to try one in the browser.

Use Cases

Augmented reality

Place virtual objects behind real ones.

Robotics

Estimate distances from a single camera.

Inference

The Transformers pipeline API runs depth estimation models in a few lines. Replace <model-id> with any model listed on this page.

from transformers import pipeline

pipe = pipeline("depth-estimation", model="<model-id>")
pipe("fox.png")

Useful Resources

Want to dig deeper into the topic? Great! Here is a hand-picked list of resources we found helpful.

Documentation

  • Depth Estimation task guide
  • Pipelines reference

Notebooks

  • Fine-tuning a depth estimation model