<!-- # hard line break macro for HTML -->

<a id="model-zoo-depth-anything-v2-base-torch"></a>

# depth-anything-v2-base-torch

Balanced Depth Anything V2 model for general-purpose monocular depth estimation.

**Details**

- Model name: `depth-anything-v2-base-torch`
- Model source: [https://huggingface.co/depth-anything/Depth-Anything-V2-Base-hf](https://huggingface.co/depth-anything/Depth-Anything-V2-Base-hf)
- Model author: Lihe Yang, et al.
- Model license: Apache 2.0
- Model size: 372.31 MB
- Exposes embeddings? no
- Tags: `depth, 3d, torch, transformers`

**Requirements**

- Packages: `torch, torchvision, transformers`
- CPU support
  - yes
- GPU support
  - yes

**Example usage**

```python
import fiftyone as fo
import fiftyone.zoo as foz

dataset = foz.load_zoo_dataset(
    "coco-2017",
    split="validation",
    dataset_name=fo.get_default_dataset_name(),
    max_samples=50,
    shuffle=True,
)

model = foz.load_zoo_model("depth-anything-v2-base-torch")

dataset.apply_model(model, label_field="predictions")

session = fo.launch_app(dataset)
```
