Skip to content

RTMDet-Ins seg: max_det is ignored above 100 #950

Closed

Description

@AnuarSv

In postprocess/rtmdet.py the segment path does keep = keep[: min(max_det, 100)], so predict(..., max_det=1000) still returns at most 100 masks. Same on dev.

On dense scenes (up to ~200 objects per 1024 image) this silently drops objects. With an mmdet-trained RTMDet-Ins-x converted to LibreYOLO, mask mAP50 was 0.726 vs 0.809 in mmdet. Scores match exactly, only the cap differs. Patching it locally to keep[:max_det] gives 0.796.

Keeping 100 as the default for COCO parity makes sense, but an explicit max_det should be respected. nms_pre is also clamped to 1000 there.

libreyolo 1.6.0, torch 2.12, Python 3.14, Linux.

Activity

  1. EHxuban11 commented on Oct 21, 2026

    @EHxuban11
    Contributor

    Hello @AnuarSv , thank you for opening the issue. You are right and following this issue it has been fixed here: #953

    Thanks again for taking the time to report this !

  2. added a commit that references this issue on Oct 21, 2026
  3. added
    bugSomething isn't working
    awaiting responseFix or answer given; waiting for the reporter to confirm
    and removed on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting responseFix or answer given; waiting for the reporter to confirmbugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions