SingleImageMetrics A repository to calculate mAP and F1-score for object detection Adopted from PyCOCOtools https://github.com/cocodataset/cocoapi/blob/master/PythonAPI/pycocotools/cocoeval.py