Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mmrotate/core/bbox/assigners/convex_assigner.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def assign(self,
assigned_gt_inds = points.new_zeros((num_points, ), dtype=torch.long)
# stores the assigned gt dist (to this point) of each point
assigned_gt_dist = points.new_full((num_points, ), float('inf'))
points_range = torch.arange(points.shape[0])
points_range = torch.arange(points.shape[0],device=points.device)

for idx in range(num_gts):
gt_lvl = gt_bboxes_lvl[idx]
Expand Down