Skip to content
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

[MXNet] Add parser for contrib.box_decode #5967

Merged
merged 1 commit into from
Jul 1, 2020

Conversation

trevor-m
Copy link
Contributor

@trevor-m trevor-m commented Jun 30, 2020

This PR makes TVM's mxnet frontend more compatible with newer GluonCV versions. It maps contrib.box_decode back to the elementwise ops it was previously built out of in earlier GluonCV versions.

MXNet operator: https://mxnet.incubator.apache.org/api/python/docs/api/ndarray/contrib/index.html#mxnet.ndarray.contrib.box_decode

This operator is used by object detection models generated by newer GluonCV versions (> 0.5.0).
https://github.com/dmlc/gluon-cv/blob/04baf39d2441bd23e7809032718d1d99ac5bb256/gluoncv/nn/coder.py#L283

The importer now maps it back to these ops:
https://github.com/dmlc/gluon-cv/blob/04baf39d2441bd23e7809032718d1d99ac5bb256/gluoncv/nn/coder.py#L285-L301

Also, here is the implementation of MXNet's box decode op:
https://github.com/apache/incubator-mxnet/blob/1ab4c95fd0e6ceccf718df96b4643762bb23227c/src/operator/contrib/bounding_box-inl.h#L981

@trevor-m
Copy link
Contributor Author

@icemelon9 @zhiics Could you please review? Thanks!

Copy link
Member

@zhiics zhiics left a comment

Choose a reason for hiding this comment

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

LGTM

@kevinthesun it would be great if you can help take a look as well.

Copy link
Contributor

@kevinthesun kevinthesun left a comment

Choose a reason for hiding this comment

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

LGTM

@tqchen tqchen merged commit 5c1bf98 into apache:master Jul 1, 2020
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Jul 1, 2020
zhiics pushed a commit to neo-ai/tvm that referenced this pull request Jul 2, 2020
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.

4 participants