-
Notifications
You must be signed in to change notification settings - Fork 522
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
Add center_point_box=1 support in NonMaxSuppression. #3976
Conversation
@vivekkhandelwal1 @jinchen62 Looks like I don't have permission to add reviewers, could you please take a look? |
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.
Thanks for making this! LGTM except for some minor changes.
Could you test iree e2e test https://github.com/iree-org/iree-test-suites/tree/main/onnx_ops/onnx/node/generated/test_nonmaxsuppression_center_point_box_format? If you haven't used it, instruction is here https://github.com/iree-org/iree-test-suites/blob/main/onnx_ops/README.md.
When center_point_box=1, the supplied boxes come with a format of [x_center, y_center, width, height], this patch converts the format into [x1, y1, x2, y2] format before they are consumed.
d7603ab
to
7487082
Compare
Thanks for the guidance. Comments addressed. I have also confirmed PTAL! |
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.
Cheers!
When center_point_box=1, the supplied boxes come with a format of [x_center, y_center, width, height], this patch converts the format into [x1, y1, x2, y2] format before they are consumed.
The e2e test is added in nod-ai/SHARK-TestSuite#436