Exemple #1
0
 def eval_metrics(self):
     annotation_file = self._params.get('val_json_file', None)
     evaluator = coco_evaluator.COCOEvaluator(annotation_file=annotation_file,
                                              include_mask=False,
                                              need_rescale_bboxes=False)
     return coco_evaluator.MetricWrapper(evaluator)
Exemple #2
0
 def eval_metrics(self):
     annotation_file = self._params.get('val_json_file', None)
     evaluator = coco_evaluator.COCOEvaluator(
         annotation_file=annotation_file, include_mask=True)
     return coco_evaluator.MetricWrapper(evaluator)