__yolov5+deepsort+slowfast win部署

OzTaking發表於2024-07-23

執行程式報錯:

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

相關文章