Downloads · 30 days
0
depth-anything/prompt-depth-anything-vitl
prompt-depth-anything-vitl is a depth estimation model from depth-anything. Use it for the depth estimation task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Prompt Depth Anything is a high-resolution and accurate metric depth estimation method, with the following highlights: - using prompting to unleash the power of depth foundation models, inspired by success of promptin…
Downloads · 30 days
0
Access
Public
Updated Jan 26, 2025
Repo size
1.4 GB
Likes
3
Public
Click a slice to open those files.
.ckpt1.4 GB · 100%
From the Hugging Face model README
Prompt Depth Anything is a high-resolution and accurate metric depth estimation method, with the following highlights:
git clone https://github.com/DepthAnything/PromptDA.git
cd PromptDA
pip install -r requirements.txt
pip install -e .
from promptda.promptda import PromptDA
from promptda.utils.io_wrapper import load_image, load_depth, save_depth
DEVICE = 'cuda'
image_path = "assets/example_images/image.jpg"
prompt_depth_path = "assets/example_images/arkit_depth.png"
image = load_image(image_path).to(DEVICE)
prompt_depth = load_depth(prompt_depth_path).to(DEVICE) # 192x256, ARKit LiDAR depth in meters
model = PromptDA.from_pretrained("depth-anything/prompt-depth-anything-vitl").to(DEVICE).eval()
depth = model.predict(image, prompt_depth) # HxW, depth in meters
save_depth(depth, prompt_depth=prompt_depth, image=image)
If you find this project useful, please consider citing:
@inproceedings{lin2024promptda,
title={Prompting Depth Anything for 4K Resolution Accurate Metric Depth Estimation},
author={Lin, Haotong and Peng, Sida and Chen, Jingxiao and Peng, Songyou and Sun, Jiaming and Liu, Minghuan and Bao, Hujun and Feng, Jiashi and Zhou, Xiaowei and Kang, Bingyi},
journal={arXiv},
year={2024}
}