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 13, 2021
1 parent 43699a2 commit c9f4297
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 c9f4297

Please sign in to comment.