mmpose
mmpose copied to clipboard
change maxDet on evaluation
I think some of my test images may have multiple object bboxes more than 20, so maybe the maxDet=20 in evaluation process may make mAP lower.
Where can I change the maxDet for evaluation? Thanks!
Accumulating evaluation results... DONE (t=0.00s). Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets= 20 ] = 0.210 Average Precision (AP) @[ IoU=0.50 | area= all | maxDets= 20 ] = 0.468 Average Precision (AP) @[ IoU=0.75 | area= all | maxDets= 20 ] = 0.172 Average Precision (AP) @[ IoU=0.50:0.95 | area=medium | maxDets= 20 ] = 0.233 Average Precision (AP) @[ IoU=0.50:0.95 | area= large | maxDets= 20 ] = -1.000 Average Recall (AR) @[ IoU=0.50:0.95 | area= all | maxDets= 20 ] = 0.324 Average Recall (AR) @[ IoU=0.50 | area= all | maxDets= 20 ] = 0.579 Average Recall (AR) @[ IoU=0.75 | area= all | maxDets= 20 ] = 0.326 Average Recall (AR) @[ IoU=0.50:0.95 | area=medium | maxDets= 20 ] = 0.371 Average Recall (AR) @[ IoU=0.50:0.95 | area= large | maxDets= 20 ] = -1.000
You may need to modify the source code of xtcocotools. https://github.com/jin-s13/xtcocoapi/blob/e1052f3009702b74ece8aa58e3ef8b73d10467f2/xtcocotools/cocoeval.py#L669