wang-xinyu / tensorrtx

Implementation of popular deep learning networks with TensorRT network definition API
MIT License
7.04k stars 1.78k forks source link

关于yolov8静态库的问题:[E] [TRT] 3: getPluginCreator could not find plugin: YoloLayer_TRT version: 1 #1542

Closed HWSQHL closed 4 days ago

HWSQHL commented 5 months ago

未编译成静态库时运行程序可以读取engine检测物体,当我将代码编译成静态库之后,反序列化engine文件时报错,找不到YoloLayer_TRT 插件,但是直接编译exe时能找到。 下面是报错详细信息:

[E] [TRT] 3: getPluginCreator could not find plugin: YoloLayer_TRT version: 1 [E] [TRT] 1: [pluginV2Runner.cpp::nvinfer1::rt::load::303] Error Code 1: Serialization (Serialization assertion creator failed.Cannot deserialize plugin since corresponding IPluginCreator not found in Plugin Registry) Assertion failed: *engine, file C:\Users\yolo\src\Yolov8Trt.cpp, line 61

wang-xinyu commented 5 months ago

静态库,也需要链接libmyplugins

stale[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.