xuebinqin / BASNet

Code for CVPR 2019 paper. BASNet: Boundary-Aware Salient Object Detection
MIT License
1.37k stars 250 forks source link

TensorRT model import error #17

Closed mahendraBabuHari closed 4 years ago

mahendraBabuHari commented 5 years ago

Am trying to use TensorRT to speed up the inference. I converted my model trained from scratch to ONNX to feed to TensorRT. But TensorRT is throwing this error while parsing the model,

While parsing node number 186 [Gather]: ERROR: onnx2trt_utils.hpp:277 In function convert_axis: [8] Assertion failed: axis >= 0 && axis < nbDims [E] Unable to parse ONNX model file: ../data/int8_api/basnet.onnx

Any pointers on how to address this?

Thanks.

KanchanIIT commented 4 years ago

Hi @mahendraBabuHari, did you trained the model from scratch in ONNX or converted the trained model in PyTorch to ONNX?

xuebinqin commented 4 years ago

Sorry, We didn’t try that way.

On Nov 3, 2019, at 10:13 PM, Kanchan Sarkar notifications@github.com wrote:

Hi @mahendraBabuHari, did you trained the model from scratch in ONNX or converted the trained model in PyTorch to ONNX?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

mahendraBabuHari commented 4 years ago

Hi @mahendraBabuHari, did you trained the model from scratch in ONNX or converted the trained model in PyTorch to ONNX?

Converted the trained model in PyTorch to ONNX.

HaoTang1 commented 3 years ago

@mahendraBabuHari Were you able to get basnet working in TensorRT? If so can you explain the steps you took?

I'm trying to do the same but can't find any example of salient object detection in TensorRT.

Thanks.