MAP

class easypl.metrics.detection.mean_average_precision.MAP(iou_thresholds: Optional[List[float]] = None, rec_thresholds: Optional[List[float]] = None, max_detection_thresholds: Optional[List[int]] = None, class_metrics: bool = False, **kwargs)

Wrapper for MeanAveragePrecision from torchmetrics.

iou_thresholds

Iou threshold/thresholds for boxes.

Type:

Optional[List[float]]

rec_thresholds

Recall thresholds for evaluation.

Type:

Optional[List[float]]

max_detection_thresholds

Thresholds on max detections per image.

Type:

Optional[List[int]]

class_metrics

Option to enable per-class metrics for mAP and mAR_100.

Type:

bool

kwargs

Torchmetrics Metric args.

reset()

This method automatically resets the metric state variables to their default value.