Skip to content

Support Exporting GeneralizedRCNNTransform to ONNX#1325

Merged
fmassa merged 7 commits intopytorch:masterfrom
lara-hdr:lahaidar/onnx_transform_img
Sep 17, 2019
Merged

Support Exporting GeneralizedRCNNTransform to ONNX#1325
fmassa merged 7 commits intopytorch:masterfrom
lara-hdr:lahaidar/onnx_transform_img

Conversation

@lara-hdr
Copy link
Copy Markdown
Contributor

Modifications to GeneralizedRCNNTransform to export the image preprocessing (batch_imgs).

The dded test is disabled until Resize is implemented for opset 11 in ONNX Runtime (for now interpolate with bilinear mode is not well supported in PyTorch master, so the test will fail. I tested locally the changes in this PR by changing 'bilinear' mode to 'nearest' (without align_corners) and matching numbers with ORT and analysing the exported model).

Copy link
Copy Markdown
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

I have some inline comments, let me know what you think

@codecov-io
Copy link
Copy Markdown

codecov-io commented Sep 11, 2019

Codecov Report

Merging #1325 into master will decrease coverage by 0.18%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1325      +/-   ##
==========================================
- Coverage   65.77%   65.58%   -0.19%     
==========================================
  Files          75       75              
  Lines        5791     5818      +27     
  Branches      887      892       +5     
==========================================
+ Hits         3809     3816       +7     
- Misses       1716     1735      +19     
- Partials      266      267       +1
Impacted Files Coverage Δ
torchvision/__init__.py 75% <100%> (+4.41%) ⬆️
torchvision/models/detection/transform.py 66.92% <25.92%> (-11.38%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8b830f...dfc6274. Read the comment docs.

Copy link
Copy Markdown
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

This is almost good to merge, just one minor comment.

Also, I have a question in the comments, which I'd like to get your thoughts on.

Copy link
Copy Markdown
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Thanks!

@fmassa fmassa merged commit d4392a8 into pytorch:master Sep 17, 2019
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