-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[ONNX] Support exporting RoiAlign align=True to ONNX with opset 16 #6685
Conversation
ebc793f
to
b179866
Compare
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.
LGTM, thanks @BowenBao.
We can merge on green CI.
…iPool unit tests" This PR depends on pytorch/vision#6685 [ghstack-poisoned]
This PR depends on pytorch/vision#6685 [ghstack-poisoned]
…iPool unit tests" This PR depends on pytorch/vision#6685 [ghstack-poisoned]
This PR depends on pytorch/vision#6685 [ghstack-poisoned]
…ytorch#6685) * Support exporting RoiAlign align=True to ONNX with opset 16 * lint: ufmt Co-authored-by: Vasilis Vryniotis <datumbox@users.noreply.github.com>
…set 16 (#6685) Summary: * Support exporting RoiAlign align=True to ONNX with opset 16 * lint: ufmt Reviewed By: datumbox Differential Revision: D40138746 fbshipit-source-id: 06dcd122e762c02491fd68a864773894b527b854 Co-authored-by: Vasilis Vryniotis <datumbox@users.noreply.github.com>
@datumbox Can this be included in 0.14 release such that PyTorch 1.13 release has the fix? |
@BowenBao I just checked and the PR was merged after the release cut. As this is a feature and not a bug fix, we would probably need to understand a bit better the confidence you have over this feature (for full transparency we are not ONNX power-users). Do you think this is safe to merge on the release branch? Have you tried exporting any model that uses the op to confirm? Thanks in advance. cc @YosuaMichael who is the POC for this release. |
…iPool unit tests" This PR depends on pytorch/vision#6685 [ghstack-poisoned]
This PR depends on pytorch/vision#6685 [ghstack-poisoned]
@BowenBao @datumbox Could you explain more on whether this PR is a bugfix (something will break if we dont include this PR), or is it more on feature (nothing broken if this PR is not included)? I am not that familiar with ONNX as well, so need to know more detail on this. Also agree with @datumbox , would be great to know how safe is this and what test has been done to make sure it is safe. |
Hi @YosuaMichael, this PR enables export of The change is covered by the test cases within this PR, as well as test cases for If this is to be included in release, it'd be nice to also include 0e006a9 which does a bit of rephrasing for the warning message.. |
This PR depends on pytorch/vision#6685 Pull Request resolved: #86169 Approved by: https://github.com/justinchuby, https://github.com/AllenTiTaiWang, https://github.com/abock
Long over due, but it's here.
ONNX upgrades its 'RoiAlign' spec in opset 16 to support
align=True
via 'coordinate_transformation_mode'.This PR adds support to export 'RoiAlign' under opset 16, and re-enabled disabled tests.
Together with pytorch/pytorch#86169 will fix pytorch/pytorch#81121