Hello everyone,
I am facing a problem when trying to convert a trained YOLO model (best.pt
) to TensorRT format (best.trt
).
Steps taken:
- pytorch to onnx conversion
- The conversion to ONNX seems to work without problems, generating the best.onnx file.
- I then tried to convert the ONNX file to TensorRT using Python scripting
Problem:
- The process seems to crash when calling
builder.build_engine(network, config)
, and the script keeps running for hours without progress.
Additional information:
*GPU: NVIDIA L40S with 48GB VRAM.
- Driver: 566.03
- CUDA: 12.7
- TensorRT: 10.6.0
- Operating system: Windows 11
- Environment: Python 3.10.15
here are the image of the process