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
  • Loading branch information
LuukvandenBent committed Nov 29, 2023
1 parent 8b19586 commit 9c50411
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 9c50411

Please sign in to comment.