File size: 1,223 Bytes
648a409
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---

license: mit
library_name: libreyolo
tags:
  - depth-estimation
  - monocular-depth
  - midas
---


# LibreMiDaSl-depth

MiDaS ViT-L/16 (DPT-Large, 384 px) monocular depth model, repackaged in LibreYOLO checkpoint format.

## Source

Derived from [isl-org/MiDaS](https://github.com/isl-org/MiDaS), release asset
`dpt_large_384.pt`.
Copyright (c) Intel ISL. Licensed under the MIT License.

## Modifications

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

## A note on the training data

MiDaS was trained on a mixture of twelve datasets, several of which carry
non-commercial terms of their own. LibreYOLO redistributes these weights under
the MIT licence its publisher applied to them. If your use is commercial,
satisfy yourself about the training-data terms before relying on it.

## Usage

```python

from libreyolo import LibreYOLO



model = LibreYOLO("LibreMiDaSl-depth.pt")

depth = model.predict("image.jpg")[0].depth_map

```

## License

MIT License. See the [`LICENSE`](./LICENSE) and [`NOTICE`](./NOTICE) files in
this repository.