Intel / dpt-beit-base-384

huggingface.co
Total runs: 326
24-hour runs: 0
7-day runs: -35
30-day runs: -3.4K
Model's Last Updated: December 11 2023
depth-estimation

Introduction of dpt-beit-base-384

Model Details of dpt-beit-base-384

DPT 3.1 (BEiT backbone)

DPT (Dense Prediction Transformer) model trained on 1.4 million images for monocular depth estimation. It was introduced in the paper Vision Transformers for Dense Prediction by Ranftl et al. (2021) and first released in this repository .

Disclaimer: The team releasing DPT did not write a model card for this model so this model card has been written by the Hugging Face team.

Model description

This DPT model uses the BEiT model as backbone and adds a neck + head on top for monocular depth estimation.

model image

How to use

Here is how to use this model for zero-shot depth estimation on an image:

from transformers import DPTImageProcessor, DPTForDepthEstimation
import torch
import numpy as np
from PIL import Image
import requests

url = "http://images.cocodataset.org/val2017/000000039769.jpg"
image = Image.open(requests.get(url, stream=True).raw)

processor = DPTImageProcessor.from_pretrained("Intel/dpt-beit-base-384")
model = DPTForDepthEstimation.from_pretrained("Intel/dpt-beit-base-384")

# prepare image for the model
inputs = processor(images=image, return_tensors="pt")

with torch.no_grad():
    outputs = model(**inputs)
    predicted_depth = outputs.predicted_depth

# interpolate to original size
prediction = torch.nn.functional.interpolate(
    predicted_depth.unsqueeze(1),
    size=image.size[::-1],
    mode="bicubic",
    align_corners=False,
)

# visualize the prediction
output = prediction.squeeze().cpu().numpy()
formatted = (output * 255 / np.max(output)).astype("uint8")
depth = Image.fromarray(formatted)

or one can use the pipeline API:

from transformers import pipeline

pipe = pipeline(task="depth-estimation", model="Intel/dpt-beit-base-384")
result = pipe("http://images.cocodataset.org/val2017/000000039769.jpg")
result["depth"]

Runs of Intel dpt-beit-base-384 on huggingface.co

326
Total runs
0
24-hour runs
-6
3-day runs
-35
7-day runs
-3.4K
30-day runs

More Information About dpt-beit-base-384 huggingface.co Model

More dpt-beit-base-384 license Visit here:

https://choosealicense.com/licenses/mit

dpt-beit-base-384 huggingface.co

dpt-beit-base-384 huggingface.co is an AI model on huggingface.co that provides dpt-beit-base-384's model effect (), which can be used instantly with this Intel dpt-beit-base-384 model. huggingface.co supports a free trial of the dpt-beit-base-384 model, and also provides paid use of the dpt-beit-base-384. Support call dpt-beit-base-384 model through api, including Node.js, Python, http.

dpt-beit-base-384 huggingface.co Url

https://huggingface.co/Intel/dpt-beit-base-384

Intel dpt-beit-base-384 online free

dpt-beit-base-384 huggingface.co is an online trial and call api platform, which integrates dpt-beit-base-384's modeling effects, including api services, and provides a free online trial of dpt-beit-base-384, you can try dpt-beit-base-384 online for free by clicking the link below.

Intel dpt-beit-base-384 online free url in huggingface.co:

https://huggingface.co/Intel/dpt-beit-base-384

dpt-beit-base-384 install

dpt-beit-base-384 is an open source model from GitHub that offers a free installation service, and any user can find dpt-beit-base-384 on GitHub to install. At the same time, huggingface.co provides the effect of dpt-beit-base-384 install, users can directly use dpt-beit-base-384 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

dpt-beit-base-384 install url in huggingface.co:

https://huggingface.co/Intel/dpt-beit-base-384

Url of dpt-beit-base-384

dpt-beit-base-384 huggingface.co Url

Provider of dpt-beit-base-384 huggingface.co

Intel
ORGANIZATIONS

Other API from Intel

huggingface.co

Total runs: 782.2K
Run Growth: 379.0K
Growth Rate: 48.45%
Updated:February 09 2024
huggingface.co

Total runs: 41.5K
Run Growth: -5.8K
Growth Rate: -13.92%
Updated:February 24 2024
huggingface.co

Total runs: 27.4K
Run Growth: 3.5K
Growth Rate: 12.61%
Updated:March 29 2024
huggingface.co

Total runs: 15.6K
Run Growth: 4.7K
Growth Rate: 30.20%
Updated:February 24 2025
huggingface.co

Total runs: 1.9K
Run Growth: -2.0K
Growth Rate: -105.94%
Updated:March 26 2024
huggingface.co

Total runs: 1.5K
Run Growth: 284
Growth Rate: 18.92%
Updated:May 20 2024
huggingface.co

Total runs: 835
Run Growth: 163
Growth Rate: 19.52%
Updated:June 12 2024