Closed vampireacen closed 2 years ago
I use my environment to compile yolov5 and there is no error.
iic@iic-desktop:~/tensorrtx/yolov5$ mkdir aaa
iic@iic-desktop:~/tensorrtx/yolov5$ cd aaa/
iic@iic-desktop:~/tensorrtx/yolov5/aaa$ cmake ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found CUDA: /usr/local/cuda (found version "10.2")
-- Found OpenCV: /usr (found version "4.1.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/iic/tensorrtx/yolov5/aaa
iic@iic-desktop:~/tensorrtx/yolov5/aaa$ make
[ 16%] Building NVCC (Device) object CMakeFiles/myplugins.dir/myplugins_generated_yololayer.cu.o
/home/iic/tensorrtx/yolov5/yololayer.h(86): warning: function "nvinfer1::IPluginV2Ext::configurePlugin(const nvinfer1::Dims *, int32_t, const nvinfer1::Dims *, int32_t, const nvinfer1::DataType *, const nvinfer1::DataType *, const __nv_bool *, const __nv_bool *, nvinfer1::PluginFormat, int32_t)" is hidden by "nvinfer1::YoloLayerPlugin::configurePlugin" -- virtual function override intended?
/home/iic/tensorrtx/yolov5/yololayer.h(86): warning: function "nvinfer1::IPluginV2Ext::configurePlugin(const nvinfer1::Dims *, int32_t, const nvinfer1::Dims *, int32_t, const nvinfer1::DataType *, const nvinfer1::DataType *, const bool *, const bool *, nvinfer1::PluginFormat, int32_t)" is hidden by "nvinfer1::YoloLayerPlugin::configurePlugin" -- virtual function override intended?
Scanning dependencies of target myplugins
[ 33%] Linking CXX shared library libmyplugins.so
[ 33%] Built target myplugins
[ 50%] Building NVCC (Device) object CMakeFiles/yolov5.dir/yolov5_generated_preprocess.cu.o
/usr/include/opencv4/opencv2/stitching/detail/warpers.hpp(213): warning: overloaded virtual function "cv::detail::PlaneWarper::buildMaps" is only partially overridden in class "cv::detail::AffineWarper"
/usr/include/opencv4/opencv2/stitching/detail/warpers.hpp(213): warning: overloaded virtual function "cv::detail::PlaneWarper::warp" is only partially overridden in class "cv::detail::AffineWarper"
/usr/include/opencv4/opencv2/stitching/detail/blenders.hpp(100): warning: overloaded virtual function "cv::detail::Blender::prepare" is only partially overridden in class "cv::detail::FeatherBlender"
/usr/include/opencv4/opencv2/stitching/detail/blenders.hpp(127): warning: overloaded virtual function "cv::detail::Blender::prepare" is only partially overridden in class "cv::detail::MultiBandBlender"
/usr/include/opencv4/opencv2/stitching/detail/warpers.hpp(213): warning: overloaded virtual function "cv::detail::PlaneWarper::buildMaps" is only partially overridden in class "cv::detail::AffineWarper"
/usr/include/opencv4/opencv2/stitching/detail/warpers.hpp(213): warning: overloaded virtual function "cv::detail::PlaneWarper::warp" is only partially overridden in class "cv::detail::AffineWarper"
/usr/include/opencv4/opencv2/stitching/detail/blenders.hpp(100): warning: overloaded virtual function "cv::detail::Blender::prepare" is only partially overridden in class "cv::detail::FeatherBlender"
/usr/include/opencv4/opencv2/stitching/detail/blenders.hpp(127): warning: overloaded virtual function "cv::detail::Blender::prepare" is only partially overridden in class "cv::detail::MultiBandBlender"
Scanning dependencies of target yolov5
[ 66%] Building CXX object CMakeFiles/yolov5.dir/calibrator.cpp.o
[ 83%] Building CXX object CMakeFiles/yolov5.dir/yolov5.cpp.o
/home/iic/tensorrtx/yolov5/yolov5.cpp: In function ‘nvinfer1::ICudaEngine* build_engine(unsigned int, nvinfer1::IBuilder*, nvinfer1::IBuilderConfig*, nvinfer1::DataType, float&, float&, std::__cxx11::string&)’:
/home/iic/tensorrtx/yolov5/yolov5.cpp:112:75: warning: ‘nvinfer1::ICudaEngine* nvinfer1::IBuilder::buildEngineWithConfig(nvinfer1::INetworkDefinition&, nvinfer1::IBuilderConfig&)’ is deprecated [-Wdeprecated-declarations]
ICudaEngine* engine = builder->buildEngineWithConfig(*network, *config);
^
In file included from /home/iic/tensorrtx/yolov5/common.hpp:9:0,
from /home/iic/tensorrtx/yolov5/yolov5.cpp:6:
/usr/include/aarch64-linux-gnu/NvInfer.h:7990:43: note: declared here
TRT_DEPRECATED nvinfer1::ICudaEngine* buildEngineWithConfig(
^~~~~~~~~~~~~~~~~~~~~
/home/iic/tensorrtx/yolov5/yolov5.cpp:116:22: warning: ‘void nvinfer1::INetworkDefinition::destroy()’ is deprecated [-Wdeprecated-declarations]
network->destroy();
^
In file included from /home/iic/tensorrtx/yolov5/common.hpp:9:0,
from /home/iic/tensorrtx/yolov5/yolov5.cpp:6:
/usr/include/aarch64-linux-gnu/NvInfer.h:5856:25: note: declared here
TRT_DEPRECATED void destroy() noexcept
^~~~~~~
/home/iic/tensorrtx/yolov5/yolov5.cpp: In function ‘nvinfer1::ICudaEngine* build_engine_p6(unsigned int, nvinfer1::IBuilder*, nvinfer1::IBuilderConfig*, nvinfer1::DataType, float&, float&, std::__cxx11::string&)’:
/home/iic/tensorrtx/yolov5/yolov5.cpp:216:75: warning: ‘nvinfer1::ICudaEngine* nvinfer1::IBuilder::buildEngineWithConfig(nvinfer1::INetworkDefinition&, nvinfer1::IBuilderConfig&)’ is deprecated [-Wdeprecated-declarations]
ICudaEngine* engine = builder->buildEngineWithConfig(*network, *config);
^
In file included from /home/iic/tensorrtx/yolov5/common.hpp:9:0,
from /home/iic/tensorrtx/yolov5/yolov5.cpp:6:
/usr/include/aarch64-linux-gnu/NvInfer.h:7990:43: note: declared here
TRT_DEPRECATED nvinfer1::ICudaEngine* buildEngineWithConfig(
^~~~~~~~~~~~~~~~~~~~~
/home/iic/tensorrtx/yolov5/yolov5.cpp:220:22: warning: ‘void nvinfer1::INetworkDefinition::destroy()’ is deprecated [-Wdeprecated-declarations]
network->destroy();
^
In file included from /home/iic/tensorrtx/yolov5/common.hpp:9:0,
from /home/iic/tensorrtx/yolov5/yolov5.cpp:6:
/usr/include/aarch64-linux-gnu/NvInfer.h:5856:25: note: declared here
TRT_DEPRECATED void destroy() noexcept
^~~~~~~
/home/iic/tensorrtx/yolov5/yolov5.cpp: In function ‘void APIToModel(unsigned int, nvinfer1::IHostMemory**, bool&, float&, float&, std::__cxx11::string&)’:
/home/iic/tensorrtx/yolov5/yolov5.cpp:249:21: warning: ‘void nvinfer1::ICudaEngine::destroy()’ is deprecated [-Wdeprecated-declarations]
engine->destroy();
^
In file included from /usr/include/aarch64-linux-gnu/NvInfer.h:54:0,
from /home/iic/tensorrtx/yolov5/common.hpp:9,
from /home/iic/tensorrtx/yolov5/yolov5.cpp:6:
/usr/include/aarch64-linux-gnu/NvInferRuntime.h:1434:25: note: declared here
TRT_DEPRECATED void destroy() noexcept
^~~~~~~
/home/iic/tensorrtx/yolov5/yolov5.cpp:250:22: warning: ‘void nvinfer1::IBuilder::destroy()’ is deprecated [-Wdeprecated-declarations]
builder->destroy();
^
In file included from /home/iic/tensorrtx/yolov5/common.hpp:9:0,
from /home/iic/tensorrtx/yolov5/yolov5.cpp:6:
/usr/include/aarch64-linux-gnu/NvInfer.h:7929:25: note: declared here
TRT_DEPRECATED void destroy() noexcept
^~~~~~~
/home/iic/tensorrtx/yolov5/yolov5.cpp:251:21: warning: ‘void nvinfer1::IBuilderConfig::destroy()’ is deprecated [-Wdeprecated-declarations]
config->destroy();
^
In file included from /home/iic/tensorrtx/yolov5/common.hpp:9:0,
from /home/iic/tensorrtx/yolov5/yolov5.cpp:6:
/usr/include/aarch64-linux-gnu/NvInfer.h:7535:25: note: declared here
TRT_DEPRECATED void destroy() noexcept
^~~~~~~
/home/iic/tensorrtx/yolov5/yolov5.cpp: In function ‘int main(int, char**)’:
/home/iic/tensorrtx/yolov5/yolov5.cpp:326:30: warning: ‘void nvinfer1::IHostMemory::destroy()’ is deprecated [-Wdeprecated-declarations]
modelStream->destroy();
^
In file included from /usr/include/aarch64-linux-gnu/NvInfer.h:54:0,
from /home/iic/tensorrtx/yolov5/common.hpp:9,
from /home/iic/tensorrtx/yolov5/yolov5.cpp:6:
/usr/include/aarch64-linux-gnu/NvInferRuntime.h:199:25: note: declared here
TRT_DEPRECATED void destroy() noexcept
^~~~~~~
/home/iic/tensorrtx/yolov5/yolov5.cpp:431:22: warning: ‘void nvinfer1::IExecutionContext::destroy()’ is deprecated [-Wdeprecated-declarations]
context->destroy();
^
In file included from /usr/include/aarch64-linux-gnu/NvInfer.h:54:0,
from /home/iic/tensorrtx/yolov5/common.hpp:9,
from /home/iic/tensorrtx/yolov5/yolov5.cpp:6:
/usr/include/aarch64-linux-gnu/NvInferRuntime.h:1888:25: note: declared here
TRT_DEPRECATED void destroy() noexcept
^~~~~~~
/home/iic/tensorrtx/yolov5/yolov5.cpp:432:21: warning: ‘void nvinfer1::ICudaEngine::destroy()’ is deprecated [-Wdeprecated-declarations]
engine->destroy();
^
In file included from /usr/include/aarch64-linux-gnu/NvInfer.h:54:0,
from /home/iic/tensorrtx/yolov5/common.hpp:9,
from /home/iic/tensorrtx/yolov5/yolov5.cpp:6:
/usr/include/aarch64-linux-gnu/NvInferRuntime.h:1434:25: note: declared here
TRT_DEPRECATED void destroy() noexcept
^~~~~~~
/home/iic/tensorrtx/yolov5/yolov5.cpp:433:22: warning: ‘void nvinfer1::IRuntime::destroy()’ is deprecated [-Wdeprecated-declarations]
runtime->destroy();
^
In file included from /usr/include/aarch64-linux-gnu/NvInfer.h:54:0,
from /home/iic/tensorrtx/yolov5/common.hpp:9,
from /home/iic/tensorrtx/yolov5/yolov5.cpp:6:
/usr/include/aarch64-linux-gnu/NvInferRuntime.h:712:25: note: declared here
TRT_DEPRECATED void destroy() noexcept
^~~~~~~
[100%] Linking CXX executable yolov5
[100%] Built target yolov5
I need to use these two models in my project, but when I 'make' them after 'cmake ..', crnn reports an error but yolov5 is fine. Who can help me?
try tensorrt 7.x
try tensorrt 7.x
How to down tensorrt version to 7.x in jeston nano, I'm a beginner
@vampireacen That would need to re-flash a new jetpack. Or you can refer to yolov5, to migrate crnn from trt7 to trt8.
@vampireacen That would need to re-flash a new jetpack. Or you can refer to yolov5, to migrate crnn from trt7 to trt8.
Thanks a lot , I will try.
@vampireacen That would need to re-flash a new jetpack. Or you can refer to yolov5, to migrate crnn from trt7 to trt8.
Thanks a lot , I will try.
Did you solve the problem? I have the same error as yours.
@vampireacen That would need to re-flash a new jetpack. Or you can refer to yolov5, to migrate crnn from trt7 to trt8.
I use trt7 but it doesnt work. What else can i try
@AlexBoooM your opencv seems not properly installed
Env
About this repo
Your problem
make crnn error