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

remove expand loop in bbox head to speed up #492

Merged
merged 2 commits into from
Apr 16, 2019
Merged

remove expand loop in bbox head to speed up #492

merged 2 commits into from
Apr 16, 2019

Conversation

yhcao6
Copy link
Collaborator

@yhcao6 yhcao6 commented Apr 14, 2019

Model Mem (GB) Time (iter/s)
Mask R50 FPN ori 4.0 0.542
Mask R50 FPN new 4.0 0.468

@@ -94,10 +94,16 @@ def loss(self,
cls_score, labels, label_weights, reduce=reduce)
losses['acc'] = accuracy(cls_score, labels)
if bbox_pred is not None:
pos_mask = labels > 0
Copy link
Member

Choose a reason for hiding this comment

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

It may be better to rename it as pos_inds.

@hellock hellock merged commit 777d5d4 into open-mmlab:master Apr 16, 2019
@hellock hellock mentioned this pull request Apr 27, 2019
JegernOUTT pushed a commit to JegernOUTT/mmdetection that referenced this pull request Nov 23, 2019
remove expand loop in bbox head to speed up
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