Skip to content

Commit

Permalink
Fix dtype bug in base_dense_head
Browse files Browse the repository at this point in the history
  • Loading branch information
shinya7y authored and ZwwWayne committed Dec 15, 2021
1 parent 16c682c commit 5612624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmdet/models/dense_heads/base_dense_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get_bboxes(self,
featmap_sizes = [cls_scores[i].shape[-2:] for i in range(num_levels)]
mlvl_priors = self.prior_generator.grid_priors(
featmap_sizes,
dtype=cls_scores[0].device,
dtype=cls_scores[0].dtype,
device=cls_scores[0].device)

result_list = []
Expand Down

0 comments on commit 5612624

Please sign in to comment.