onnx-tensorrt
onnx-tensorrt copied to clipboard
Getting error in make
In file included from /home/danish/Downloads/danish/code/TF2/ModelConversion/onnx-tensorrt/ModelImporter.cpp:8:0:
/home/danish/Downloads/danish/code/TF2/ModelConversion/onnx-tensorrt/onnx_utils.hpp: In function ‘bool ParseFromFile_WAR(google::protobuf::Message*, const char*)’:
/home/danish/Downloads/danish/code/TF2/ModelConversion/onnx-tensorrt/onnx_utils.hpp:129:104: error: no matching function for call to ‘google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int, int)’
coded_input.SetTotalBytesLimit(std::numeric_limits
I installed protobuf as below: sudo apt-get install autoconf automake libtool curl make g++ unzip -y git clone https://github.com/google/protobuf.git cd protobuf git submodule update --init --recursive ./autogen.sh ./configure make -j8 make check sudo make install sudo ldconfig
Mahcine specs: Ubuntu: 18.04 TensorRT: 8.0.1.6
What version of protobuf are you using? You may have to use a lower version.
I'm having the same issue.
machine specs (JETSON AGX XAVIER): Ubuntu: 18.04 TensorRT: 8.0.1 Protobuf: 3.16.0
They changed this function in this version: https://github.com/protocolbuffers/protobuf/blob/92a7e778e7394386f413cec28d67a07630f784b1/src/google/protobuf/io/coded_stream.cc
Maybe you can change it like this: https://github.com/protocolbuffers/protobuf/blob/09354db1434859a31a3c81abebcc4018d42f2715/src/google/protobuf/io/coded_stream.cc
But in the old function "warning_threshold" is useless. I deleted all " std::numeric_limits::max() / 4"