Downloads · 30 days
0
takara-ai/DepthPro-Safetensors
DepthPro-Safetensors is a depth estimation model from takara-ai. Use it for the depth estimation task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as apple-ascl.
<img src="https://takara.ai/images/logo-24/TakaraAi.svg" width="200" alt="Takara.ai Logo" /
Downloads · 30 days
0
Access
Public
Updated Feb 25, 2025
Repo size
1.9 GB
Likes
2
Public
Click a slice to open those files.
.safetensors1.9 GB · 100%
From the Hugging Face model README
From the Frontier Research Team at Takara.ai we present DepthPro-Safetensors, a memory-efficient and optimized implementation of Apple's high-precision depth estimation model.
This repository contains Apple's DepthPro depth estimation model converted to the SafeTensors format for improved memory efficiency, security, and faster loading times.
DepthPro is a state-of-the-art monocular depth estimation model developed by Apple that produces sharp and accurate metric depth maps from a single image in less than a second. This converted version preserves all the capabilities of the original model while providing the benefits of the SafeTensors format.
Details calculated with TensorKIKO
from transformers import AutoModelForDepthEstimation, AutoImageProcessor
import torch
from PIL import Image
# Load model and processor
model = AutoModelForDepthEstimation.from_pretrained("takara-ai/DepthPro-Safetensors")
processor = AutoImageProcessor.from_pretrained("takara-ai/DepthPro-Safetensors")
# Prepare image
image = Image.open("your_image.jpg")
inputs = processor(images=image, return_tensors="pt")
# Inference
with torch.no_grad():
outputs = model(**inputs)
predicted_depth = outputs.predicted_depth
# Post-process for visualization
depth_map = processor.post_process_depth_estimation(outputs, target_size=image.size[::-1])
@article{Bochkovskii2024:arxiv,
author = {Aleksei Bochkovskii and Ama\"{e}l Delaunoy and Hugo Germain and Marcel Santos and
Yichao Zhou and Stephan R. Richter and Vladlen Koltun},
title = {Depth Pro: Sharp Monocular Metric Depth in Less Than a Second},
journal = {arXiv},
year = {2024},
}
For research inquiries and press, please reach out to [email protected]
人類を変革する