Limit opset version to its minimum, 14
Browse files- yolo_nas_pose_to_onnx.py +2 -2
yolo_nas_pose_to_onnx.py
CHANGED
@@ -30,7 +30,7 @@ output_predictions_format=DetectionOutputFormatMode.FLAT_FORMAT
|
|
30 |
|
31 |
# NMS-related Setting
|
32 |
confidence_threshold=.15
|
33 |
-
nms_threshold=.
|
34 |
num_pre_nms_predictions=1000
|
35 |
max_predictions_per_image=10
|
36 |
|
@@ -172,7 +172,7 @@ for model_name in [Models.YOLO_NAS_POSE_L, Models.YOLO_NAS_POSE_M, Models.YOLO
|
|
172 |
#input_image_channels: Optional[int] = None,
|
173 |
#input_image_dtype: Optional[torch.dtype] = None,
|
174 |
max_predictions_per_image=max_predictions_per_image,
|
175 |
-
|
176 |
onnx_simplify=True,
|
177 |
#device: Optional[Union[torch.device, str]] = None,
|
178 |
output_predictions_format=output_predictions_format,
|
|
|
30 |
|
31 |
# NMS-related Setting
|
32 |
confidence_threshold=.15
|
33 |
+
nms_threshold=.2
|
34 |
num_pre_nms_predictions=1000
|
35 |
max_predictions_per_image=10
|
36 |
|
|
|
172 |
#input_image_channels: Optional[int] = None,
|
173 |
#input_image_dtype: Optional[torch.dtype] = None,
|
174 |
max_predictions_per_image=max_predictions_per_image,
|
175 |
+
onnx_export_kwargs={"opset_version":14},
|
176 |
onnx_simplify=True,
|
177 |
#device: Optional[Union[torch.device, str]] = None,
|
178 |
output_predictions_format=output_predictions_format,
|