self.gt_labels = (np.array(label) for label in data["gt_labels"])
def test_crowded(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_crowdeds=[[True]])
After Change
self.gt_labels = (np.array(label) for label in data["gt_labels"])
def test_crowded(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_crowdeds=[[True]])