marcoslucianops / DeepStream-Yolo

NVIDIA DeepStream SDK 7.1 / 7.0 / 6.4 / 6.3 / 6.2 / 6.1.1 / 6.1 / 6.0.1 / 6.0 / 5.1 implementation for YOLO models
MIT License
1.49k stars 360 forks source link

error: ‘class nvinfer1::IBuilder’ has no member named ‘getLogger’ nvinfer1::IRuntime* runtime = nvinfer1::createInferRuntime(*builder->getLogger()); #584

Open Steven8686 opened 4 days ago

Steven8686 commented 4 days ago

Hi there! When I am following your guidance of deploying YOLOV5s model, when I run

make -C nvdsinfer_custom_impl_Yolo clean && make -C nvdsinfer_custom_impl_Yolo

It gives the error

make: Entering directory '/home/nvidia/DeepStream-Yolo/nvdsinfer_custom_impl_Yolo'
rm -rf libnvdsinfer_custom_impl_Yolo.so
rm -rf utils.o yolo.o nvdsinfer_yolo_engine.o nvdsparsebbox_Yolo.o yoloPlugins.o layers/convolutional_layer.o layers/batchnorm_layer.o layers/shortcut_layer.o layers/slice_layer.o layers/pooling_layer.o layers/reorg_layer.o layers/activation_layer.o layers/channels_layer.o layers/sam_layer.o layers/deconvolutional_layer.o layers/route_layer.o layers/upsample_layer.o layers/implicit_layer.o yoloForward_v2.o yoloForward.o yoloForward_nc.o nvdsparsebbox_Yolo_cuda.o
make: Leaving directory '/home/nvidia/DeepStream-Yolo/nvdsinfer_custom_impl_Yolo'
make: Entering directory '/home/nvidia/DeepStream-Yolo/nvdsinfer_custom_impl_Yolo'
g++ -c  -o utils.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I/opt/nvidia/deepstream/deepstream/sources/includes -I/usr/local/cuda-10.2/include utils.cpp
g++ -c  -o yolo.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I/opt/nvidia/deepstream/deepstream/sources/includes -I/usr/local/cuda-10.2/include yolo.cpp
yolo.cpp: In member function ‘nvinfer1::ICudaEngine* Yolo::createEngine(nvinfer1::IBuilder*, nvinfer1::IBuilderConfig*)’:
yolo.cpp:196:72: error: ‘class nvinfer1::IBuilder’ has no member named ‘getLogger’
   nvinfer1::IRuntime* runtime = nvinfer1::createInferRuntime(*builder->getLogger());
                                                                        ^~~~~~~~~
Makefile:86: recipe for target 'yolo.o' failed
make: *** [yolo.o] Error 1
make: Leaving directory '/home/nvidia/DeepStream-Yolo/nvdsinfer_custom_impl_Yolo'

My platform and env: Jetson 4.6, Ubuntu==16.04, CUDA==10.2, Deepstream==6.0.1 Tensorrt==8.0.1 And I am using your latest repo. How can I solve that problem? Thanks

marcoslucianops commented 2 days ago

I updated the repo with a fix, please check now.