DeepStream-Yolo icon indicating copy to clipboard operation
DeepStream-Yolo copied to clipboard

Deepstream-5.0/5.1

Open HeeebsInc opened this issue 2 years ago • 3 comments

I have been a long time user of this repo and recently noticed that you do not support Deesptream 5.1 anymore? Would it be possible to create a branch with the old code that supports deepstream 5.1 and cuda 11.1?

When trying to build this in Deepstream-5.1, I get the following error

g++ -c  -o nvdsinfer_yolo_engine.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I/opt/nvidia/deepstream/deepstream/sources/includes -I/usr/local/cuda-11.1/include nvdsinfer_yolo_engine.cpp
In file included from nvdsinfer_yolo_engine.cpp:28:0:
yoloPlugins.h:90:13: error: 'int32_t YoloLayer::enqueue(int, const void* const*, void* const*, void*, cudaStream_t)' marked 'override', but does not override
     int32_t enqueue (
             ^~~~~~~
yoloPlugins.h: In member function 'virtual nvinfer1::IPluginV2* YoloLayerPluginCreator::deserializePlugin(const char*, const void*, size_t)':
yoloPlugins.h:150:54: error: invalid new-expression of abstract class type 'YoloLayer'
         return new YoloLayer(serialData, serialLength);
                                                      ^
yoloPlugins.h:57:7: note:   because the following virtual functions are pure within 'YoloLayer':
 class YoloLayer : public nvinfer1::IPluginV2
       ^~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/NvInferRuntime.h:59:0,
                 from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
                 from /usr/include/x86_64-linux-gnu/NvCaffeParser.h:53,
                 from /opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer_custom_impl.h:128,
                 from nvdsinfer_yolo_engine.cpp:26:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:560:21: note:      virtual int32_t nvinfer1::IPluginV2::enqueue(int32_t, const void* const*, void**, void*, cudaStream_t)
     virtual int32_t enqueue(int32_t batchSize, const void* const* inputs, void** outputs, void* workspace,
                     ^~~~~~~
Makefile:91: recipe for target 'nvdsinfer_yolo_engine.o' failed
make: *** [nvdsinfer_yolo_engine.o] Error 1

Any help would be appreciated. This repo has been a savior to me in the past so I really appreciate everything you do for the community!

HeeebsInc avatar Aug 03 '22 16:08 HeeebsInc

I will try to add that in the future.

marcoslucianops avatar Aug 10 '22 00:08 marcoslucianops

Hello, Any updates regarding @HeeebsInc 's suggestion. Many thanks.

Emirismail avatar Aug 29 '22 11:08 Emirismail

Not yet, sorry.

marcoslucianops avatar Sep 23 '22 13:09 marcoslucianops

Added support for DeepStream 5.1.

marcoslucianops avatar May 31 '23 19:05 marcoslucianops