Open sun-lingyu opened 1 year ago
Has this bug been resolved?
Hello, I encountered the same issue. I was able to complete the conversion from pth to ONNX to TRT on my x86 PC, but I couldn't do it on the ARM-based Orin. I suspect that this issue might be related to the ARM version of ONNX, which might not be able to export a correct ONNX file. You can try copying the ONNX file exported from the PC to the ARM platform, as ONNX is architecture-independent.
Hi, I met the following error when executing the command
sh samples/bevformer/plugin/tiny/onnx2trt.sh -d 0
:It seems that the ScatterND is trying to falsely reshaping something...
My environment is slightly different with the author's recommendation. I am using TensorRT 8.5.2 instead of 8.5.1 since I am using a Jetson Orin which does not has a 8.5.1 version. My pytorch version is 1.12 and my CUDA version is 11.4.
Do you think this error is related to TensorRT version? I found the following bug fix of TensorRT 8.5.2 in TensorRT release note:
The ONNX parser recognizes the allowzero attribute on Reshape operations for opset 5 and higher, even though ONNX spec requires it only for opset 14 and higher. Setting this attribute to 1 can correct networks that are incorrect for empty tensors, and let TensorRT analyze the memory requirements for dynamic shapes more accurately.
Could this bug fix be related to my issue?Any help is much appreciated!