Description
I am trying to convert RetinaNet ResNet 18 model available in the README of the follwing REPO:
However, I get an error of “Segmentation Fault” when converting the pth file to engine.plan file
- I downloaded the Resnet 18 and Resnet 34 pth models available in the README.md of this Repo GitHub - NVIDIA/retinanet-examples: Fast and accurate object detection with end-to-end GPU optimization
- I went through the list of commands to start the ODTK docker, namely:
git clone https://github.com/nvidia/retinanet-examples
docker build -t odtk:latest retinanet-examples/
docker run --gpus all --rm --ipc=host -it -v /home/vast/retinanet:/workspace/model odtk:latest
- Then ran the following command inside the docker in the /workspace/model directory:
odtk export retinanet_rn18fpn.pth engine.plan
- I get an error here:
Loading model from retinanet_rn18fpn.pth...
model: RetinaNet
backbone: ResNet18FPN
classes: 80, anchors: 9
Exporting to ONNX...
Building FP16 core model...
Segmentation fault (core dumped)
How to debug this error?
Environment
TensorRT Version: 7.2.2
GPU Type: M60 Tesla
Nvidia Driver Version:
CUDA Version: 11.2
CUDNN Version:
Operating System + Version: Ubuntu
Python Version (if applicable): 3.6
TensorFlow Version (if applicable):
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag): Built docker image using the following repo: GitHub - NVIDIA/retinanet-examples: Fast and accurate object detection with end-to-end GPU optimization