
Shaun ZhouandClaude Opus 5
9439cbb56a
feat(detect): 训练期的验证也约束预测框互不重叠
ultralytics 没有可用的开关:yolo26 是端到端模型,non_max_suppression 对它早退
(utils/nms.py 里 end2end 分支),只按置信度与 max_det 截断,传入的 iou 和 agnostic
都不参与 IoU 抑制;agnostic_nms 只作用于检测头 top-k(每个 anchor 取一个类别),
压不掉不同 anchor 产生的重叠框。
所以给 DetectionValidator.postprocess 包一层 filter_overlapping_outputs。训练期验证、
早停、best.pt 的选择都随之遵守这条约束,指标与最终推理一致。配置项 train.max_overlap
(默认 0,负数关闭),由 detect.py 摘出后自行实现,不传给 ultralytics。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 11:30:48 +08:00
..
2026-09-02 17:55:47 +08:00
2026-09-17 16:44:42 +08:00
2026-09-17 11:03:13 +08:00
2026-09-10 14:58:41 +08:00
2026-09-04 15:09:35 +08:00
2026-09-11 14:34:16 +08:00
2026-09-18 11:30:48 +08:00
2026-09-02 21:43:35 +08:00
2026-09-10 12:04:08 +08:00
2026-09-17 11:03:13 +08:00
2026-09-10 16:10:50 +08:00
2026-09-11 10:27:20 +08:00
2026-09-15 20:04:04 +08:00
2026-09-02 17:55:47 +08:00
2026-09-10 16:10:50 +08:00
2026-09-10 12:04:08 +08:00
2026-09-02 17:55:47 +08:00
2026-09-17 21:47:02 +08:00
2026-09-02 17:55:47 +08:00