Skip to content

Commit

Permalink
Merge pull request #114 from MendelXu/main
Browse files Browse the repository at this point in the history
fix the incompatible issue due to `mmdetection` code update.
  • Loading branch information
MendelXu authored Nov 23, 2021
2 parents 4c053b3 + a872c20 commit 150db3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssod/models/soft_teacher.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def rpn_loss(
"rpn_proposal", self.student.test_cfg.rpn
)
proposal_list = self.student.rpn_head.get_bboxes(
*rpn_out, img_metas, cfg=proposal_cfg
*rpn_out, img_metas=img_metas, cfg=proposal_cfg
)
log_image_with_boxes(
"rpn",
Expand Down Expand Up @@ -354,7 +354,7 @@ def extract_teacher_info(self, img, img_metas, proposals=None, **kwargs):
)
rpn_out = list(self.teacher.rpn_head(feat))
proposal_list = self.teacher.rpn_head.get_bboxes(
*rpn_out, img_metas, cfg=proposal_cfg
*rpn_out, img_metas=img_metas, cfg=proposal_cfg
)
else:
proposal_list = proposals
Expand Down

0 comments on commit 150db3b

Please sign in to comment.