Skip to content

Commit

Permalink
Fix kwargs parameter missing error in two_stage (open-mmlab#6256)
Browse files Browse the repository at this point in the history
  • Loading branch information
pingguokiller authored Oct 12, 2021
1 parent 7f9facc commit c44a058
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mmdet/models/detectors/two_stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ def forward_train(self,
gt_bboxes,
gt_labels=None,
gt_bboxes_ignore=gt_bboxes_ignore,
proposal_cfg=proposal_cfg)
proposal_cfg=proposal_cfg,
**kwargs)
losses.update(rpn_losses)
else:
proposal_list = proposals
Expand Down
3 changes: 2 additions & 1 deletion mmdet/models/roi_heads/standard_roi_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ def forward_train(self,
gt_bboxes,
gt_labels,
gt_bboxes_ignore=None,
gt_masks=None):
gt_masks=None,
**kwargs):
"""
Args:
x (list[Tensor]): list of multi-level img features.
Expand Down

0 comments on commit c44a058

Please sign in to comment.