Segmentation fault when using “Resize“


When converting Mask-RCNN from onnx to trt trtexec , the segfault (‘Segmentation fault (core dumped)’) happened. I check the size of tensor before resize is (1,1,30,30) and target is (1, 1, 275, 442). I used code base of torchvision when implementing Mask-RCNN. Any help would much appreciated!


TensorRT Version:
GPU Type: 3060 Ti
Nvidia Driver Version: 530.30.02
CUDA Version: 12.1
CUDNN Version:
Operating System + Version: Ubuntu 20.04 LTS
Python Version (if applicable):
TensorFlow Version (if applicable):
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):

Relevant Files

Log of trtexec: LINK

Steps To Reproduce

./trtexec --onnx=maskrcnn.onnx --verbose

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:

  1. validating your model with the below snippet

import sys
import onnx
filename = yourONNXmodel
model = onnx.load(filename)
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