Open apple2333cream opened 1 year ago
when I onnx2trt encountered an error,my trt version is 8.2.3
07/17/2023-10:52:53] [I] [TRT] [MemUsageSnapshot] End constructing builder kernel library: CPU 386 MiB, GPU 1514 MiB [07/17/2023-10:52:53] [I] Start parsing network model [libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format onnx2trt_onnx.ModelProto: 1:1: Invalid control characters encountered in text. [libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format onnx2trt_onnx.ModelProto: 1:12: Invalid control characters encountered in text. [libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format onnx2trt_onnx.ModelProto: 1:14: Message type "onnx2trt_onnx.ModelProto" has no field named "pytorch". [07/17/2023-10:52:53] [E] [TRT] ModelImporter.cpp:735: Failed to parse ONNX model from file: /home/wzp/yolov8_trt_infer/fasetsam_x_128.onnx [07/17/2023-10:52:53] [E] Failed to parse onnx file [07/17/2023-10:52:53] [I] Finish parsing network model [07/17/2023-10:52:53] [E] Parsing model failed [07/17/2023-10:52:53] [E] Failed to create engine from model. [07/17/2023-10:52:53] [E] Engine set up failed &&&& FAILED TensorRT.trtexec [TensorRT v8203] # /home/develop/thirdparty/tensorRT/TensorRT-8.2.3.0.Linux.x86_64-gnu.cuda-10.2.cudnn8.2/bin/trtexec --onnx=/home/wzp/yolov8_trt_infer/fasetsam_x_128.onnx --saveEngine=/home/wzp/yolov8_trt_infer/fasetsam_x_128.engine
I think your error in protobuf, where do you convert? I convert in docker: nvcr.io/nvidia/tritonserver:22.12-py3. You can try pull this docker version to convert. Break a leg!!!!
when I onnx2trt encountered an error,my trt version is 8.2.3
07/17/2023-10:52:53] [I] [TRT] [MemUsageSnapshot] End constructing builder kernel library: CPU 386 MiB, GPU 1514 MiB [07/17/2023-10:52:53] [I] Start parsing network model [libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format onnx2trt_onnx.ModelProto: 1:1: Invalid control characters encountered in text. [libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format onnx2trt_onnx.ModelProto: 1:12: Invalid control characters encountered in text. [libprotobuf ERROR google/protobuf/text_format.cc:298] Error parsing text-format onnx2trt_onnx.ModelProto: 1:14: Message type "onnx2trt_onnx.ModelProto" has no field named "pytorch". [07/17/2023-10:52:53] [E] [TRT] ModelImporter.cpp:735: Failed to parse ONNX model from file: /home/wzp/yolov8_trt_infer/fasetsam_x_128.onnx [07/17/2023-10:52:53] [E] Failed to parse onnx file [07/17/2023-10:52:53] [I] Finish parsing network model [07/17/2023-10:52:53] [E] Parsing model failed [07/17/2023-10:52:53] [E] Failed to create engine from model. [07/17/2023-10:52:53] [E] Engine set up failed &&&& FAILED TensorRT.trtexec [TensorRT v8203] # /home/develop/thirdparty/tensorRT/TensorRT-8.2.3.0.Linux.x86_64-gnu.cuda-10.2.cudnn8.2/bin/trtexec --onnx=/home/wzp/yolov8_trt_infer/fasetsam_x_128.onnx --saveEngine=/home/wzp/yolov8_trt_infer/fasetsam_x_128.engine