RichardoMrMu / yolov5-deepsort-tensorrt

A c++ implementation of yolov5 and deepsort
GNU General Public License v3.0
435 stars 104 forks source link

请问我在运行yolosort时遇到这个问题怎么回事 #35

Open JinD123 opened 2 years ago

JinD123 commented 2 years ago

D:\srtp1\yolov5-deepsort-tensorrt-main\Release>yolosort yolov5_trt_create ... yolov5_trt_create cuda engine... [04/10/2022-19:16:32] [W] [TRT] Current optimization profile is: 0. Please ensure there are no enqueued operations pending in this context prior to switching profiles yolov5_trt_create buffer ... yolov5_trt_create stream ... yolov5_trt_create done ... create yolov5-trt , instance = 000002EE1C5D80C0 [04/10/2022-19:16:32] [E] [TRT] C:\source\rtSafe\coreReadArchive.cpp (55) - Serialization Error in nvinfer1::rt::CoreReadArchive::verifyHeader: 0 (Length in header does not match remaining archive length) [04/10/2022-19:16:32] [E] [TRT] INVALID_STATE: Unknown exception [04/10/2022-19:16:32] [E] [TRT] INVALID_CONFIG: Deserialize the cuda engine failed.

RichardoMrMu commented 2 years ago

请确定https://github.com/RichardoMrMu/yolov5-deepsort-tensorrt/blob/985e83196fb2d84f814f35518b2f9b30ceb64ea0/src/main.cpp#L21 是否是正确的路径

JinD123 commented 2 years ago
char* yolo_engine = "D:/srtp1/yolov5-deepsort-tensorrt-main/engine/yolov5s.engine";
char* sort_engine = "D:/srtp1/yolov5-deepsort-tensorrt-main/engine/deepsort.engine";

这是我的路径名称,我感觉是对的

JinD123 commented 2 years ago

image

liuxiaoxiao666 commented 2 years ago

请问你这个问题解决了吗

Mithranda commented 2 years ago

你的tensorRT版本是8以上吗?我觉得应该是一类问题