Skip to main content

OrientedDet

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 detections on diagonally parked buses in an aerial parking lot

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

Features

  • 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 odet CLI (AMP, checkpointing, TensorBoard)
  • Export & Hub — ONNX export (odet export); pretrained weights via Hugging Face Hub

Installation

From PyPI:

pip install oriented-det

From 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.

Quick start

# 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 train

Demo 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.

Learn more

Audience Resource
Users Hosted docs · tutorial/ · 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)

Repository map

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/ 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.

Citation

If you use OrientedDet in research or production, cite this repository via CITATION.cff (DOI: 10.5281/zenodo.23273307).

License

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.

Acknowledgements

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.

Consulting

For consulting, training workshops, or custom development, see DL4EO.

Metadata

Release files for oriented-det 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oriented-det 0.4.3
File Size Uploaded Provenance Actions
oriented_det-0.4.3.tar.gz 1.0 MB With provenance Details for oriented_det-0.4.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for oriented-det 0.4.3
File Interpreter ABI Platform Actions
oriented_det-0.4.3-py3-none-any.whl Python 3 none any Details for oriented_det-0.4.3-py3-none-any.whl

Total release size: 2.0 MB

Release files / oriented_det-0.4.3.tar.gz

Download URL oriented_det-0.4.3.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
d6e6a6d276592c03897a4b0cf509d27464be7f4188a7ea1a5d1130bb848c721f
BLAKE2b-256 checksum
How to use checksums
4dafd3e4defa756bc366b322d27117cef650ffeef9c959732cd6c43e4f94fc13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / oriented_det-0.4.3-py3-none-any.whl

Download URL oriented_det-0.4.3-py3-none-any.whl
Size 986.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15914a39ee25ea91dce1c295433af43b62de9c36726b99c09ec0eacfa44bac9b
BLAKE2b-256 checksum
How to use checksums
31d84b91474f107e8ec179896cff7bd2fda0d7ac0f127a83805f1423e520484d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for oriented-det 0.4.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for oriented_det-0.4.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page