Skip to content

Commit

Permalink
Fix lad repeatedly output warning message (#6584)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaAndroid authored Nov 24, 2021
1 parent d9697f3 commit 27862b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmdet/models/dense_heads/lad_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_label_assignment(self,
"""

featmap_sizes = [featmap.size()[-2:] for featmap in cls_scores]
assert len(featmap_sizes) == self.anchor_generator.num_levels
assert len(featmap_sizes) == self.prior_generator.num_levels

device = cls_scores[0].device
anchor_list, valid_flag_list = self.get_anchors(
Expand Down

0 comments on commit 27862b6

Please sign in to comment.