how to add classes prediction #1478
-
Hello, when i use my own dataset to train maskrcnn, i need to predict the class of every box and the num of classes is 7. I have done several changes as below:
and my dataset label is : {"images": [{"height": 1040, "width": 585, "id": 1, "file_name": "/data_local/ks/dataset/ks2/test/15e7837581784d6cba52e0441e059ba2.jpg"}], my train config is: log_config = dict(interval=5, hooks=[dict(type='TextLoggerHook')]) my train log is: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
MMOCR assumes the number of classes to be always one, and therefore it won't even be considering the object labels during evaluation. It's actually straightforward to use MMDetection's maskrcnn, as MMOCR's is adapted from theirs. And their evaluation metric considers multiple labels as well. https://github.com/open-mmlab/mmdetection/tree/3.x/configs/mask_rcnn |
Beta Was this translation helpful? Give feedback.
-
so what is difference between maskrcnn in MMOCCR and MMDetection in class prediction? If I want to use maskrcnn in MMOCR to predict classes, what else I need to do to produce right class prediction? Actually, I can ignore the evaluation process. I just want to get a model which can predict right class of the object in image when I use the model in my application. |
Beta Was this translation helpful? Give feedback.
MMOCR assumes the number of classes to be always one, and therefore it won't even be considering the object labels during evaluation.
It's actually straightforward to use MMDetection's maskrcnn, as MMOCR's is adapted from theirs. And their evaluation metric considers multiple labels as well.
https://github.com/open-mmlab/mmdetection/tree/3.x/configs/mask_rcnn