Skip to content

Conversation

@mpj1234
Copy link
Collaborator

@mpj1234 mpj1234 commented Dec 17, 2025

origin:

int count = bboxes[0];
if (position >= count)
    return;

The above code has the risk of maximum crossing.

int count = min(static_cast<int>(bboxes[0]), max_objects);

@mpj1234 mpj1234 merged commit c98d6fc into wang-xinyu:trt10 Dec 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant