Skip to content
Merged
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions python/tvm/relax/frontend/onnx/onnx_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -4757,9 +4757,9 @@ def _impl_v10(cls, bb, inputs, attr, params):
_, param_value = params[1][var_name]
max_output_boxes_per_class = int(param_value.numpy().item())
else:
max_output_boxes_per_class = 100 # Default value
max_output_boxes_per_class = 0 # Default value
else:
max_output_boxes_per_class = 100 # Default value
max_output_boxes_per_class = 0 # Default value
Comment on lines +4760 to +4762
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The default value for max_output_boxes_per_class is updated to 0 here to align with the ONNX specification. However, AllClassNMS._impl_v1 (lines 4849 and 4851) still uses 100 as the default value. To maintain consistency across the ONNX frontend, AllClassNMS should also be updated to use 0 as the default value.


if iou_threshold is not None and isinstance(iou_threshold, relax.Constant):
iou_threshold = float(iou_threshold.data.numpy())
Expand Down
Loading