Skip to content

Commit

Permalink
fix bug (#756)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason <[email protected]>
  • Loading branch information
yeliang2258 and jiangjiajun authored May 26, 2022
1 parent ecb52a9 commit 0881fec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions paddle2onnx/legacy/op_mapper/detection/multiclass_nms.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ def opset_10(cls, graph, node, **kw):
outputs=num_class,
axis=0)
bbox_ids = []
if not isinstance(scores_list, list):
scores_list = [scores_list]
if not isinstance(bboxes_list, list):
bboxes_list = [bboxes_list]
for i in range(num_class):
bbox_id = cls.nms(graph,
node,
Expand Down

0 comments on commit 0881fec

Please sign in to comment.