Tegra users who are currently using DeepStream 1.5 can use this sample app as a reference and incorporate a similar pipeline in their inference plugins.
Sorry, I’m a bit confused about the environment where this new YOLO plugin can be used. The README file says it’s for Deepstream 2.0. Your post says that it’s for Jetson. However, Deepstream 2.0 is not yet available on the Jetson platform. hence my confusion.
In README.md:
Add absolute paths of images to be used for calibration in the calibration_images.txt file within the sources/gst-yoloplugin/yoloplugin_lib/data directory.
Could you elaborate on the required format of images for calibration? Sorry if this is a stupid question. Thanks.
Getting this error while compiling TRT-yolo app on Jetson-TX2
trt_utils.cpp: In function ‘nvinfer1::ILayer* netAddUpsample(int, std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&, std::vector<float>&, int&, nvinfer1::ITensor*, nvinfer1::INetworkDefinition*)’:
trt_utils.cpp:584:5: error: ‘IConstantLayer’ is not a member of ‘nvinfer1’
nvinfer1::IConstantLayer* preM = network->addConstant(preDims, pre);
^
trt_utils.cpp:584:31: error: ‘preM’ was not declared in this scope
nvinfer1::IConstantLayer* preM = network->addConstant(preDims, pre);
^
trt_utils.cpp:584:47: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addConstant’
nvinfer1::IConstantLayer* preM = network->addConstant(preDims, pre);
^
trt_utils.cpp:611:5: error: ‘IConstantLayer’ is not a member of ‘nvinfer1’
nvinfer1::IConstantLayer* post_m = network->addConstant(postDims, post);
^
trt_utils.cpp:611:31: error: ‘post_m’ was not declared in this scope
nvinfer1::IConstantLayer* post_m = network->addConstant(postDims, post);
^
trt_utils.cpp:611:49: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addConstant’
nvinfer1::IConstantLayer* post_m = network->addConstant(postDims, post);
^
trt_utils.cpp:616:5: error: ‘IMatrixMultiplyLayer’ is not a member of ‘nvinfer1’
nvinfer1::IMatrixMultiplyLayer* mm1
^
trt_utils.cpp:616:37: error: ‘mm1’ was not declared in this scope
nvinfer1::IMatrixMultiplyLayer* mm1
^
trt_utils.cpp:617:20: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addMatrixMultiply’
= network->addMatrixMultiply(*preM->getOutput(0), false, *input, false)
^
trt_utils.cpp:621:5: error: ‘IMatrixMultiplyLayer’ is not a member of ‘nvinfer1’
nvinfer1::IMatrixMultiplyLayer* mm2
^
trt_utils.cpp:621:37: error: ‘mm2’ was not declared in this scope
nvinfer1::IMatrixMultiplyLayer* mm2
^
trt_utils.cpp:622:20: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addMatrixMultiply’
= network->addMatrixMultiply(*mm1->getOutput(0), false, *post_m->getOut
^
Makefile:62: recipe for target 'build/trt_utils.o' failed
make[1]: *** [build/trt_utils.o] Error 1
make[1]: Leaving directory '/home/nvidia/Desktop/deepstream-plugins/sources/gst-yoloplugin/yoloplugin_lib'
Makefile:68: recipe for target 'yoloplugin_lib/libyoloplugin.a' failed
make: *** [yoloplugin_lib/libyoloplugin.a] Error 2
g++ -I"/include" -I"/usr/local/cuda-9.0/include" -I “/usr/local/include” -c -o build/trt_utils.o -O2 -std=c++11 -lstdc++fs -fPIC -Wall -Wunused-function -Wunused-variable pkg-config --cflags glib-2.0 trt_utils.cpp
trt_utils.cpp: In function ‘nvinfer1::ILayer* netAddUpsample(int, std::map<std::__cxx11::basic_string, std::__cxx11::basic_string >&, std::vector&, int&, nvinfer1::ITensor*, nvinfer1::INetworkDefinition*)’:
trt_utils.cpp:584:5: error: ‘IConstantLayer’ is not a member of ‘nvinfer1’
nvinfer1::IConstantLayer* preM = network->addConstant(preDims, pre);
^
trt_utils.cpp:584:31: error: ‘preM’ was not declared in this scope
nvinfer1::IConstantLayer* preM = network->addConstant(preDims, pre);
^
trt_utils.cpp:584:47: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addConstant’
nvinfer1::IConstantLayer* preM = network->addConstant(preDims, pre);
^
trt_utils.cpp:611:5: error: ‘IConstantLayer’ is not a member of ‘nvinfer1’
nvinfer1::IConstantLayer* post_m = network->addConstant(postDims, post);
^
trt_utils.cpp:611:31: error: ‘post_m’ was not declared in this scope
nvinfer1::IConstantLayer* post_m = network->addConstant(postDims, post);
^
trt_utils.cpp:611:49: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addConstant’
nvinfer1::IConstantLayer* post_m = network->addConstant(postDims, post);
^
trt_utils.cpp:616:5: error: ‘IMatrixMultiplyLayer’ is not a member of ‘nvinfer1’
nvinfer1::IMatrixMultiplyLayer* mm1
^
trt_utils.cpp:616:37: error: ‘mm1’ was not declared in this scope
nvinfer1::IMatrixMultiplyLayer* mm1
^
trt_utils.cpp:617:20: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addMatrixMultiply’
= network->addMatrixMultiply(preM->getOutput(0), false, input, false);
^
trt_utils.cpp:621:5: error: ‘IMatrixMultiplyLayer’ is not a member of ‘nvinfer1’
nvinfer1::IMatrixMultiplyLayer mm2
^
trt_utils.cpp:621:37: error: ‘mm2’ was not declared in this scope
nvinfer1::IMatrixMultiplyLayer mm2
^
trt_utils.cpp:622:20: error: ‘class nvinfer1::INetworkDefinition’ has no member named ‘addMatrixMultiply’
= network->addMatrixMultiply(*mm1->getOutput(0), false, *post_m->getOutput(0), false);
^
Makefile:62: recipe for target ‘build/trt_utils.o’ failed
make: *** [build/trt_utils.o] Error 1
root@tx2:/usr/src/deepstream-plugins/sources/gst-yoloplugin/yoloplugin_lib# apt list --installed | grep -i tensor
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
grep NV_TENSORRT /usr/include/aarch64-linux-gnu/NvInfer.h | head -3 #define NV_TENSORRT_MAJOR 3 //!< TensorRT major version #define NV_TENSORRT_MINOR 0 //!< TensorRT minor version #define NV_TENSORRT_PATCH 4 //!< TensorRT patch version