Skip to content

Commit

Permalink
fix box error in h2rbox_head.py (#881)
Browse files Browse the repository at this point in the history
There seems to be a lack of indentation, resulting in an assignment bug when square classes are not processed.
  • Loading branch information
Li-Qingyun authored Jun 20, 2023
1 parent a860946 commit 4aae1fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmrotate/models/dense_heads/h2rbox_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,5 +703,5 @@ def _predict_by_feat_single(self,
inds = results.labels == id
bboxes[inds, :] = hbox2rbox(rbox2hbox(bboxes[inds, :]))

results.bboxes = RotatedBoxes(bboxes)
results.bboxes = RotatedBoxes(bboxes)
return results

0 comments on commit 4aae1fc

Please sign in to comment.