models icon indicating copy to clipboard operation
models copied to clipboard

Script to convert Mask R-CNN model to ONNX

Open FraPochetti opened this issue 4 years ago • 4 comments

Hi all, I am able to load and use your ONNX Mask R-CNN model following your very detailed instructions, which is great.

Given that, I was wondering if you could provide more details around the script you used to convert the original trained model to ONNX. I come from a PyTorch background and I am having hard times to get the official torchvision model exported correctly to ONNX, so I hoped you guys could share the code you used to do that (even if you didn't train the model in PyTorch in the first place). It would be super helpful!

Thanks a lot

FraPochetti avatar Jan 20 '21 08:01 FraPochetti

+1 for this.

Converting from PyTorch is possible but inference results don't match up exactly with Mask-RCNN (even with a batch size of 1), and it's hard to find some solid reference code for the export, so this would indeed be much appreciated!

rsomani95 avatar Jan 20 '21 09:01 rsomani95

@spandantiwari

ebarsoum avatar Jan 20 '21 16:01 ebarsoum

@FraPochetti Hi, Were you able to get this onnx model running for custom object ?

pra-dan avatar Aug 04 '21 09:08 pra-dan

@FraPochetti Hi, Were you able to get this onnx model running for custom object ?

Unfortunately not. I dropped it.

FraPochetti avatar Aug 04 '21 10:08 FraPochetti