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 Jul 18, 2022
1 parent 21a80ef commit 5c5431e
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 @@ -98,7 +98,7 @@ def get_results(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 5c5431e

Please sign in to comment.