Skip to content

Commit

Permalink
Fix mask dimensions mismatch in rtmdet-ins models after exporting to …
Browse files Browse the repository at this point in the history
…onnx (#2574)
  • Loading branch information
LuukvandenBent authored Nov 30, 2023
1 parent 8b19586 commit db73d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmdeploy/mmcv/ops/nms.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def _multiclass_nms_single(boxes: Tensor,
if pre_top_k > 0:
bbox_index = pre_topk_inds[None, box_inds]
if keep_top_k > 0:
bbox_index = bbox_index[:, topk_inds[:-1]]
bbox_index = bbox_index[:, topk_inds]
return dets, labels, bbox_index
else:
return dets, labels
Expand Down

0 comments on commit db73d55

Please sign in to comment.