Skip to content

Bump NMS version for avoiding regression in existing models#2348

Merged
wschin merged 3 commits intoonnx:masterfrom
wschin:bump-nms-ver
Sep 24, 2019
Merged

Bump NMS version for avoiding regression in existing models#2348
wschin merged 3 commits intoonnx:masterfrom
wschin:bump-nms-ver

Conversation

@wschin
Copy link
Copy Markdown
Collaborator

@wschin wschin commented Sep 24, 2019

In opset 10, NMS doesn't produce shape. With the newly added shape inference function, some existing models can be broken due to the interaction between NSM and IF nodes (IF's then branch and else branch produce different shapes). Thus, I feel it'd be better to bump the version of NMS so that old code can still work with old models.

Because shape inference produces side information for a model, if we consider side information a part of the spec, we also need to bump operator's version each time we add a shape inference function.

@wschin wschin added this to the 1.6 milestone Sep 24, 2019
@wschin wschin requested a review from a team as a code owner September 24, 2019 02:49
@wschin wschin added the topic: operator Issues related to ONNX operators label Sep 24, 2019
@wschin wschin requested a review from ebarsoum September 24, 2019 02:49
Comment thread onnx/defs/object_detection/old.cc Outdated
@wschin wschin merged commit a3c9145 into onnx:master Sep 24, 2019
@wschin wschin deleted the bump-nms-ver branch September 24, 2019 20:15
wschin added a commit to wschin/onnx that referenced this pull request Sep 24, 2019
* Bump NMS version for avoiding regression in existing models

* Bring old logic back
kevinch-nv pushed a commit that referenced this pull request Sep 25, 2019
* Relax IF's shape inference rule (#2345)

* Relax If's shape inference rule

* Make shape inference tests ok and move code to the right place

* Add document changes

* Update onnx/defs/controlflow/defs.cc

* Update onnx/defs/controlflow/defs.cc

* Address comments

* Address comments

* Address comments

* Fix shape inference test

* Disable a type check

* Address a comment

* Update defs.cc

* Update Changelog.md

* Update Operators.md

* Bump NMS version for avoiding regression in existing models (#2348)

* Bump NMS version for avoiding regression in existing models

* Bring old logic back

* Fix spec and shape inference for Unsqueeze op (#2347)

* Fix spec for Unsqueeze

* Update Changelog.md

* Refine doc

* Refine

* PR comments

* Update Changelog.md

* Update shape inference test file
jcwchen pushed a commit to jcwchen/onnx that referenced this pull request Sep 23, 2020
* Bump NMS version for avoiding regression in existing models

* Bring old logic back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: operator Issues related to ONNX operators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants