You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dfb6614
Browse filesBrowse the repository at this point in the historyBrowse files
Publish new DOTA 1× weights to the Hub (using Task1 metrics) and clarify train-val score threshold. Bump PyTorch version floor so we do not need to pin NumPy<2
- Modified `Makefile` to clarify evaluation commands and dataset handling for DOTA.
- Upgraded dependencies in `pyproject.toml` for `torch`, `torchvision`, and `numpy` to enhance compatibility and performance.
- Revised `README.md` to reflect updated installation instructions and clarify evaluation metrics for DOTA and HRSC2016 datasets.
- Enhanced `requirements.txt` to align with updated dependency versions.
- Improved configuration schema in `config.schema.json` to better define evaluation thresholds and metrics.
- Updated dataset documentation to clarify training and evaluation splits for DOTA and HRSC2016.
| Val predictions |`odet preds --experiment-dir runs/oriented_rcnn/<timestamp>` or `make preds`|
121
-
| Offline mAP |`make eval-val` or `make preds` then `make metrics`|
121
+
| Offline mAP |`make eval-val` or `make preds` then `make metrics`. DOTA: leaky val tiles (real test is Task 1). HRSC/FAIR1M: held-out test/val.|
122
122
123
123
DOTA configs: per-model `dota_le90_1x.json` under [configs/](configs/) (3× where published; Faster R-CNN and FCOS DOTA are 1×). Run `odet --help` for all subcommands. Makefile shortcuts and script-level options: [tools/README.md](tools/README.md). Config reference: [docs/user-guide/configuration.md](docs/user-guide/configuration.md), [configs/config.schema.json](configs/config.schema.json), [configs/README.md](configs/README.md).
124
124
125
125
## Pretrained weights and evaluation
126
126
127
-
- Place exported best checkpoints under **`pretrained/`** or use Hub slugs (`odet pretrained download oriented_rcnn_dota_le90_1x`, `oriented_rcnn_dota_le90_3x`, `rotated_faster_rcnn_dota_le90_1x`, `rotated_faster_rcnn_dota_le90_3x`, `rotated_fcos_dota_le90_1x`, or `oriented_rcnn_hrsc2016_le90_3x` / `rotated_faster_rcnn_hrsc2016_le90_3x` / `rotated_fcos_hrsc2016_le90_3x`). See [pretrained/README.md](pretrained/README.md) and [configs/README.md](configs/README.md#dota-pretrained-models-model-zoo).
127
+
- Place exported best checkpoints under **`pretrained/`** or use Hub slugs (`odet pretrained download oriented_rcnn_dota_le90_3x`, `rotated_faster_rcnn_dota_le90_1x`, `rotated_faster_rcnn_dota_le90_3x`, `rotated_fcos_dota_le90_1x`, or `oriented_rcnn_hrsc2016_le90_3x` / `rotated_faster_rcnn_hrsc2016_le90_3x` / `rotated_fcos_hrsc2016_le90_3x`). See [pretrained/README.md](pretrained/README.md) and [configs/README.md](configs/README.md#dota-pretrained-models-model-zoo).
128
128
-**Tiled validation:** after training, run `make preds` then `make metrics`. Published mAP reports: [`docs/eval-reports/`](docs/eval-reports/) (git). Raw detections for the viewer: gitignored [`predictions/`](predictions/).
Copy file name to clipboardExpand all lines: configs/README.md
+25-18Lines changed: 25 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,43 +6,50 @@ Training and evaluation are driven by **JSON config files** with MMRotate-style
6
6
7
7
OrientedDet publishes **DOTA le90 pretrain** checkpoints on Hugging Face Hub. See [pretrained/README.md](../pretrained/README.md) and per-model READMEs below.
8
8
9
-
**Split protocol (important):**
9
+
**Split protocol (`make eval-val` is not always held-out):**
10
10
11
-
-**Training: train+val** — `train_tiles_dirs` unions `train` and `val` tile roots (DOTA benchmark pretrain, same idea as MMRotate).
12
-
-**Evaluation: val** — mAP is on the **val** tile set only.
13
-
- This is **not** a fine-tune train/val holdout: val tiles are included in training.
11
+
| Dataset | Train |`make eval-val`| Held-out test |
|**DOTA v1.0**| train **+ val** tiles (`train_tiles_dirs`; MMRotate pretrain) |**Leaky** — val tiles are also in train |**Official Task 1** (`make dota-submit`; labels not public) |
14
+
|**HRSC2016**| ImageSets **trainval**| ImageSets **test** (453 images) | Same as eval-val — test is **not** in train |
15
+
|**FAIR1M**| official **train** tiles only | official **val** tiles | Gaofen test labels are not public; val is **not** in train |
14
16
15
-
**mAP in README tables** for Faster R-CNN, FCOS, and Oriented R-CNN 1× DOTA is **official Task 1** (hidden test). Oriented R-CNN 3× / RetinaNet DOTA still quote **`make eval-val`** mAP50 (7,669 val tiles, `filter_empty_gt=false`, rotated IoU ≥ 0.50). Training-time periodic mAP may be higher (non-empty tiles only). Val tiles are in the train union.
17
+
Do **not** call HRSC or FAIR1M `make eval-val` leaky. That word is DOTA-only. Full table: [Data guide — Train / eval splits](../docs/user-guide/data.md#train--eval-splits).
18
+
19
+
**mAP in README tables** for Faster R-CNN, FCOS, Oriented R-CNN 1×, and **RetinaNet 1×** DOTA is **official Task 1** (the real hidden test). FCOS 3× is also Task 1 (**72.91%**; leaky eval-val 82.32%). Oriented R-CNN 3× / RetinaNet 3× still quote leaky **`make eval-val`** mAP50 (7,669 val tiles, `filter_empty_gt=false`, rotated IoU ≥ 0.50) until those 3× Task 1 scores land. Training-time periodic mAP may be higher (non-empty tiles only).
16
20
17
21
| Model | Config | Hub slug | mAP50 |
18
22
|-------|--------|----------|----------------|
19
23
| Oriented R-CNN 1× |[oriented_rcnn/dota_le90_1x.json](oriented_rcnn/dota_le90_1x.json)|`oriented_rcnn_dota_le90_1x`|**76.73%** official Task 1 |
**Training: official train tiles only.****Evaluation: official val tiles** — **held-out**, not in training (unlike DOTA). Tiled official val, not Gaofen hidden test (labels not public). Mid-30s mAP50 is expected — FAIR1M is 37 fine-grained classes, not DOTA’s 15.
See [Data guide — FAIR1M](../docs/user-guide/data.md#fair1m).
52
+
See [Data guide — FAIR1M](../docs/user-guide/data.md#fair1m) (local 1× story, literature band, class-confusion diagnosis).
46
53
47
54
Download: `odet pretrained download <slug>` or `"load_from_checkpoint": "hf://<slug>"`. Published eval-val reports: [`docs/eval-reports/`](../docs/eval-reports/) (markdown + analysis JSON; `predictions.json` stays in gitignored [`predictions/`](../predictions/) for the viewer).
48
55
@@ -102,8 +109,8 @@ All options, types, and defaults: **[config.schema.json](config.schema.json)** (
|`training`|**lr_scheduler_type** first, then lr_scheduler_*, lr_warmup_steps, lr_scaling_*, use_lr_param_groups, lr_mult_*, then num_epochs, learning_rate, momentum, weight_decay, use_amp, gradient_accumulation_steps, max_grad_norm, loss_weights. See [Training — Learning rate scheduling](../docs/user-guide/training.md#learning-rate-scheduling) and [_base_/schedules/README.md](_base_/schedules/README.md). |
105
-
|`evaluation`|score_threshold (train val), **`preds_score_threshold`** for **`odet preds` / `make eval-val`** (null → **0.05**), iou_threshold, compute_map_*; **`final_nms_iou_threshold`** for eval-val NMS only (DOTA+HRSC: **0.1**, MMRotate test parity) |
106
-
|`production`| Optional overrides: **train val / deploy score** — `score_threshold` overrides `evaluation.score_threshold` when set (`odet preds` ignores it). DOTA 1× recipes set this to eval-val global F1 − **0.05** (Oriented R-CNN **0.55**, Faster R-CNN **0.6**, RetinaNet **0.45**, FCOS **0.2**); 3× inherits those floors except Oriented R-CNN 3×, which pins **0.7**. HRSC 1× recipes do the same (Oriented R-CNN / Faster R-CNN **0.85**, FCOS **0.2**). `per_class_score_threshold` merges on top of `evaluation` (mAP IoU is `evaluation.iou_threshold` only). **Decode (deploy / `image_demo`)** — RPN/NMS/threshold fields patch the loaded model via `apply_inference_config_to_model` (DOTA+HRSC+FAIR1M: final NMS **0.1**). **`odet preds`** prefers `evaluation.final_nms_iou_threshold` when set. Not applied during `tools/train.py` (training uses `model.*`, final NMS **0.1**). **Deploy / tiling** — `overlap_pixels`, `ignore_margin_pixels`, canvas flags (see **config.schema.json**). |
112
+
|`evaluation`|**`train_val_score_threshold`** (in-train val / mAP / `best_mAP`; legacy alias `score_threshold`), **`preds_score_threshold`** for **`odet preds` / `make eval-val`** (null → **0.05**), iou_threshold, compute_map_*; **`final_nms_iou_threshold`** for eval-val NMS only (DOTA+HRSC: **0.1**, MMRotate test parity) |
113
+
| `production` | Optional **deploy / `image_demo`** overrides: `score_threshold` via `resolve_inference_score_threshold` (does **not** override train-val mAP; `odet preds` ignores it). DOTA 1× recipes set this to eval-val global F1 − **0.05** (Oriented R-CNN **0.55**, Faster R-CNN **0.6**, RetinaNet **0.35**, FCOS **0.2**); 3× inherits those floors except Oriented R-CNN 3×, which pins **0.7**. HRSC 1× recipes do the same (Oriented R-CNN / Faster R-CNN **0.85**, FCOS **0.2**). `per_class_score_threshold` merges on top of `evaluation` for preds/deploy only (`merge_per_class_score_thresholds`; mAP IoU is `evaluation.iou_threshold` only). **Decode (deploy / `image_demo`)** — RPN/NMS/threshold fields patch the loaded model via `apply_inference_config_to_model` (DOTA+HRSC+FAIR1M: final NMS **0.1**). **`odet preds`** prefers `evaluation.final_nms_iou_threshold` when set. Not applied during `tools/train.py` (training uses `model.*`, final NMS **0.1**). **Deploy / tiling** — `overlap_pixels`, `ignore_margin_pixels`, canvas flags (see **config.schema.json**). |
|`loss`| loss_type (`focal_weighted` now also scales FCOS/RetinaNet sigmoid focal per class; `background_weight` is ROI-only), class_weight_method, background_weight, focal_alpha, focal_gamma, label_smoothing, **roi_grouped_ce_*** (coarse-to-fine ROI classifier curriculum in one run) |
Copy file name to clipboardExpand all lines: configs/_base_/datasets/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
3
3
JSON fragments included via `"_base_"` in training recipes under the framework repo root.
4
4
5
-
-**`dota_le90.json`** — Tiled DOTA v1.0 train/val folders and dataset-specific normalization (from `odet stats`). All DOTA 1× recipes inherit this (Oriented R-CNN, Faster R-CNN, FCOS, RetinaNet) so satellite tiles are centered with DOTA mean/std rather than ImageNet defaults.
6
-
-**`hrsc2016.json`** — Official HRSC2016 layout (`dataset.format: hrsc2016`), ImageSets trainval/test, square pad-800 default. Oriented R-CNN, Faster R-CNN, and FCOS 1×/3× override to `keep_ratio` + pad-32. Eval uses the same whole-image path as training; DOTA recipes stay on `fixed` sliding windows.
7
-
-**`fair1m.json`** — Tiled FAIR1M after `odet fair1m-to-dota` + `odet tile-dota` (1024 / overlap 200). Raw dump is `/path/to/data/FAIR1M` (official train 16,488 + val 8,287). Convert with `--splits train,val` (no `--val-fraction` unless the dump has no val; default `--image-format original` copies JPEG/PNG). Point `train_tiles_dir` / `val_tiles_dir` at `FAIR1M-dota/{train,val}/tiles_1024` — not the parent split folder (that still holds full images). Recipes use `dataset.format: dota` and finetune the matching DOTA 1× Hub checkpoint (no FAIR1M zoo).
5
+
-**`dota_le90.json`** — Tiled DOTA v1.0 train/val folders and dataset-specific normalization (from `odet stats`). All DOTA 1× recipes inherit this (Oriented R-CNN, Faster R-CNN, FCOS, RetinaNet) so satellite tiles are centered with DOTA mean/std rather than ImageNet defaults. Zoo recipes then union **train+val** via `train_tiles_dirs`; `make eval-val` on val tiles is **leaky**. The real DOTA test is official Task 1.
6
+
-**`hrsc2016.json`** — Official HRSC2016 layout (`dataset.format: hrsc2016`), ImageSets **trainval / test**, square pad-800 default. Oriented R-CNN, Faster R-CNN, and FCOS 1×/3× override to `keep_ratio` + pad-32. Eval uses the same whole-image path as training; DOTA recipes stay on `fixed` sliding windows. Test images are **not** in training.
7
+
-**`fair1m.json`** — Tiled FAIR1M after `odet fair1m-to-dota` + `odet tile-dota` (1024 / overlap 200). Raw dump is `/path/to/data/FAIR1M` (official train 16,488 + val 8,287). Convert with `--splits train,val` (no `--val-fraction` unless the dump has no val; default `--image-format original` copies JPEG/PNG). Point `train_tiles_dir` / `val_tiles_dir` at `FAIR1M-dota/{train,val}/tiles_1024` — not the parent split folder (that still holds full images). Recipes use `dataset.format: dota` and finetune the matching DOTA 1× Hub checkpoint (no FAIR1M zoo). Train is official **train** tiles only; val is **not** in training. Faster R-CNN 1× local tiled-val mAP50 **36.70%** (mid-30s is expected; see [Data guide — FAIR1M](../../../docs/user-guide/data.md#local-1x-faster-rcnn)).
0 commit comments