Code 4: Internal Error (Engine deserialization failed)

I am trying to run yolov4 tensorrt with custom weights. I changed yolo_classes.py but this error shows up:
GPU: NVIDIA GeForce GTX 1650 Ti

python3 trt_yolo.py --video yolo/vid.mp4 -m yolov4

Hi,

We recommend you please refer to the official TensorRT sample to convert the Yolo model to TensorRT.
If you still face any issue, please share with us the issue repro ONNX model and trtexec --verbose logs for better debugging.

Thank you.