You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if there is any way to export the YOLO-NAS model to onnx with dynamic image size axes and then convert to TensrRT with dynamic shapes (if needed I can exclude pre and post processing from the onnx)
Basically currently I am using model.predict(img, skip_image_resizing=True) and I would like to have something like this but for onnx/TensorRt.
Versions
No response
The text was updated successfully, but these errors were encountered:
The way export currently implemented, exported ONNX graph has static shapes and hence cannot take dynamic input. However it should be possible in theory to export it as dynamic by manually editing the logic of export code and specifying dynamic axis attributes here and there when the model is exported.
One should be really careful with nms sub-graph that is attached to the main model.
💡 Your Question
Hello,
I was wondering if there is any way to export the YOLO-NAS model to onnx with dynamic image size axes and then convert to TensrRT with dynamic shapes (if needed I can exclude pre and post processing from the onnx)
Basically currently I am using
model.predict(img, skip_image_resizing=True)
and I would like to have something like this but for onnx/TensorRt.Versions
No response
The text was updated successfully, but these errors were encountered: