TensorRT icon indicating copy to clipboard operation
TensorRT copied to clipboard

RuntimeError: Failed to parse onnx

Open wahaha opened this issue 1 year ago • 2 comments

parser = trt.OnnxParser(network, trt_logger) parse_valid = parser.parse_from_file(onnx_model)

When I used the above two lines of code to parse the onnx model path with Chinese, I kept reporting error parsing failures. I would like to ask is this because tensorrt does not support the parsing of non-ASCII characters?

wahaha avatar Nov 07 '24 06:11 wahaha

TensorRT should not have problems parsing models with non-ASCII paths, so it's likely that errors exist in the model. Feel free to share the model if possible so that we could provide further help 😄

poweiw avatar Nov 08 '24 00:11 poweiw

end2end.zip Thank you very much for your answer! This is the onnx model I converted using deploy.py in mmdeploy. When the file path contains Chinese, there will be an error when parsed using tensorrt. Looking forward to your reply!

wahaha avatar Nov 12 '24 02:11 wahaha