Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[v1.x] ONNX contrib_box_nms #19755

Merged
merged 10 commits into from
Jan 29, 2021
Merged

[v1.x] ONNX contrib_box_nms #19755

merged 10 commits into from
Jan 29, 2021

Conversation

Zha0q1
Copy link
Contributor

@Zha0q1 Zha0q1 commented Jan 15, 2021

box nms op
currently does not support id_index and background_id -- we can add those later if requested

@Zha0q1 Zha0q1 requested a review from szha as a code owner January 15, 2021 00:46
@mxnet-bot
Copy link

Hey @Zha0q1 , Thanks for submitting the PR
All tests are already queued to run once. If tests fail, you can trigger one or more tests again with the following commands:

  • To trigger all jobs: @mxnet-bot run ci [all]
  • To trigger specific jobs: @mxnet-bot run ci [job1, job2]

CI supported jobs: [edge, clang, miscellaneous, windows-cpu, windows-gpu, website, centos-cpu, unix-gpu, unix-cpu, sanity, centos-gpu]


Note:
Only following 3 categories can trigger CI :PR Author, MXNet Committer, Jenkins Admin.
All CI tests must pass before the PR can be merged.

@Zha0q1 Zha0q1 changed the title Onnx nms [v1.x] ONNX contrib_box_nms Jan 15, 2021
@lanking520 lanking520 added pr-awaiting-testing PR is reviewed and waiting CI build and test pr-work-in-progress PR is still work in progress and removed pr-awaiting-testing PR is reviewed and waiting CI build and test labels Jan 15, 2021
@lanking520 lanking520 added pr-awaiting-testing PR is reviewed and waiting CI build and test pr-work-in-progress PR is still work in progress and removed pr-work-in-progress PR is still work in progress pr-awaiting-testing PR is reviewed and waiting CI build and test labels Jan 15, 2021
@@ -140,8 +141,10 @@ def get_outputs(sym, params, in_shape, in_label, in_type):

out_names = list()
for name in sym.list_outputs():
if name.endswith('_output'):
if re.search('.*_output$', name):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why use a regex here? endswith would be more efficient.

out_names.append(name[:-len('_output')])
elif re.search('.*_output[0-9]$', name):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using a regex here, you could just check for output in the string, like:
if name[-len('output0'):-1] == 'output':

@Zha0q1 Zha0q1 changed the title [v1.x] ONNX contrib_box_nms [wip][v1.x] ONNX contrib_box_nms Jan 16, 2021
@Zha0q1
Copy link
Contributor Author

Zha0q1 commented Jan 16, 2021

@josephevans thanks for reviewing, will change. Additionally I need to fix the graph linking issue when a node have > 1 output, thus adding [wip]

@lanking520 lanking520 added pr-awaiting-testing PR is reviewed and waiting CI build and test and removed pr-work-in-progress PR is still work in progress labels Jan 22, 2021
@Zha0q1 Zha0q1 changed the title [wip][v1.x] ONNX contrib_box_nms [v1.x] ONNX contrib_box_nms Jan 22, 2021
@lanking520 lanking520 added pr-work-in-progress PR is still work in progress pr-awaiting-testing PR is reviewed and waiting CI build and test pr-awaiting-review PR is waiting for code review and removed pr-awaiting-testing PR is reviewed and waiting CI build and test pr-work-in-progress PR is still work in progress labels Jan 23, 2021
Copy link
Contributor

@josephevans josephevans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

@lanking520 lanking520 added pr-awaiting-testing PR is reviewed and waiting CI build and test pr-work-in-progress PR is still work in progress pr-awaiting-review PR is waiting for code review and removed pr-awaiting-review PR is waiting for code review pr-awaiting-testing PR is reviewed and waiting CI build and test pr-work-in-progress PR is still work in progress labels Jan 27, 2021
@lanking520 lanking520 added pr-awaiting-testing PR is reviewed and waiting CI build and test pr-awaiting-review PR is waiting for code review and removed pr-awaiting-review PR is waiting for code review pr-awaiting-testing PR is reviewed and waiting CI build and test labels Jan 28, 2021
@Zha0q1 Zha0q1 merged commit 5c2de1d into apache:v1.x Jan 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr-awaiting-review PR is waiting for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants