amirstan_plugin icon indicating copy to clipboard operation
amirstan_plugin copied to clipboard

Plugin (version v0.5.0) not compatible with deepstream-5.0

Open xarauzo opened this issue 2 years ago • 0 comments

I have a deepstream pipeline running on deepstream-5.0 (on a docker container). So far, I have been working on Jetpack 4.4 (with the amirstan_plugin on the v0.2.0, and using the mmdet2trt tool also on v0.2.0). That has been working so far. All of this in a docker container, as I have said.

However when working on Jetpack 4.6, I use amirstan_plugin v0.5.0 and mmdet2trt v0.5.0 for converting the models to TensorRT. But when I try to create a docker container with DeepStream-5.0 and Amirstan_plugin v0.5.0, the compilation of the plugin fails, here you have the error I get:

[ 95%] Linking CXX static library ../../../lib/libtorchNMSPlugin_static.a
[ 95%] Built target torchNMSPlugin_static
[ 98%] Building CXX object src/plugin/CMakeFiles/amirstan_plugin.dir/InferPlugin.cpp.o
[ 98%] Building CXX object src/plugin/CMakeFiles/amirstan_plugin.dir/NvDsInferParseMmdet.cpp.o
/amirstan_plugin/src/plugin/NvDsInferParseMmdet.cpp:4:10: fatal error: nvdsinfer_custom_impl.h: No such file or directory
 #include "nvdsinfer_custom_impl.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
src/plugin/CMakeFiles/amirstan_plugin.dir/build.make:89: recipe for target 'src/plugin/CMakeFiles/amirstan_plugin.dir/NvDsInferParseMmdet.cpp.o' failed
make[2]: *** [src/plugin/CMakeFiles/amirstan_plugin.dir/NvDsInferParseMmdet.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:517: recipe for target 'src/plugin/CMakeFiles/amirstan_plugin.dir/all' failed
make[1]: *** [src/plugin/CMakeFiles/amirstan_plugin.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2
The command '/bin/sh -c git clone --depth=1 --branch v0.5.0 https://github.com/grimoire/amirstan_plugin.git /amirstan_plugin     && cd /amirstan_plugin     && git submodule update --init --progress --depth=1     && cd /amirstan_plugin     && mkdir build     && cd build     && cmake .. -DWITH_DEEPSTREAM=true -DTENSORRT_DIR=/usr/include/aarch64-linux-gnu     && make -j10' returned a non-zero code: 2

That happens when building the plugin with Deepstream support.

Is there, by any chance, a way of giving support to the newest version of the plugin (at least v0.5.0, I use that because of the TensorRT version of jetpack 4.6) to deepstream-5.0?

Thanks for your help

xarauzo avatar Oct 04 '22 13:10 xarauzo