Skip to content

Conversation

neginraoof
Copy link
Contributor

The code has two different flows in batched_nms function for images with detection, vs, images with no detection. In order to be able to export a model that supports both, we need to script this function.

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 for the fix!

Can you add a test case exercising this code-path?

…of/fixNoDetection

# Conflicts:
#	torchvision/models/detection/transform.py
@neginraoof neginraoof closed this Apr 21, 2020
@neginraoof neginraoof deleted the neraoof/fixNoDetection branch April 21, 2020 17:22
facebook-github-bot pushed a commit to pytorch/pytorch that referenced this pull request Apr 28, 2020
Summary:
These two ops are needed for torchvision model export. Since we're scripting a part of the code for dynamic export of models (in pytorch/vision#2052), these two changes are requited.
Pull Request resolved: #36501

Reviewed By: hl475

Differential Revision: D21260721

Pulled By: houseroad

fbshipit-source-id: 86d9d38665a4a36d22cec741012d976e5bd8d36b
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.

2 participants