summaryrefslogtreecommitdiff
path: root/candle-examples/examples/depth_anything_v2/README.md
blob: 163b398b89831f016606936998e2e72d31decdd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# candle-dinov2

[Depth Anything V2] is a model for Monocular Depth Estimation (MDE, i.e. just using a single image) which
builds on the [DINOv2](https://github.com/facebookresearch/dinov2) vision transformer.

This example first instantiates the DINOv2 model and then proceeds to create DepthAnythingV2 and run it.

## Running an example with color map and CUDA

```bash
cargo run --features cuda,depth_anything_v2 --package candle-examples --example depth_anything_v2 -- --color-map --image candle-examples/examples/yolo-v8/assets/bike.jpg 
```