Skip to content

Commit 05889a3

Browse files
committed
Release 0.1.1.
ProbIoU Rotated Faster R-CNN Hub weights and RetinaNet head refactor.
1 parent 5186290 commit 05889a3

119 files changed

Lines changed: 659818 additions & 2225 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
# Personal notebooks and scripts
66
notebooks/
7+
post/
8+
docs/roadmap-detailed.md
79
tools/test_*
810
.cursor/
911
.python-version
@@ -22,6 +24,9 @@ runs.*/
2224
predictions/
2325
temp/
2426

27+
# Raw val detections are too large for GitHub (one file can exceed 100 MB)
28+
docs/eval-reports/**/predictions.json
29+
2530
# Weights files
2631
**/*.pt
2732
**/*.pth

‎Makefile‎

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ ORIENTED_DET_WINDOW_BATCH_SIZE ?= 64
2626
CUDNN_LIB := $(shell python -c "import os, site; p=[x for x in site.getsitepackages() if 'site-packages' in x][0]; print(os.path.join(p,'nvidia/cudnn/lib'))" 2>/dev/null)
2727
TRAIN_ENV = LD_LIBRARY_PATH="$(CUDNN_LIB):$$LD_LIBRARY_PATH"
2828

29-
# train-preds: directory for predictions.json + tile_metrics.csv (default: <latest_exp>/train_tile_eval)
29+
# VIEWER_PRED_DIR: predictions dir for make viewer (default: latest under predictions/)
30+
VIEWER_PRED_DIR ?=
3031
SAVE_TRAIN_PRED_OUT ?=
3132
# make metrics: explicit predictions dir (default: newest predictions/*/)
3233
METRICS_PRED_DIR ?=
@@ -63,7 +64,7 @@ help:
6364
@echo " make publish-pypi - Upload dist/* to PyPI (TWINE_USERNAME/TWINE_PASSWORD or token)"
6465
@echo ""
6566
@echo "=== Pretrained (Hugging Face Hub) ==="
66-
@echo " make upload-pretrained - Upload manifest-listed .pth from $(PRETRAINED_DIR)/ to $(HF_REPO_ID)"
67+
@echo " make upload-pretrained - Upload manifest-listed .pth (+ sidecar .json/.log) from $(PRETRAINED_DIR)/ to $(HF_REPO_ID)"
6768
@echo " HF_REPO_ID= HF_REVISION= HF_COMMIT_MESSAGE= PRETRAINED_DIR="
6869
@echo " Requires: hf auth login (huggingface_hub CLI)"
6970
@echo ""
@@ -86,7 +87,7 @@ help:
8687
@echo ""
8788
@echo "=== Viewers, demos, TensorBoard ==="
8889
@echo " make tensorboard - TensorBoard for all experiments under runs/"
89-
@echo " make viewer - Gradio: latest predictions/ (run make preds first)"
90+
@echo " make viewer - Gradio viewer (VIEWER_PRED_DIR= or latest predictions/; see docs/eval-reports/)"
9091
@echo " make demo - image_demo on all top-level images in DEMO_DIR ($(DEMO_DIR)) → $(IMAGE_DEMO_OUT_DIR)/"
9192
@echo ""
9293
@echo "=== Export (TensorFlow) ==="
@@ -164,6 +165,8 @@ upload-pretrained: check-install
164165
@echo "Uploading to $(HF_REPO_ID) (revision=$(HF_REVISION)) ..."
165166
@hf upload $(HF_REPO_ID) $(PRETRAINED_DIR)/ \
166167
--include "*.pth" \
168+
--include "*.json" \
169+
--include "*.log" \
167170
--repo-type model \
168171
--revision $(HF_REVISION) \
169172
--commit-message "$(HF_COMMIT_MESSAGE)"
@@ -406,26 +409,25 @@ demo: check-install
406409
# --- Gradio viewers ---
407410
# Launch Gradio app to view predictions (auto-detects latest predictions folder)
408411
viewer: check-install
409-
@echo "Finding latest predictions directory..."; \
410-
if [ ! -d "predictions" ]; then \
411-
echo "Error: No predictions directory found."; \
412-
echo "Run 'make preds' first to generate predictions."; \
412+
@if [ -n "$(VIEWER_PRED_DIR)" ]; then \
413+
PRED="$(VIEWER_PRED_DIR)"; \
414+
echo "Using VIEWER_PRED_DIR: $$PRED"; \
415+
elif [ -d "predictions" ] && [ -n "$$(find predictions -mindepth 1 -maxdepth 1 -type d 2>/dev/null | head -1)" ]; then \
416+
PRED=$$(find predictions -mindepth 1 -maxdepth 1 -type d 2>/dev/null | sort -r | head -1); \
417+
echo "Latest local predictions: $$PRED"; \
418+
else \
419+
echo "Error: no predictions dir. Set VIEWER_PRED_DIR=predictions/<timestamp> or run make preds."; \
413420
exit 1; \
414421
fi; \
415-
LATEST_PRED=$$(find predictions -mindepth 1 -maxdepth 1 -type d 2>/dev/null | sort -r | head -1); \
416-
if [ -z "$$LATEST_PRED" ]; then \
417-
echo "Error: No predictions directories found in predictions/"; \
418-
echo "Run 'make preds' first to generate predictions."; \
422+
if [ ! -f "$$PRED/predictions.json" ]; then \
423+
echo "Error: predictions.json not found under $$PRED"; \
419424
exit 1; \
420425
fi; \
421-
echo "Latest predictions: $$LATEST_PRED"; \
422426
if [ -z "$$DOTA_DATA_ROOT" ]; then \
423-
echo "Warning: DOTA_DATA_ROOT environment variable not set."; \
424-
echo "The app will try to auto-detect from predictions metadata."; \
425-
echo ""; \
426-
odet viewer --mode predictions --predictions-dir "$$LATEST_PRED"; \
427+
echo "Warning: DOTA_DATA_ROOT not set; viewer uses paths from predictions metadata."; \
428+
odet viewer --mode predictions --predictions-dir "$$PRED"; \
427429
else \
428-
odet viewer --mode predictions --predictions-dir "$$LATEST_PRED" --data-root "$$DOTA_DATA_ROOT"; \
430+
odet viewer --mode predictions --predictions-dir "$$PRED" --data-root "$$DOTA_DATA_ROOT"; \
429431
fi
430432

431433
# --- Utilities ---

‎README.md‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- **Geometry**: Rotated bounding boxes (rbox: cx, cy, w, h, angle), quadrilateral boxes (qbox), polygon ↔ rbox ↔ hbox conversions, angle normalization (le90, 0–180°), flip/rotate/scale transforms, visualization helpers
88
- **IoU & NMS**: Rotated IoU and oriented NMS (CPU with optional GPU kernels when available); AABB pre-filtering; `obb_to_xyxy` / HBB conversion
99
- **Datasets**: DOTA polygon loader (pattern, split file, or separate folders), image tiling, label filtering, ignore masks, oriented mAP evaluation
10-
- **Models**: **Oriented R-CNN** (horizontal RPN + MidpointOffset → oriented ROI), **Rotated Faster R-CNN** (oriented RPN + oriented ROI), **Rotated RetinaNet** (oriented anchors, focal loss); ResNet + FPN backbones; selective loading of external checkpoints where configs wire `checkpoint.load_from_checkpoint`
10+
- **Models**: **Oriented R-CNN** ([Xie et al., ICCV 2021](https://openaccess.thecvf.com/content/ICCV2021/html/Xie_Oriented_R-CNN_for_Object_Detection_ICCV_2021_paper.html); horizontal RPN + MidpointOffset → oriented RoIAlign + oriented ROI head), **Rotated Faster R-CNN** (Ren et al., NeurIPS 2015 two-stage baseline with horizontal RPN + horizontal RoIAlign + rotated ROI head; MMRotate reference), **Rotated RetinaNet** ([Lin et al., ICCV 2017](https://openaccess.thecvf.com/content_ICCV_2017/papers/Lin_Focal_Loss_for_ICCV_2017_paper.pdf); oriented anchors, sigmoid focal loss); ResNet + FPN backbones; selective loading of external checkpoints where configs wire `checkpoint.load_from_checkpoint`
1111
- **Training**: JSON configs + **`odet train`**, mixed precision (AMP), gradient accumulation, checkpointing, best-metric tracking, TensorBoard, optional curriculum learning and profiling
1212

1313
## Installation
@@ -32,6 +32,7 @@ uv pip install -r requirements.txt
3232
uv pip install -e .
3333
```
3434

35+
- To auto-activate `.venv` when entering this repo, install the [`direnv`](https://direnv.net/) shell hook and run `direnv allow` from the repo root. The local `.envrc` is intentionally gitignored so each developer can opt in on their machine.
3536
- From PyPI: `pip install oriented-det`
3637
- For development and tests: `uv pip install -e ".[dev]"`
3738
- For the Gradio prediction viewer: `uv pip install -e ".[viewer]"` or `pip install "oriented-det[viewer]"`
@@ -124,8 +125,8 @@ DOTA configs: per-model `dota_le90_1x.json` / `dota_le90_3x.json` under [configs
124125

125126
## Pretrained weights and evaluation
126127

127-
- Place exported best checkpoints under **`pretrained/`** or use Hub slugs (`odet pretrained download oriented_rcnn_dota_le90_1x`). See [pretrained/README.md](pretrained/README.md) and [configs/README.md](configs/README.md#dota-pretrained-models-model-zoo).
128-
- **Tiled validation:** after training, run `make preds` then `make metrics` (or `odet preds` / `odet preds --metrics-from-json`). Large images use sliding-window inference when they exceed the model canvas; thresholds and overlap come from **`production.*`** in the experiment config.
128+
- Place exported best checkpoints under **`pretrained/`** or use Hub slugs (`odet pretrained download oriented_rcnn_dota_le90_3x` or `oriented_rcnn_dota_le90_1x`). See [pretrained/README.md](pretrained/README.md) and [configs/README.md](configs/README.md#dota-pretrained-models-model-zoo).
129+
- **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/).
129130

130131
## Important notes
131132

@@ -135,17 +136,22 @@ DOTA configs: per-model `dota_le90_1x.json` / `dota_le90_3x.json` under [configs
135136

136137
## Roadmap
137138

138-
- **v0.1** (current): Geometry, IoU/NMS, DOTA loader + tiler, three baseline detectors, config-based training, Hub pretrained weights
139-
- **Next**: HRSC2016 dataset support, expanded tutorials, hosted docs
140-
- **Future**: Additional oriented detectors (e.g. FAIR1M), optional fused CUDA kernels
139+
See **[docs/roadmap.md](docs/roadmap.md)** for the full public plan. Summary:
140+
141+
- **v0.1** (shipped): Geometry, IoU/NMS, DOTA, three ResNet-FPN detectors, config training, Hub pretrained weights
142+
- **v0.2**: probiou Faster R-CNN 3× on Hub
143+
- **v0.3**: Rotated FCOS (anchor-free single-stage)
144+
- **v0.4**: HRSC2016 and FAIR1M dataset support
145+
- **v0.5**: RTMDet-R and native YOLO-OBB (AGPL-free production tier)
146+
- **v0.6+**: Swin-FPN backbone; optional fused CUDA kernels; hosted docs
141147

142148
## Contributing
143149

144150
Contributions are welcome. Run tests with `pytest`, format with `black` and `ruff`. See [docs/contributing.md](docs/contributing.md) for guidelines.
145151

146152
## Publishing to PyPI
147153

148-
Version **0.1.0** — tag releases as **`v0.1.0`** (git) matching `version` in `pyproject.toml`.
154+
Version **0.1.1** — tag releases as **`v0.1.1`** (git) matching `version` in `pyproject.toml`.
149155

150156
Configs: edit **`configs/`** at the repo root, then **`make sync-configs`** so **`oriented_det/configs/`** stays in sync (see **`oriented_det/configs/vendored_manifest.txt`**). CI runs **`make check-configs`**.
151157

‎configs/README.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ OrientedDet publishes **DOTA le90 pretrain** checkpoints on Hugging Face Hub. Se
1717
| Model | Config | Hub slug | eval-val mAP50 |
1818
|-------|--------|----------|----------------|
1919
| Oriented R-CNN 1× | [oriented_rcnn/dota_le90_1x.json](oriented_rcnn/dota_le90_1x.json) | `oriented_rcnn_dota_le90_1x` | 74.79% |
20-
| Oriented R-CNN 3× | [oriented_rcnn/dota_le90_3x.json](oriented_rcnn/dota_le90_3x.json) | — | TBD |
20+
| Oriented R-CNN 3× | [oriented_rcnn/dota_le90_3x.json](oriented_rcnn/dota_le90_3x.json) | `oriented_rcnn_dota_le90_3x` | 79.40% |
2121
| Rotated RetinaNet 1× | [rotated_retinanet/dota_le90_1x.json](rotated_retinanet/dota_le90_1x.json) | `rotated_retinanet_dota_le90_1x` | 64.14% |
2222
| Rotated RetinaNet 3× | [rotated_retinanet/dota_le90_3x.json](rotated_retinanet/dota_le90_3x.json) | `rotated_retinanet_dota_le90_3x` | 71.52% |
23-
| Rotated Faster R-CNN 1× | [rotated_faster_rcnn/dota_le90_1x.json](rotated_faster_rcnn/dota_le90_1x.json) | — | TBD |
24-
| Rotated Faster R-CNN 3× | [rotated_faster_rcnn/dota_le90_3x.json](rotated_faster_rcnn/dota_le90_3x.json) | `rotated_faster_rcnn_dota_le90_3x` | 76.41% |
23+
| Rotated Faster R-CNN 1× | [rotated_faster_rcnn/dota_le90_1x.json](rotated_faster_rcnn/dota_le90_1x.json) | `rotated_faster_rcnn_dota_le90_1x` | 77.57% |
24+
| Rotated Faster R-CNN 3× | [rotated_faster_rcnn/dota_le90_3x.json](rotated_faster_rcnn/dota_le90_3x.json) | `rotated_faster_rcnn_dota_le90_3x` | 83.42% |
2525

26-
Download: `odet pretrained download <slug>` or `"load_from_checkpoint": "hf://<slug>"`.
26+
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).
2727

2828
| Prefix | Resolves under | Override env |
2929
|--------|----------------|--------------|
@@ -50,7 +50,7 @@ Example in an external project that keeps local dataset fragments:
5050

5151
- **[_base_/](_base_)** — Dataset, model, schedule, FP16, preprocessing, augmentation fragments (do not run directly; included via `_base_`).
5252
- **[oriented_rcnn/](oriented_rcnn/)** — Oriented R-CNN (horizontal RPN + midpoint-offset + oriented ROI). See [oriented_rcnn/README.md](oriented_rcnn/README.md).
53-
- **[rotated_faster_rcnn/](rotated_faster_rcnn/)** — Rotated Faster R-CNN. 1× baseline: `dota_le90_1x.json`; 3× recipe: `dota_le90_3x.json`. See [rotated_faster_rcnn/README.md](rotated_faster_rcnn/README.md).
53+
- **[rotated_faster_rcnn/](rotated_faster_rcnn/)** — Rotated Faster R-CNN. Standard recipe: ProbIoU main ROI loss, Smooth L1 aux 0.1, angle weight 1.0 (`dota_le90_1x.json`; 3× via `dota_le90_3x.json`). See [rotated_faster_rcnn/README.md](rotated_faster_rcnn/README.md).
5454
- **[rotated_retinanet/](rotated_retinanet/)** — Rotated RetinaNet (one-stage). See [rotated_retinanet/README.md](rotated_retinanet/README.md).
5555

5656
## Muted keys
@@ -76,7 +76,7 @@ All options, types, and defaults: **[config.schema.json](config.schema.json)** (
7676
|--------|-------------|
7777
| `_base_` | Base config path(s): relative to current file, `@odet:…`, or absolute |
7878
| `model_type` | `oriented_rcnn`, `rotated_faster_rcnn`, or `rotated_retinanet` |
79-
| `dataset` | data_root, format (dota / airbus_playground), train_tiles_dir, val_tiles_dir, **train_tiles_dirs**, **val_tiles_dirs** (optional lists; union without on-disk merge), **same_folder** (DOTA: images and .txt in same dir), **overlap** (tile overlap px, even; deploy uses margin = overlap/2), annotations_file, split_file, difficult_strategy, **filter_empty_gt** (DOTA: drop tiles with no GT after filters; MMRotate parity), max_train_samples, max_val_samples, **max_samples_shuffle_seed** (deterministic spread when capping), allowed_classes, ignore_labels, map_labels |
79+
| `dataset` | data_root, format (dota / airbus_playground), train_tiles_dir, val_tiles_dir, **train_tiles_dirs**, **val_tiles_dirs** (optional lists; union without on-disk merge), **same_folder** (DOTA: images and .txt in same dir), **overlap** (tile overlap px, even; deploy uses margin = overlap/2), annotations_file, split_file, **val_split_id**, **train_includes_val** (Airbus: train on all folds; val fold for monitoring only), difficult_strategy, **filter_empty_gt** (DOTA: drop tiles with no GT after filters; MMRotate parity), max_train_samples, max_val_samples, **max_samples_shuffle_seed** (deterministic spread when capping), allowed_classes, ignore_labels, map_labels |
8080
| `data_loader` | batch_size, num_workers, shuffle, pin_memory |
8181
| `model` | backbone, fpn_*, anchor_*, target_means/stds, roi_* (loss, batch, iou, schedule, **roi_proj_xy**), rpn_*, use_hbb_for_matching, add_gt_as_proposals, **rpn_nms_threshold** (proposal NMS), **final_nms_iou_threshold** / **final_nms_iou_schedule_*** (post–ROI-head NMS), **final_nms_use_cpu** (exact polygon final NMS on CPU), nms_class_agnostic, max_detections_per_image, inference_pre_nms_score_threshold |
8282
| `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). |

‎configs/config.schema.json‎

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,34 @@
3030
"type": ["string", "null"],
3131
"description": "Path to the training recipe JSON used for this run (set when saving config.json)."
3232
},
33+
"source_code_root": {
34+
"type": ["string", "null"],
35+
"description": "Framework source tree used at train start (set when saving config.json)."
36+
},
37+
"git_commit": {
38+
"type": ["string", "null"],
39+
"description": "Full git commit hash of the framework source at train start."
40+
},
41+
"git_describe": {
42+
"type": ["string", "null"],
43+
"description": "Output of git describe --dirty --always --tags at train start."
44+
},
45+
"git_dirty": {
46+
"type": ["boolean", "null"],
47+
"description": "True when the framework source tree had uncommitted changes at train start."
48+
},
49+
"git_branch": {
50+
"type": ["string", "null"],
51+
"description": "Git branch name at train start (may be HEAD when detached)."
52+
},
53+
"git_commit_date": {
54+
"type": ["string", "null"],
55+
"description": "Committer date (ISO 8601) of git_commit at train start."
56+
},
57+
"package_version": {
58+
"type": ["string", "null"],
59+
"description": "Installed oriented-det package version at train start."
60+
},
3361
"class_map": {
3462
"type": ["object", "null"],
3563
"additionalProperties": { "type": "integer" },
@@ -88,6 +116,11 @@
88116
"minimum": 0,
89117
"description": "For Airbus split.csv with integer fold ids: which fold id is treated as validation (default 0). Ignored when split.csv uses legacy train/val strings."
90118
},
119+
"train_includes_val": {
120+
"type": "boolean",
121+
"default": false,
122+
"description": "Airbus Playground fold mode only: when true, the train split includes all folds (DOTA trainval parity). Validation still uses val_split_id for monitoring only."
123+
},
91124
"ignore_labels": {
92125
"type": ["array", "null"],
93126
"items": { "type": "string" },
@@ -170,6 +203,9 @@
170203
"roi_box_reg_iou_loss_type": { "type": "string", "default": "riou", "enum": ["riou", "kfiou", "probiou"], "description": "Auxiliary regression term when roi_box_reg_iou_weight > 0: riou = mean(1 - rIoU); kfiou = Kalman-filter IoU surrogate; probiou = mean ProbIoU (Gaussian BBox)." },
171204
"roi_box_reg_kfiou_fun": { "type": ["string", "null"], "default": null, "enum": [null, "none", "ln", "exp"], "description": "When roi_box_reg_iou_loss_type is kfiou, overlap mapping: none → 1-KFIoU; ln → -log(KFIoU); exp → exp(1-KFIoU)-1." },
172205
"roi_box_reg_probiou_mode": { "type": ["string", "null"], "default": null, "enum": [null, "l1", "l2"], "description": "When roi_box_reg_iou_loss_type is probiou, metric variant: l1 (bounded, default) or l2 (-log(1-l1^2))." },
206+
"roi_box_reg_main_loss_type": { "type": "string", "default": "smooth_l1", "enum": ["smooth_l1", "probiou", "riou", "kfiou"], "description": "Primary ROI box regression loss for Rotated Faster R-CNN: smooth_l1 (encoded) or decoded probiou/riou/kfiou." },
207+
"roi_box_reg_norm": { "type": "string", "default": "sampled_all", "enum": ["sampled_all", "positives_only"], "description": "Smooth L1 normalization: sampled_all (MMDet avg_factor over pos+neg) or positives_only (mean over positives)." },
208+
"roi_box_reg_smooth_l1_aux_weight": { "type": "number", "default": 0.0, "description": "Encoded Smooth L1 aux weight when roi_box_reg_main_loss_type is probiou/riou/kfiou." },
173209
"retinanet_stacked_convs": { "type": "integer", "default": 1, "minimum": 1, "description": "RetinaNet shared 3x3 conv depth before cls/reg (MMRotate: 4)." },
174210
"box_reg_loss_type": { "type": "string", "default": "smooth_l1", "enum": ["smooth_l1", "l1"], "description": "RetinaNet box regression loss (MMRotate: l1)." },
175211
"box_reg_weight": { "type": "number", "default": 1.0, "description": "RetinaNet box regression loss weight." },
@@ -187,7 +223,8 @@
187223
"rpn_negative_iou_threshold": { "type": "number", "default": 0.3, "description": "IoU threshold for negative RPN anchors." },
188224
"rpn_min_pos_iou": { "type": "number", "default": 0.3, "description": "Min IoU for best-anchor-per-GT to be positive (MMRotate RPN)." },
189225
"rpn_match_low_quality": { "type": "boolean", "default": true, "description": "Force best anchor per GT to positive when IoU >= rpn_min_pos_iou." },
190-
"use_hbb_for_matching": { "type": "boolean", "default": false, "description": "Use axis-aligned (HBB) IoU for matching. When true, helps angle regression and classifier stability (e.g. TOY-200)." },
226+
"use_hbb_for_matching": { "type": "boolean", "default": false, "description": "Use axis-aligned (HBB) IoU for RPN/anchor matching (MMRotate RPN stage)." },
227+
"roi_use_hbb_for_matching": { "type": "boolean", "default": false, "description": "Oriented R-CNN only: use HBB IoU for ROI-stage matching. Default false (rotated IoU, MMRotate RCNN)." },
191228
"add_gt_as_proposals": { "type": "boolean", "default": true, "description": "Append GT boxes to RPN proposals in training (MMRotate default)." },
192229
"final_nms_iou_threshold": { "type": "number", "default": 0.5, "description": "Final detection NMS IoU threshold after ROI head (distinct from rpn_nms_threshold)." },
193230
"nms_class_agnostic": { "type": "boolean", "default": false, "description": "If true, run one oriented NMS on all classes (suppresses overlapping car/truck); if false, NMS per class (default)." },

0 commit comments

Comments
 (0)