File size: 1,071 Bytes
9b039ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---

license: mit
library_name: libreyolo
tags:
  - image-to-image
  - surface-normals
  - moge
---


# LibreMoGe2l-normal

MoGe-2 ViT-L/14 surface-normal estimator, repackaged in LibreYOLO checkpoint format.

## Source

Derived from [Ruicheng/moge-2-vitl-normal](https://huggingface.co/Ruicheng/moge-2-vitl-normal)
at revision `b135031bae30b5ac2ae141a0e68717795ce38340`, the exact commit LibreYOLO pins.
Copyright (c) Microsoft Corporation. Licensed under the MIT License.

The DINOv2 encoder MoGe-2 builds on is separately licensed Apache-2.0 by
Meta AI.

## Modifications

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

## Usage

```python

from libreyolo import LibreYOLO



model = LibreYOLO("LibreMoGe2l-normal.pt")

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

normals = result.normals

```

## License

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