odet CLI

July 28, 2026 · View on GitHub

Install the package (uv pip install -e . or pip install oriented-det), then run subcommands via the odet entry point (see pyproject.toml).

CommandRole
trainConfig-based training
train-multi-gputorchrun wrapper around oriented_det.cli.train
preds / metricsValidation inference and offline metrics (tools/save_predictions.py)
lr-finder, stats, tile-dota, image-demo, viewerData and training utilities
playground-csv, playground-to-dotaPlayground CSV / DOTA export
export-onnxONNX export (export.scripts.export_onnx)
export-tfONNX + Keras detect bundle (export.scripts.export_tf)
export-detectKeras bundle from existing ONNX (export.scripts.build_faster_rcnn_savedmodel)
export-predsVal inference via Keras bundle (export.scripts.save_predictions_tf)

TF export commands require pip install "oriented-det[export]" (or the export requirements). They call pure Python entrypoints — no Makefile. Default artifacts: ./odet_export/. See export/README.md.

Subcommands load implementations from tools/ (train, preds, tiling, …). Reusable inference, checkpoint, and collate helpers live in oriented_det/runtime/. See the main README.