Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Failed to parse onnx #4240

Open
wahaha opened this issue Nov 7, 2024 · 2 comments
Open

RuntimeError: Failed to parse onnx #4240

wahaha opened this issue Nov 7, 2024 · 2 comments
Assignees
Labels
question Further information is requested triaged Issue has been triaged by maintainers

Comments

@wahaha
Copy link

wahaha commented Nov 7, 2024

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?

@poweiw
Copy link
Collaborator

poweiw commented Nov 8, 2024

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 poweiw added question Further information is requested triaged Issue has been triaged by maintainers labels Nov 8, 2024
@wahaha
Copy link
Author

wahaha commented Nov 12, 2024

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!

@poweiw poweiw self-assigned this Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested triaged Issue has been triaged by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants