I have pytorch model that crops 46x146 input to multiple 32x32 region and each region is fed to classifiers.
The (simplified) model is exported as “model_dummy.onnx” .
I checked the onnx file by the visualizer and
I confirmed that the onnx “Slice” operator is used and it has expected attributes (axis, starts, ends).
When I build the model by tensorRT on Jetson Xavier,
The debug output shows that slice operator outputs 1x1 regions instead of 32x32 regions.
The build script is “trt_runner_dummy.py” and the log file is “trt_runner_dummy.py.log”.
Part of the log is :
Hi,
Request you to share the ONNX model and the script if not shared already so that we can assist you better.
Alongside you can try few things:
validating your model with the below snippet
check_model.py
import sys
import onnx
filename = yourONNXmodel
model = onnx.load(filename)
onnx.checker.check_model(model).
2) Try running your model with trtexec command.
In case you are still facing issue, request you to share the trtexec “”–verbose"" log for further debugging
Thanks!