Skip to content

Commit

Permalink
Merge pull request #1 from hzzh11856/type-convertor
Browse files Browse the repository at this point in the history
fix bug of "Expected object of scalar type Float but got scalar type Double for argument open-mmlab#2 'other'"
  • Loading branch information
hzzh11856 authored Oct 27, 2019
2 parents 82c533b + b1f4c34 commit 11fc275
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mmdet/core/bbox/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def bbox_overlaps(bboxes1, bboxes2, mode='iou', is_aligned=False):

assert mode in ['iou', 'iof']

bboxes2 = bboxes2.type(bboxes1.dtype)
rows = bboxes1.size(0)
cols = bboxes2.size(0)
if is_aligned:
Expand Down

0 comments on commit 11fc275

Please sign in to comment.