Fix type mismatch in ConfusionMatrix default parameter (#23138)
This commit is contained in:
parent
779b4319fa
commit
cf29418918
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user