-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
[Feature] NMS update #4990
[Feature] NMS update #4990
Conversation
The order of score_factors seems inconsistent. |
Yes, filtering by
|
Is the order issue unavoidable if torch.onnx.is_in_onnx_export()? |
Hi @SemyonBevzuk , |
Hi @ZwwWayne, |
@SemyonBevzuk Hi, you could install pre-commit in your environment and it would check the code style before each commit. |
@SemyonBevzuk There may be multiple places where
|
Yes, I will look at other places, where |
With PR #4990 and open-mmlab/mmcv#957, I evaluated some released pytorch models.
|
ONNX Runtime performance with #4990 and open-mmlab/mmcv#957:
|
… in dynamic_clip_for_onnx() should be tensor for onnx.
@SemyonBevzuk Hi, since open-mmlab/mmcv#957 is merged. Could we fix conflicts and CI errors in this PR? Thanks a lot. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4990 +/- ##
==========================================
- Coverage 65.07% 65.05% -0.02%
==========================================
Files 275 275
Lines 21238 21249 +11
Branches 3532 3536 +4
==========================================
+ Hits 13820 13824 +4
- Misses 6669 6673 +4
- Partials 749 752 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@ZwwWayne @jshilong @hhaAndroid Hi, guys, do you have a conclusion and an agreed decision on this PR? |
Added "score_threshold" and "max_num" for the updated NMS.
This significantly improves performance in ONNX Runtime and reduces export times.
The table shows the average execution time of the NMS operation and the total inference time of the RetinaNet model:
This PR should be merged after merging this PR into mmcv.