Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yov5 5.0 When trying to build this in Deepstream-5.1, I get the following error #35

Open
JasonChao-yue opened this issue Dec 29, 2022 · 2 comments

Comments

@JasonChao-yue
Copy link

vdsinfer_custom_impl_Yolodcube-y@dcubey-desktop:/opt/nvidia/deepstream/deepstream-5.1/sources/objectDetector_Yolo/deepstream_yolov5/Yolov5-in-Deepstream-5.0-master/Deepstream 5.0/nvdsinfer_custom_impl_Yolo$ make -j6
g++ -c -o yolo.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I../includes -I/usr/local/cuda-10.2/include yolo.cpp
g++ -c -o yoloPlugins.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I../includes -I/usr/local/cuda-10.2/include yoloPlugins.cpp
In file included from yoloPlugins.cpp:23:0:
yoloPlugins.h:74:9: error: ‘int YoloLayerV3::enqueue(int, const void* const*, void* const*, void*, cudaStream_t)’ marked ‘override’, but does not override
int enqueue (
^~~~~~~
yoloPlugins.h: In member function ‘virtual nvinfer1::IPluginV2* YoloLayerV3PluginCreator::deserializePlugin(const char*, const void*, size_t)’:
yoloPlugins.h:122:56: error: invalid new-expression of abstract class type ‘YoloLayerV3’
return new YoloLayerV3(serialData, serialLength);
^
yoloPlugins.h:50:7: note: because the following virtual functions are pure within ‘YoloLayerV3’:
class YoloLayerV3 : public nvinfer1::IPluginV2
^~~~~~~~~~~
In file included from /usr/include/aarch64-linux-gnu/NvInferRuntime.h:59:0,
from /usr/include/aarch64-linux-gnu/NvInfer.h:53,
from /usr/include/aarch64-linux-gnu/NvInferPlugin.h:53,
from yoloPlugins.h:32,
from yoloPlugins.cpp:23:
/usr/include/aarch64-linux-gnu/NvInferRuntimeCommon.h:492:17: note: virtual int nvinfer1::IPluginV2::enqueue(int, const void* const*, void**, void*, cudaStream_t)
virtual int enqueue(int batchSize, const void* const* inputs, void** outputs, void* workspace, cudaStream_t stream) TRTNOEXCEPT = 0;
^~~~~~~
yoloPlugins.cpp: In member function ‘virtual nvinfer1::IPluginV2* YoloLayerV3::clone() const’:
yoloPlugins.cpp:124:65: error: invalid new-expression of abstract class type ‘YoloLayerV3’
return new YoloLayerV3 (m_NumBoxes, m_NumClasses, m_GridSize);
^
Makefile:51: recipe for target 'yoloPlugins.o' failed
make: *** [yoloPlugins.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from yolo.cpp:24:0:
yoloPlugins.h:74:9: error: ‘int YoloLayerV3::enqueue(int, const void* const*, void* const*, void*, cudaStream_t)’ marked ‘override’, but does not override
int enqueue (
^~~~~~~
yoloPlugins.h: In member function ‘virtual nvinfer1::IPluginV2* YoloLayerV3PluginCreator::deserializePlugin(const char*, const void*, size_t)’:
yoloPlugins.h:122:56: error: invalid new-expression of abstract class type ‘YoloLayerV3’
return new YoloLayerV3(serialData, serialLength);
^
yoloPlugins.h:50:7: note: because the following virtual functions are pure within ‘YoloLayerV3’:
class YoloLayerV3 : public nvinfer1::IPluginV2
^~~~~~~~~~~
In file included from /usr/include/aarch64-linux-gnu/NvInferRuntime.h:59:0,
from /usr/include/aarch64-linux-gnu/NvInfer.h:53,
from yolo.h:31,
from yolo.cpp:23:
/usr/include/aarch64-linux-gnu/NvInferRuntimeCommon.h:492:17: note: virtual int nvinfer1::IPluginV2::enqueue(int, const void* const*, void**, void*, cudaStream_t)
virtual int enqueue(int batchSize, const void* const* inputs, void** outputs, void* workspace, cudaStream_t stream) TRTNOEXCEPT = 0;
^~~~~~~
yolo.cpp: In member function ‘nvinfer1::ICudaEngine* Yolo::createEngine(nvinfer1::IBuilder*)’:
yolo.cpp:72:12: error: ‘virtual nvinfer1::IBuilderConfig::~IBuilderConfig()’ is protected within this context
delete config;
^~~~~~
In file included from yolo.h:31:0,
from yolo.cpp:23:
/usr/include/aarch64-linux-gnu/NvInfer.h:6692:13: note: declared protected here
virtual ~IBuilderConfig()
^
yolo.cpp: In member function ‘NvDsInferStatus Yolo::buildYoloNetwork(std::vector&, nvinfer1::INetworkDefinition&)’:
yolo.cpp:178:81: error: invalid new-expression of abstract class type ‘YoloLayerV3’
m_OutputTensors.at(outputTensorCount).gridSize);
^
Makefile:51: recipe for target 'yolo.o' failed
make: *** [yolo.o] Error 1

@JasonChao-yue
Copy link
Author

deepstream-app version 5.1.0
DeepStreamSDK 5.1.0
CUDA Driver Version 10.2
TensorRT Version 7.1

@kang88time
Copy link

Makefile cuda = 10.2
Makefile #yolo.cpp #yoloPlugins.cpp , make。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants