OrientedDet (oriented-det) is an open-source PyTorch framework for oriented and rotated object detection in aerial and satellite images. It focuses on clean geometry, reliable operators, simple datasets, and practical baseline models—without the complexity of large detection frameworks.
Oriented R-CNN on the bundled demo/demo.jpg tile — rotated boxes follow vehicle heading instead of swallowing neighbours in axis-aligned rectangles.
Docs: dl4eo.github.io/oriented-det · Blog: deeplearning.earth · Company: dl4eo.com
- Geometry — Rotated boxes (rbox), quadrilaterals (qbox), polygon conversions, angle conventions (le90), transforms, and visualization helpers
- IoU & NMS — Rotated IoU and oriented NMS (CPU; optional GPU kernels when available)
- Datasets — DOTA, HRSC2016, FAIR1M, SSDD, and HRSID loaders; tiling; oriented mAP
- Models — Oriented R-CNN, Rotated Faster R-CNN, RetinaNet, FCOS, RTMDet, and YOLO-OBB with ResNet-FPN / CSPNeXt / C2f backbones
- Training — JSON configs and the
odetCLI (AMP, checkpointing, TensorBoard) - Export & Hub — ONNX export (
odet export); pretrained weights via Hugging Face Hub
From PyPI:
pip install oriented-detFrom source (Linux with CUDA 12.1):
uv venv --python 3.12 && source .venv/bin/activate
uv pip install "torch>=2.4.0" "torchvision>=0.19.0" --index-url https://download.pytorch.org/whl/cu121
uv pip install -r requirements.txt && uv pip install -e .CUDA extras, macOS / CPU, optional dependencies ([dev], [export], [viewer], …), and path placeholders: Installation.
# Inference on the bundled demo image (downloads a Hub checkpoint)
odet image-demo demo/demo.jpg hf://oriented_rcnn_dota_le90_1x --out-file demo/out/result.jpg
# Train on DOTA tiles (edit dataset paths in the config first)
odet train --config configs/oriented_rcnn/dota_le90_1x.json
# Or: make trainDemo details: demo/README.md (make demo runs all top-level images under demo/ with the latest local runs/ checkpoint). Starter recipe: configs/oriented_rcnn/dota_le90_1x.json. Walkthrough: Getting Started. Config fields: Configuration. Training, tiling, and eval commands: tools/README.md.
| Audience | Resource |
|---|---|
| Users | Hosted docs · tutorial/ · notebooks/ · demo/ |
| Model zoo | configs/ · pretrained/ · eval reports |
| Integrators | export/ · deploy/ · CLI |
| Contributors | Contributing · Roadmap · tests/ |
| Write-ups | DeepLearning.Earth (curated index in docs/README.md) |
| Path | Role |
|---|---|
oriented_det/ |
Library (geometry, models, datasets, training, ops) |
oriented_det/cli/ |
odet entry point |
tools/ |
CLI implementations (odet / make) |
configs/ |
Experiment JSON and model zoo |
docs/ |
MkDocs user guide and API reference |
demo/, tutorial/, notebooks/ |
Examples and learning material |
export/, deploy/ |
ONNX export and Docker deploy |
pretrained/, tests/ |
Hub checkpoints; test suite |
Runs land in runs/<model_type>/<timestamp>/ (created at train time; not shipped). Prefer odet or make after install—both call the same tooling.
If you use OrientedDet in research or production, cite this repository via CITATION.cff (DOI: 10.5281/zenodo.23273307).
Apache-2.0 — Copyright © Jeff Faudi and DL4EO. See LICENSE.
The framework license does not grant rights to the DOTA or HRSC datasets. See Apache 2.0 vs DOTA / HRSC dataset terms.
Design and APIs are informed by MMRotate, MMDetection, Detectron2, and related work in oriented object detection; pretrained checkpoints in pretrained/ are OrientedDet exports from this codebase, not MMRotate zoo bundles.
For consulting, training workshops, or custom development, see DL4EO.
