When you see the model on netron here you can see that it has Nx3x640x640 as input shapes and this means that you have a dynamic batch size because it has N So when running it using trtexec and change the batch size it will give me an error.
Looks like input node “images” do not have dynamic shape input(it’s defined as static input), that’s why it is working fine with batch size 1.
Please generate the ONNX model with dynamic shape input. You can also modify the ONNX model.
Thank you for your answer, if you look on netron I modified the ONNX model into dynamic shapes so input node “images” support Nx3x640x640 so N is a dynamic batch size. So normaly it should works.
Thank you for your response, I used an other methode I hard coded the input shapes in to Nx3x640x640 wich apparently is not the right methode to do it.
So I have to try two other methodes:
I will use this GiHub repo to download the ONNX model from pytorch using the script export.py you can add the flag --dynamic but when adding this option you will have indeed a dynamic ONNX model when verifiying in netron. But I had other errors in trtexec, I will share with you the error log as soon as possible after I run it on the Jetson AGX ORIN using trtexec.
I will change the Reshape to [-1, 3, 85, 20, 20] as you suggested to me.
Thank you very much for your help, I will keep you updated.
I used the GitHub repo here and add the --dynamic option to get the ONNX model in dynamic shapes, I verified the model on netron as well it is indeed dynamic shapes, you can verified as well.
But CUDA is indeed installed see below with nvcc -V :
NOTE :
I update the system as well as suggested after installing it using debian package here and finaly ran this command : $ sudo apt-get update sudo apt-get install tensorrt libcudnn8
Do I need to install CUDA from here I think it is the mix of version between cuDNN, CUDA and TensorRT because it was working fine before updating TensorRT to the latest version and I am using JetPack 5.0 DP see below the version of JetPack from this command : $ sudo apt-cache show nvidia-jetpack
This looks like setup related issue on the Jetson.
We recommend you to please open a new post regarding setup issue on Jetson related forum to get better help.