open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
28.48k stars 9.28k forks source link

About iou,AP,Recall #10522

Open hsp2454 opened 1 year ago

hsp2454 commented 1 year ago

Please ask me how to output AP and Recall in iou for 0.5 and 0.75 when I run faster rcnn with coco data, I can only output AP using test.py, and the range of R output is 0.5-0.95.

hsp2454 commented 1 year ago

Can anyone answer this question?

Jaxys10 commented 1 year ago

same question.

koshinryuu commented 11 months ago

same question, any solution?

mujiubai commented 3 months ago

I find a direct method to get recall of special iou. change the function _summarize in python_dir/site-packages/pycocotools/cocoeval.py, change the code "stats[6] = _summarize(0, maxDets=self.params.maxDets[0])" to "stats[6] = _summarize(0, iouThr=.5, maxDets=self.params.maxDets[0])".