np.isnan(result["map/iou=0.50:0.95/area=large/maxDets=100"]))
def test_area_specified(self):
if not optional_modules:
return
result = eval_detection_coco(self.pred_bboxes, self.pred_labels,
self.pred_scores,
self.gt_bboxes, self.gt_labels,
gt_areas=[[2048]]
After Change
np.isnan(result["map/iou=0.50:0.95/area=large/maxDets=100"]))
def test_area_specified(self):
if not available:
self.skipTest("pycocotools is not available")
result = eval_detection_coco(self.pred_bboxes, self.pred_labels,
self.pred_scores,
self.gt_bboxes, self.gt_labels,
gt_areas=[[2048]]