depth-anything / Depth-Anything-V2-Small

huggingface.co
Total runs: 19.4K
24-hour runs: 116
7-day runs: -48
30-day runs: 1.2K
Model's Last Updated: July 08 2024
depth-estimation

Introduction of Depth-Anything-V2-Small

Model Details of Depth-Anything-V2-Small

Depth-Anything-V2-Small

Introduction

Depth Anything V2 is trained from 595K synthetic labeled images and 62M+ real unlabeled images, providing the most capable monocular depth estimation (MDE) model with the following features:

  • more fine-grained details than Depth Anything V1
  • more robust than Depth Anything V1 and SD-based models (e.g., Marigold, Geowizard)
  • more efficient (10x faster) and more lightweight than SD-based models
  • impressive fine-tuned performance with our pre-trained models
Installation
git clone https://huggingface.co/spaces/depth-anything/Depth-Anything-V2
cd Depth-Anything-V2
pip install -r requirements.txt
Usage

Download the model first and put it under the checkpoints directory.

import cv2
import torch

from depth_anything_v2.dpt import DepthAnythingV2

model = DepthAnythingV2(encoder='vits', features=64, out_channels=[48, 96, 192, 384])
model.load_state_dict(torch.load('checkpoints/depth_anything_v2_vits.pth', map_location='cpu'))
model.eval()

raw_img = cv2.imread('your/image/path')
depth = model.infer_image(raw_img) # HxW raw depth map
Citation

If you find this project useful, please consider citing:

@article{depth_anything_v2,
  title={Depth Anything V2},
  author={Yang, Lihe and Kang, Bingyi and Huang, Zilong and Zhao, Zhen and Xu, Xiaogang and Feng, Jiashi and Zhao, Hengshuang},
  journal={arXiv:2406.09414},
  year={2024}
}

@inproceedings{depth_anything_v1,
  title={Depth Anything: Unleashing the Power of Large-Scale Unlabeled Data}, 
  author={Yang, Lihe and Kang, Bingyi and Huang, Zilong and Xu, Xiaogang and Feng, Jiashi and Zhao, Hengshuang},
  booktitle={CVPR},
  year={2024}
}

Runs of depth-anything Depth-Anything-V2-Small on huggingface.co

19.4K
Total runs
116
24-hour runs
204
3-day runs
-48
7-day runs
1.2K
30-day runs

More Information About Depth-Anything-V2-Small huggingface.co Model

More Depth-Anything-V2-Small license Visit here:

https://choosealicense.com/licenses/apache-2.0

Depth-Anything-V2-Small huggingface.co

Depth-Anything-V2-Small huggingface.co is an AI model on huggingface.co that provides Depth-Anything-V2-Small's model effect (), which can be used instantly with this depth-anything Depth-Anything-V2-Small model. huggingface.co supports a free trial of the Depth-Anything-V2-Small model, and also provides paid use of the Depth-Anything-V2-Small. Support call Depth-Anything-V2-Small model through api, including Node.js, Python, http.

Depth-Anything-V2-Small huggingface.co Url

https://huggingface.co/depth-anything/Depth-Anything-V2-Small

depth-anything Depth-Anything-V2-Small online free

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

depth-anything Depth-Anything-V2-Small online free url in huggingface.co:

https://huggingface.co/depth-anything/Depth-Anything-V2-Small

Depth-Anything-V2-Small install

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

Depth-Anything-V2-Small install url in huggingface.co:

https://huggingface.co/depth-anything/Depth-Anything-V2-Small

Url of Depth-Anything-V2-Small

Depth-Anything-V2-Small huggingface.co Url

Provider of Depth-Anything-V2-Small huggingface.co

depth-anything
ORGANIZATIONS

Other API from depth-anything