FeiYull / TensorRT-Alpha

🔥🔥🔥TensorRT for YOLOv8、YOLOv8-Pose、YOLOv8-Seg、YOLOv8-Cls、YOLOv7、YOLOv6、YOLOv5、YOLONAS......🚀🚀🚀CUDA IS ALL YOU NEED.🍎🍎🍎
GNU General Public License v2.0
1.28k stars 198 forks source link

Error when trying to export ONNX from python source code #4

Closed NicoleSherwood closed 1 year ago

NicoleSherwood commented 1 year ago

Hi, I am trying to export ONNX from the python source code provided in the TensorRT-Alpha project following the instructions, but I am encountering an error. The error message is as follows:

[ERROR] Unable to export model to ONNX format: <error message>

I have tried troubleshooting the issue by going through the instructions again and making sure all dependencies are installed, but the error persists. Any help would be greatly appreciated.

Steps to reproduce:

Environment:

OS: Windows 10
Framework: PyTorch
TensorRT version: 7.1.3
CUDA version: 10.2
Python version: 3.7

Thanks!

FeiYull commented 1 year ago

@NicoleSherwood hi,i guess you did not switch the training code based on tag or hash values, for example, steps are as follows: