def METHOD_NAME(self, outputs):
    outs = []
    ys = []
    for o in outputs:
        outs.extend(o['outs'])
        ys.extend(o['ys'])
    num_class_ids = len(self.cfg.data.class_names)
    coco_eval = compute_coco_eval(outs, ys, num_class_ids)
    metrics = {'mAP': 0.0, 'mAP50': 0.0}
    if coco_eval is not None:
        coco_metrics = coco_eval.stats
        metrics = {'mAP': coco_metrics[0], 'mAP50': coco_metrics[1]}
    return metrics