-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Rotated bounding box NMS implementation for CPU #9450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
zy1git
wants to merge
25
commits into
pytorch:main
Choose a base branch
from
zy1git:rotated-NMS
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
bfb8321
NMS implementation for CPU
8875875
add tests
ae5fb41
Merge remote-tracking branch 'origin/main' into rotated-NMS
0e924ed
fuse two implementations
667e1b4
Remove Detectron2 license header from nms_kernel.cpp since the NMS al…
f01ca8b
revert the unnecessary linting
40adc7f
Preserve original IoU computation in fused NMS implementation
eb4aefe
Add box caching in fused NMS to match original memory access pattern
5499015
fix the test failure
c940345
remove the torchscript test and err_msg
17a54cc
Remove the fmt parameter from nms function
54aee4c
fix the test failures
c5cf1c4
Reuse TestNMS._reference_nms in TestNMSRotated
9c96e26
address the comment
4a993c8
change the variable name
84e960c
address more comments on the file torchvision/csrc/ops/cpu/nms_kernel…
9ef0c0b
add batched_nms and the test
4da74a8
Rename _reference_nms to _reference_aligned_nms
2ea193b
Merge TestNMSRotated into TestNMS
c249d35
combine tests, refactor duplicated parts and add a test for NMS with …
50afe5c
add test_nms_rotated_specific_angles
8259471
parametrize the existing test_batched_nms_implementations test over t…
bdd502d
address the comments by using the torch.testing.assert_close and remo…
7f5d72b
parametrizing the angles for the test_batched_nms_rotated function
aea073c
add explanation for angle = 90 and move it out of the _create_rotated…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you explain the
.templatesyntax?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added
.templateto fix a CI failure we hit on the macOS build. It explicitly indicates thatdata_ptr<scalar_t>is a template method. Without it, the compiler can't tell whetherdata_ptr<scalar_t>is a template method call or a less-than comparison.