diff --git a/ultralytics/utils/metrics.py b/ultralytics/utils/metrics.py index b819a942..56f792e9 100644 --- a/ultralytics/utils/metrics.py +++ b/ultralytics/utils/metrics.py @@ -315,7 +315,7 @@ class ConfusionMatrix(DataExportMixin): matches (dict): Contains the indices of ground truths and predictions categorized into TP, FP and FN. """ - def __init__(self, names: dict[int, str] = [], task: str = "detect", save_matches: bool = False): + def __init__(self, names: dict[int, str] = {}, task: str = "detect", save_matches: bool = False): """Initialize a ConfusionMatrix instance. Args: