File size: 1,709 Bytes
f73fff2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---

license: cc-by-nc-4.0
library_name: libreyolo
tags:
  - depth-estimation
  - depth-anything
---


# LibreDepthAnythingV2b-depth

Depth Anything V2 ViT-B encoder (97M params) + DPT head, repackaged for LibreYOLO's 'depth' task.

> **Non-commercial use only.** These weights are CC BY-NC 4.0. The Small encoder
> ([LibreDepthAnythingV2s-depth](https://huggingface.co/LibreYOLO/LibreDepthAnythingV2s-depth))
> is Apache-2.0 and has no commercial restriction.

## Source

Derived from [DepthAnything/Depth-Anything-V2](https://github.com/DepthAnything/Depth-Anything-V2)
at commit `03876f8651c73a60fe4c2c48294e09fcb6838fcf`.
Copyright (c) 2024 Depth Anything V2 authors (TikTok / ByteDance).
Licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).

The ViT-B encoder is a DINOv2 backbone from [facebookresearch/dinov2](https://github.com/facebookresearch/dinov2).
Copyright (c) Meta Platforms, Inc. and affiliates. Licensed under the Apache License, Version 2.0.

## Modifications

State-dict key remapping only. Learned parameters are unchanged.
See `weights/convert_depth_anything_v2_weights.py` in the
[LibreYOLO source repository](https://github.com/LibreYOLO/libreyolo).

## Usage

```python

from libreyolo import LibreYOLO



model = LibreYOLO("LibreYOLO/LibreDepthAnythingV2b-depth")

results = model.predict("image.jpg")

depth_map = results[0].depth_map  # DepthMap(shape=(H, W), higher = closer)

```

## License

Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0).
See the [`LICENSE`](./LICENSE) and [`NOTICE`](./NOTICE) files in this repository.
**Commercial use is not permitted.**