Skip to content

Conversation

@f-fl0
Copy link
Contributor

@f-fl0 f-fl0 commented Aug 14, 2024

Description

According to the documentation of batched_nms, the second argument should the scores for each one of the boxes but in the current implementation valid_cls is used which is a tensor of class indexes. I believe valid_con should be used instead. I tried to update the tests to exhibit the issue.

Type of Change

Bug fix (non-breaking change which fixes an issue)

Checklist:

  • The code follows the Python style guide.
  • Code and files are well organized.
  • All tests pass.
  • New code is covered by tests.
  • The pull request is directed to the corresponding topic branch.

Licensing:

By submitting this pull request, I confirm that:

  • My contribution is made under the MIT License.
  • I have not included any code from questionable or non-compliant sources (GPL, AGPL, ... etc).
  • I understand that all contributions to this repository must comply with the MIT License, and I promise that my contributions do not violate this license.
  • I have not used any code or content from sources that conflict with the MIT License or are otherwise legally questionable.

@f-fl0 f-fl0 changed the title Fix bbox_nms function [Fix] bbox_nms function Aug 15, 2024
@henrytsui000
Copy link
Member

Hi,

Thank you for your pull request! That was indeed a mistake on my part, and I will merge this PR as soon as possible. However, could you please submit your PR to the DEPLOY branch instead of the main branch?

Thank you!

Best regards,
Henry Tsui

@f-fl0 f-fl0 force-pushed the fix-bbox-nms-function branch from d8b6bf4 to 7335a2e Compare August 16, 2024 13:40
@f-fl0 f-fl0 changed the base branch from main to DEPLOY August 16, 2024 13:40
@f-fl0
Copy link
Contributor Author

f-fl0 commented Aug 16, 2024

Thank you @henrytsui000. I rebased my PR on the DEPLOY branch.

@henrytsui000 henrytsui000 merged commit 44527a6 into MultimediaTechLab:DEPLOY Aug 21, 2024
@f-fl0 f-fl0 deleted the fix-bbox-nms-function branch August 22, 2024 02:00
yjmm10 pushed a commit to yjmm10/YOLO-MIT that referenced this pull request Aug 28, 2024
2. optimize the program for calculating AP and support more AP index
3. fix the choice of mode
yjmm10 pushed a commit to yjmm10/YOLO-MIT that referenced this pull request Aug 28, 2024
add: more test_calculate_map case
mapo80 pushed a commit to mapo80/YOLO that referenced this pull request Jan 4, 2026
* Use valid_con instead of valid_cls in batched_nms

* Update test_bbox_nms

* Improve comments

* Apply black
mapo80 pushed a commit to mapo80/YOLO that referenced this pull request Jan 4, 2026
* Use valid_con instead of valid_cls in batched_nms

* Update test_bbox_nms

* Improve comments

* Apply black
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.

2 participants