-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cannot export MAISI to TensorRT with dynamic shape #8346
Comments
@borisfom for discussion |
Also the autoencoder has some issues with 512x512x512 input when try to export as TRT.
Error log:
It looks like that the 512x512x512 size images caused some intermediate results larger than the size of resize node. |
This unfortunately looks like a hard TensorRT limitation of 2G elements in tensor: |
Any chance we can work together with the TensorRT team about this one in the future release? |
Describe the bug
Cannot export the controlnet of MAISI to TensorRT given a dynamic shape input, which is common for the controlnet use case.
To Reproduce
Run the script under MONAI 1.4.1rc1 version
Expected behavior
Can export the controlnet to TensorRT with a dynamic input shape.
Error report
Environment
MONAI 1.4.1rc1
Ubuntu 20.04
Additional context
I think the root cause of this problem is that the ONNX model is generated using the tracing way which records a fix input size. So if we try to pass profiles with dyanmic shape inputs it won't work.
Also tried to use the dynamo/script export to export the model and the model cannot be exported to onnx through these ways.
The text was updated successfully, but these errors were encountered: