enazoe / yolo-tensorrt

TensorRT8.Support Yolov5n,s,m,l,x .darknet -> tensorrt. Yolov4 Yolov3 use raw darknet *.weights and *.cfg fils. If the wrapper is useful to you,please Star it.
MIT License
1.18k stars 313 forks source link

Error yolo-trt #72

Open xpeedster opened 3 years ago

xpeedster commented 3 years ago

Hi, I am a little bit new into this. I generated the trt engine as explained in the README, but I would like to know how to execute the example provided.

xpeedster commented 3 years ago

After building the engine, I run the yolo-trt and this error happens:

Loading TRT Engine... ERROR: coreReadArchive.cpp (55) - Serialization Error in verifyHeader: 0 (Length in header does not match remaining archive length) ERROR: INVALID_STATE: std::exception ERROR: INVALID_CONFIG: Deserialize the cuda engine failed. Loading Complete! yolo-trt: /home/nvidia/yolo-tensorrt/modules/yolo.cpp:100: Yolo::Yolo(const NetworkInfo&, const InferParams&): Assertion `m_Engine != nullptr' failed. Aborted (core dumped)

freeluojing123 commented 2 years ago

Have you solved the problem yet? I've also encountered this problem

xpeedster commented 2 years ago

No, I did not manage to solve it.

enazoe commented 2 years ago

@xpeedster @freeluojing123 check the version of cuda trt cudnn