onnx / models

A collection of pre-trained, state-of-the-art models in the ONNX format
http://onnx.ai/models/
Apache License 2.0
7.79k stars 1.39k forks source link

MaskRCNN model inference labelid do not match to coco gt annotation #602

Open oriolorra opened 1 year ago

oriolorra commented 1 year ago

Ask a Question

Hi, I am trying to get mAP for COCO val 2017 dataset with this model MaskRCNN-12-int8.onnx. But, the category id does not match between the output and the gt annotations instances_val2017.json. For example, image 00000397133.jpg has some spoons that model gives id 46, but in annotations is id 50.

Question

What am I doing wrong?

Further information

Ubuntu 22.04 Python 3.10 onnxruntime 1.14.1

Is this issue related to a specific model?
Model name: MaskRCNN-12-int8.onnx Dataset: coco_val2017

assia855 commented 1 year ago

Hi @oriolorra did you manage to convert MaskRCNN from matterport repository to onnx?

oriolorra commented 1 year ago

No, I tried some months ago, and I failed again and again. I downloaded it from here https://github.com/onnx/models/tree/main/vision/object_detection_segmentation/mask-rcnn

assia855 commented 1 year ago

I'm struggling for weeks and I can't find a way