File size: 2,362 Bytes
c916f8c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
license: mit
library_name: libreyolo
pipeline_tag: object-detection
tags:
  - object-detection
  - oriented-object-detection
  - gtr
  - pytorch
  - libreyolo
  - dota
datasets:
  - DOTA
---

# LibreGTRs-obb

GTR-S oriented-box weights for DOTA v1.0, converted for LibreYOLO.

GTR support is being prepared for LibreYOLO v1.6.0. Earlier PyPI releases may
not include this model family.

## Usage

With a LibreYOLO version that includes GTR OBB:

```python
from libreyolo import LibreYOLO
model = LibreYOLO("LibreGTRs-obb.pt")
result = model.predict("aerial.jpg")
result.obb.xywhr  # (cx, cy, w, h, theta) in pixels, theta in [0, pi)
```

The input is a fixed 1024 by 1024 pixel square. Images are resized to fit and
padded at the bottom and right. Class ids follow the upstream DOTA v1.0 order:
plane, baseball-diamond, bridge, ground-track-field, small-vehicle,
large-vehicle, ship, tennis-court, basketball-court, storage-tank,
soccer-ball-field, roundabout, harbor, swimming-pool, helicopter. This
checkpoint is inference-only in LibreYOLO.

## Source

[Official GTR implementation](https://github.com/Intellindust-AI-Lab/GTR/tree/782e737efe2e6437ac537fbdcee089673d3376c1),
source revision `782e737efe2e6437ac537fbdcee089673d3376c1`.

[Published checkpoint](https://huggingface.co/Phoenix8125/GTR/blob/9fc62c8c2b2c976835d0f1c1ffc544dbc0f9e29f/obb/gtrobb_s_dota.pth),
weight repository revision `9fc62c8c2b2c976835d0f1c1ffc544dbc0f9e29f`.
Copyright (c) 2026 Intellindust-AI-Lab. The source code is MIT licensed and the
publisher's weight repository explicitly declares MIT. The publisher reports
80.0 AP50 on the DOTA-v1.0 test set; LibreYOLO has not reproduced it.

## Modifications

Selected the EMA state dict and added LibreYOLO schema v1.0 metadata.
Learned parameters and state-dict keys are unchanged. Training/optimizer state
was removed. Conversion uses `weights/convert_gtr_weights.py` in the
[LibreYOLO source repository](https://github.com/LibreYOLO/libreyolo).

## Validation

Checkpoint schema, exact tensor preservation and strict loading were checked
for this artifact. On CPU its logits and rotated boxes match the pinned
upstream graph exactly, and decoded boxes match upstream's post-processor.
DOTA benchmark accuracy and GPU latency were not independently reproduced.

## License

MIT. See [LICENSE](./LICENSE) and [NOTICE](./NOTICE).