Skip to content

Commit 6587cac

Browse files
Update src/anomalib/cli/cli.py
Co-authored-by: Ashwin Vaidya <[email protected]>
1 parent 7dbb983 commit 6587cac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/anomalib/cli/cli.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,11 @@ def add_arguments_to_parser(self, parser: ArgumentParser) -> None:
143143

144144
parser.add_function_arguments(get_normalization_callback, "normalization")
145145
parser.add_argument("--task", type=TaskType | str, default=TaskType.SEGMENTATION)
146-
parser.add_argument("--metrics.image", type=list[str] | str | None, default=["F1Score", "AUROC"])
146+
parser.add_argument(
147+
"--metrics.image",
148+
type=list[str] | str | dict[str, dict[str, Any]] | None,
149+
default=["F1Score", "AUROC"],
150+
)
147151
parser.add_argument(
148152
"--metrics.pixel",
149153
type=list[str] | str | dict[str, dict[str, Any]] | None,

0 commit comments

Comments
 (0)