RiO-DETRv2
RiO-DETRv2 is a real-time oriented-box DETR. It predicts four box sides as distributions in the box's own frame, refines the angle coarse to fine and scores each box with an angle-aware quality. LibreYOLO ports it inference-only, in five sizes, with DOTA-v1.0 and DIOR-R checkpoints.
- Tác vụ
- oriented boxes
- Cài đặt
pip install libreyolo- Bậc hỗ trợ
- Chỉ suy luận, từ v1.8.0. Chỉ dự đoán, kiểm định và xuất. Không áp dụng các tính năng huấn luyện.
- Giấy phép
- Mã nguồn Apache-2.0, trọng số Apache-2.0. Sử dụng thương mại
Install
RiO-DETRv2 needs no optional extra.
pip install libreyoloPredict
Weights download from the LibreYOLO Hugging Face mirrors on first use. The models are trained on aerial imagery, so use an overhead photo.
from libreyolo import LibreYOLO model = LibreYOLO("LibreRiODETRv2s-obb.pt") # DOTA-v1.0, 15 classesresult = model("aerial.jpg", save=True) print(result.obb.xywhr) # (N, 5) centre, size and angleprint(result.obb.conf, result.obb.cls)from libreyolo import LibreYOLO model = LibreYOLO("LibreRiODETRv2s-obb-diorr.pt") # DIOR-R, 20 classesresult = model("aerial.jpg")libreyolo predict model=LibreRiODETRv2s-obb.pt source=aerial.jpg save=Trueresult.obb holds the rotated boxes: xywhr (centre, width, height and
angle), conf and cls, with class names from the checkpoint. See the
oriented detection task page for the
payload and plotting.
Variants
Five sizes, n, s, m, l and x, each with two checkpoints:
| Checkpoint | Dataset | Classes | Canvas |
|---|---|---|---|
LibreRiODETRv2<size>-obb.pt | DOTA-v1.0 | 15 | 1024 px |
LibreRiODETRv2<size>-obb-diorr.pt | DIOR-R | 20 | 800 px |
The native canvas is read from the checkpoint. Raw outputs and decoded rotated boxes match the upstream Apache-2.0 release exactly (max absolute difference 0) for all ten checkpoints on CPU.
RiO-DETRv2 is inference-only. train() raises: the upstream recipe (DINOv3
feature distillation, OBB Hungarian matching, boundary and angle
distribution losses) is not ported. For trainable oriented-box detection use
GTR or YOLO-NAS.
Export
| Tác vụ | ONNX | TorchScript | ExecuTorch | TensorRT | OpenVINO | Paddle | MNN | RKNN | Axelera | ncnn | TFLite | CoreML | Core AI |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Oriented boxes | Oriented boxes to ONNX: được hỗ trợ | Oriented boxes to TorchScript: được hỗ trợ | Oriented boxes to ExecuTorch: được hỗ trợ | Oriented boxes to TensorRT: được hỗ trợ | Oriented boxes to OpenVINO: được hỗ trợ | Oriented boxes to Paddle: không được hỗ trợ | Oriented boxes to MNN: không được hỗ trợ | Oriented boxes to RKNN: không được hỗ trợ | Oriented boxes to Axelera: không được hỗ trợ | Oriented boxes to ncnn: không được hỗ trợ | Oriented boxes to TFLite: không được hỗ trợ | Oriented boxes to CoreML: không được hỗ trợ | Oriented boxes to Core AI: không được hỗ trợ |
ONNX and TorchScript exports round-trip: the exported file loads back through
LibreYOLO() and returns the same Results.
from libreyolo import LibreYOLO model = LibreYOLO("LibreRiODETRv2s-obb.pt")model.export(format="onnx")model.export(format="torchscript")libreyolo export model=LibreRiODETRv2s-obb.pt format=onnxCheckpoints
| Tệp | Giấy phép trọng số |
|---|---|
| Oriented boxes | |
| LibreRiODETRv2l-obb.pt | apache-2.0 |
| LibreRiODETRv2l-obb-diorr.pt | apache-2.0 |
| LibreRiODETRv2m-obb.pt | apache-2.0 |
| LibreRiODETRv2m-obb-diorr.pt | apache-2.0 |
| LibreRiODETRv2n-obb.pt | apache-2.0 |
| LibreRiODETRv2n-obb-diorr.pt | apache-2.0 |
| LibreRiODETRv2s-obb.pt | apache-2.0 |
| LibreRiODETRv2s-obb-diorr.pt | apache-2.0 |
| LibreRiODETRv2x-obb.pt | apache-2.0 |
| LibreRiODETRv2x-obb-diorr.pt | apache-2.0 |
Mọi tệp ở trên hiện đều có trong tổ chức LibreYOLO và được tải xuống trong lần sử dụng đầu tiên.
Licensing
Hãy kiểm tra giấy phép trong repo Hugging Face của trọng số cụ thể mà bạn tải xuống. Mỗi checkpoint trong tổ chức LibreYOLO đều có giấy phép riêng và giấy phép có thể khác nhau trong cùng một họ. Repo đó là nguồn có thẩm quyền; phần tóm tắt dưới đây mô tả các điều khoản áp dụng khi trang này được kiểm chứng lần gần nhất.
Đây là phần mô tả các giấy phép liên quan, không phải tư vấn pháp lý. Nếu câu trả lời có ý nghĩa về mặt thương mại, hãy tự đọc các giấy phép và tham khảo cố vấn của riêng bạn.
- Công trình gốc
- RiO-DETRv2, RiO-DETRv2 authors (RicePasteM)
- Giấy phép thượng nguồn
- Apache-2.0
- Nguồn thượng nguồn
- github.com/RicePasteM/RiO-DETRv2
- Mã nguồn LibreYOLO
- MIT
- Trọng số
- Apache-2.0, được phát hành lại tại huggingface.co/LibreYOLO
- Diễn giải
- Apache-2.0 is a permissive license, so the RiO-DETRv2 code and checkpoints can be used in commercial and closed-source products. Redistributing them means keeping the license text and notices, and the license grants a patent license. About 33 minutes after its initial commit (ab8b22df5d800a927774c8c67e77fd29c0fe6967), upstream changed its LICENSE file to AGPL-3.0; later commits change only the README and LICENSE, not the code. LibreYOLO's port relies on the Apache-2.0 grant of that initial release, uses nothing from later commits, and preserves the Apache-2.0 snapshot at LibreYOLO/RiO-DETRv2 (tag apache-2.0-ab8b22d). The adapted decoder keeps Apache-2.0 with its RT-DETR, D-FINE, DEIM and RT-DETRv4 copyright lines (libreyolo/models/riodetrv2/LICENSE and NOTICE); the HGNetv2 backbone, encoder and decoder blocks reuse LibreYOLO's dfine and rtdetrv2 families, and the wiring around them is LibreYOLO's MIT code. The official checkpoints (Hugging Face RicePasteM/RiO-DETRv2 at revision 5f578f57929aded1962ebf8c5584a4771461124f, tagged apache-2.0) are mirrored as LibreYOLO/LibreRiODETRv2{n,s,m,l,x}-obb (DOTA-v1.0) and -obb-diorr (DIOR-R) with the upstream LICENSE and NOTICE; conversion renames keys and drops a training-only projector, learned tensors are unchanged. The DOTA-v1.0 and DIOR-R training sets carry their own terms.
RiO-DETRv2 is by RicePasteM
(RicePasteM/RiO-DETRv2). Code and
weights are Apache-2.0, so commercial use is fine. Upstream changed its
LICENSE file to AGPL-3.0 about 33 minutes after its initial commit, with no
code changes. LibreYOLO's port uses only that initial Apache-2.0 release
(commit ab8b22d) and preserves the snapshot at LibreYOLO/RiO-DETRv2. The
official checkpoints are mirrored as LibreYOLO/LibreRiODETRv2{n,s,m,l,x}-obb
and -obb-diorr, with keys renamed and learned tensors unchanged. The
DOTA-v1.0 and DIOR-R training sets carry their own terms.
Citation
@misc{hu2026riodetrv2geometryawareuncertaintymodeling,
title={RiO-DETRv2: Geometry-Aware Uncertainty Modeling Meets Real-Time Oriented Object Detection Transformer},
author={Zhangchi Hu and Zilong He and Yifan Zhao and Xiangyu Yu and Jie Chen and Peixi Wu and Yansong Peng and Hebei Li and Xiaoyan Sun},
year={2026},
eprint={2610.29159},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2610.29159},
}Được sao chép từ khối trích dẫn của tác giả tại arxiv.org/bibtex/2610.29159.