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

Enable ONNX Test for MaskRcnn #1613

Merged
merged 1 commit into from
Dec 2, 2019

Conversation

lara-hdr
Copy link
Contributor

MaskRcnn should now be exportable to ONNX.

For more information on exporting this model, follow instructions in : #1555 (comment)

@lara-hdr lara-hdr changed the title enable mask rcnn test Merged Enable ONNX Test for MaskRcnn Nov 25, 2019
@lara-hdr lara-hdr changed the title Merged Enable ONNX Test for MaskRcnn Enable ONNX Test for MaskRcnn Nov 25, 2019
@codecov-io
Copy link

codecov-io commented Nov 25, 2019

Codecov Report

Merging #1613 into master will increase coverage by 0.06%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1613      +/-   ##
==========================================
+ Coverage   65.97%   66.03%   +0.06%     
==========================================
  Files          91       91              
  Lines        7229     7229              
  Branches     1095     1095              
==========================================
+ Hits         4769     4774       +5     
+ Misses       2153     2150       -3     
+ Partials      307      305       -2
Impacted Files Coverage Δ
torchvision/models/detection/mask_rcnn.py 89.83% <0%> (+8.47%) ⬆️

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 537f0df...e10f6d8. Read the comment docs.

Copy link
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 a lot!

This is good to merge, I'd just want to have your thoughts on the two comments.

def test_mask_rcnn(self):
images, test_images = self.get_test_images()

model = models.detection.mask_rcnn.maskrcnn_resnet50_fpn(pretrained=True)
model = models.detection.mask_rcnn.maskrcnn_resnet50_fpn(pretrained=True, min_size=200, max_size=300)
Copy link
Member

Choose a reason for hiding this comment

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

For a follow-up PR, do you think it would be possible to remove the need for downloading the pre-trained weights in the tests?

@@ -54,7 +54,7 @@ before_install:
- pip install typing
- |
if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then
pip install onnxruntime
pip install -q --user -i https://test.pypi.org/simple/ ort-nightly==1.0.0.dev1123
Copy link
Member

Choose a reason for hiding this comment

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

Do you have an idea when the new stable version of the onnxruntime will be available?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure, I will ask and let you know

@lara-hdr
Copy link
Contributor Author

lara-hdr commented Dec 2, 2019

@fmassa can we merge this?

@fmassa fmassa merged commit 5b1716a into pytorch:master Dec 2, 2019
fmassa pushed a commit to fmassa/vision-1 that referenced this pull request Jun 9, 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.

3 participants