__yolov5+deepsort+slowfast win部署

 

运行程序报错:

yolov5_trt_create  ...
yolov5_trt_create  cuda engine...
yolov5_trt_create  buffer ...
yolov5_trt_create  stream ...
yolov5_trt_create  done ...
create yolov5-trt , instance = 000001AFB3B05EC0
[07/19/2024-21:23:10] [E] [TRT] 1: [stdArchiveReader.cpp::nvinfer1::rt::StdArchiveReader::StdArchiveReader::54]
 Error Code 1: Serialization (Serialization assertion sizeRead == static_cast<uint64_t>(mEnd - mCurrent) failed.Size specified in header does not match archive size)
[07/19/2024-21:23:10] [E] [TRT] 4: [runtime.cpp::nvinfer1::Runtime::deserializeCudaEngine::50] 
Error Code 4: Internal Error (Engine deserialization failed.)

D:\__ai\__deepsort\__code\yolovDeepsortCpp_win\yolov5-deepsort-tensorrt\build\Release\yolosort.exe (进程 7420)已退出,代码为 -1073741819。
按任意键关闭此窗口. . .

【解决】
参考:
需要使用yolov5-v5 版本;

参考文章:

https://github.com/RichardoMrMu/yolov5-deepsort-tensorrt/issues/16

RichardoMrMu commented on Jan 11, 2022
请确定自己的tensorrtx版本是yolov5-v5版本的

上面报错使用的是yolov6 版本;

=============================
/d/__ai/__deepsort/__code/yolovDeepsortCpp_win/tensorrtx

$ git tag
yolov5-v1.0
yolov5-v2.0
yolov5-v3.0
yolov5-v3.1
yolov5-v4.0
yolov5-v5.0
yolov5-v6.0
yolov5-v6.2
yolov5v7.0

先提前拷贝已经修改的两个文件,否则提示无法切分支:
$ git checkout yolov5-v5.0
error: Your local changes to the following files would be overwritten by checkout:
yolov5/CMakeLists.txt
yolov5/common.hpp
Please commit your changes or stash them before you switch branches.
Aborting

 

posted @ 2024-07-23 09:35  OzTaking  阅读(4)  评论(0编辑  收藏  举报