torch2trt icon indicating copy to clipboard operation
torch2trt copied to clipboard

MaskRCNN

Open peasant98 opened this issue 5 years ago • 8 comments
trafficstars

Hello, is there support for MaskRCNN? I am using the torchvision.models.detection.maskrcnn_resnet50_fpn(pretrained=True) model, but get an error when trying to convert to torch2trt. Thanks!

I also get this:

Warning: Encountered known unsupported method torch.Tensor.__iter__ Warning: Encountered known unsupported method torch.Tensor.__iter__ Warning: Encountered known unsupported method torch.as_tensor Warning: Encountered known unsupported method torch.as_tensor

peasant98 avatar Dec 25 '19 07:12 peasant98

I also get an error of [TensorRT] ERROR: (Unnamed Layer* 1033) [ElementWise]: elementwise inputs must have same dimensions or follow broadcast rules (input dimensions were [1,256,2,2] and [1,2,2,76]). Are the plans to get torch2trt to work for this; and if not, what would be the steps for it? Thanks!

peasant98 avatar Dec 26 '19 06:12 peasant98

Hi, Did you solve the issue?

felipevw avatar Apr 02 '20 09:04 felipevw

Hi, no. I am using https://github.com/onnx/onnx-tensorrt

peasant98 avatar Apr 02 '20 16:04 peasant98

That's what I thought, but did you have to customize new layers or it was a plain and simple conversion Pytorch->Onnx->TensorRT?

felipevw avatar Apr 02 '20 16:04 felipevw

I didn't have to do that much work for conversion.

peasant98 avatar Apr 02 '20 21:04 peasant98

@felipevw @peasant98 Could you give link of any guidance for Pytorch->Onnx->TensorRT conversion?

DuyguSerbes avatar Nov 09 '21 15:11 DuyguSerbes

@DuyguSerbes Did you figure it out?

JunzheJosephZhu avatar Jan 16 '22 12:01 JunzheJosephZhu

any update?

isaacraf95 avatar Mar 07 '23 07:03 isaacraf95