TensorRT-CenterNet icon indicating copy to clipboard operation
TensorRT-CenterNet copied to clipboard

About the hg model transfer error

Open Duffyxx opened this issue 6 years ago • 1 comments

Hello, I'm trying to transfer hg model from torch to tensorrt and find your code, when I transfer hg model from onnx to TensorRT by onnx2trt tools, get error of

[8] Assertion failed: scales_input.is_weights()

and follow your step to build engine, get error of

[libprotobuf WARNING /home/d/storage/TensorRT/build/third_party.protobuf/src/third_party.protobuf/src/google/protobuf/io/coded_stream.cc:604] Reading dangerously large protocol message.  If the message turns out to be larger than 2147483647 bytes, parsing will be halted for security reasons.  To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h.
[libprotobuf WARNING /home/d/storage/TensorRT/build/third_party.protobuf/src/third_party.protobuf/src/google/protobuf/io/coded_stream.cc:81] The total number of bytes read was 765786980
Segmentation fault (core dumped)

Do you know how to solve this? Thanks.

Duffyxx avatar Jan 10 '20 02:01 Duffyxx

emmmm.... I tried the other arch and find the same error when I using dla model

./buildEngine -i centernet.onnx -o centernet.engine
----------------------------------------------------------------
Input filename:   centernet.onnx
ONNX IR version:  0.0.4
Opset version:    9
Producer name:    pytorch
Producer version: 1.2
Domain:           
Model version:    0
Doc string:       
----------------------------------------------------------------
Segmentation fault (core dumped)

Duffyxx avatar Jan 10 '20 03:01 Duffyxx