text: Title: ONNX format is running too slowly on both GPU and CPU
  Body: ### Search before asking
  
  - [X] I have searched the YOLOv5 [issues](https://github.com/ultralytics/yolov5/issues) and found no similar bug report.
  
  
  ### YOLOv5 Component
  
  _No response_
  
  ### Bug
  
  I installed torch version 2.2.1+cu121, onnx 1.16, and onnxruntime-gpu
  Then, I exported the model using this command
  ![image](https://github.com/ultralytics/yolov5/assets/76497207/1b38a05e-e7ca-4c96-8d81-4147807e476f)
  and loaded it into a C++ code using OpenCV, but the inference is too slow. When I printed the time taken in inference it was the same for CPU and GPU.
  
  ### Environment
  
  _No response_
  
  ### Minimal Reproducible Example
  
  _No response_
  
  ### Additional
  
  _No response_
  
  ### Are you willing to submit a PR?
  
  - [ ] Yes I'd like to help by submitting a PR!