Closed Ainecop closed 1 year ago
See the operator spec: https://github.com/onnx/onnx/blob/main/docs/Operators.md#nonmaxsuppression The third input (max_output_boxes_per_class) is int64 type, but your graph uses float.
conf_thres=torch.Tensor([0.3])
@tianleiwu Thank you for your response.
Describe the issue
Device Name: Jetson Xavier NX Developer Toolkit
I am trying to convert the yolov8m model to onnx which was successful. Then i wanted to add nms node to its graph the error I am facing is as follows:
[ONNXRuntimeError] : 10 : INVALID_GRAPH : Load model from best_nms.onnx failed:This is an invalid model. Type Error: Type 'tensor(float)' of input parameter (conf_thres) of operator (NonMaxSuppression) in node () is invalid.
To reproduce
The below code is how i converted my model to onnx:
The below is for error reproducibility
Urgency
This is an urgent issue as I am on a deadline.
Platform
Linux
OS Version
Ubuntu 20.08 Jetpack version 5.1.1
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
1.15.1
ONNX Runtime API
Python
Architecture
ARM64
Execution Provider
CUDA
Execution Provider Library Version
No response