-
Notifications
You must be signed in to change notification settings - Fork 679
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unexpected key pixel_metrics.AUPRO.fpr_limit (#1055)
* fix unexpected key pixel_metrics.AUPRO.fpr_limit Signed-off-by: FanJiangIntel <[email protected]> * load AUPRO before create_metric_collection Signed-off-by: FanJiangIntel <[email protected]> * code refine Signed-off-by: FanJiangIntel <[email protected]> * fix comment Signed-off-by: FanJiangIntel <[email protected]> * fix Signed-off-by: FanJiangIntel <[email protected]> * Support test Signed-off-by: Kang Wenjing <[email protected]> * Update test Signed-off-by: Kang Wenjing <[email protected]> * Update test Signed-off-by: Kang Wenjing <[email protected]> --------- Signed-off-by: FanJiangIntel <[email protected]> Signed-off-by: Kang Wenjing <[email protected]> Co-authored-by: FanJiangIntel <[email protected]> Co-authored-by: Samet Akcay <[email protected]>
- Loading branch information
1 parent
8a7f1d6
commit 66532fc
Showing
5 changed files
with
127 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
..._merge/utils/callbacks/metrics_configuration_callback/data/config-good-02-serialized.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
metrics: | ||
pixel: | ||
F1Score: | ||
class_path: torchmetrics.F1Score | ||
init_args: | ||
compute_on_cpu: true | ||
AUPRO: | ||
class_path: anomalib.utils.metrics.AUPRO | ||
init_args: | ||
compute_on_cpu: true | ||
image: | ||
F1Score: | ||
class_path: torchmetrics.F1Score | ||
init_args: | ||
compute_on_cpu: true | ||
AUROC: | ||
class_path: anomalib.utils.metrics.AUROC | ||
init_args: | ||
compute_on_cpu: true |
19 changes: 19 additions & 0 deletions
19
tests/pre_merge/utils/callbacks/metrics_configuration_callback/data/config-good-02.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
metrics: | ||
pixel: | ||
F1Score: | ||
class_path: torchmetrics.F1Score | ||
init_args: | ||
compute_on_cpu: true | ||
AUROC: | ||
class_path: anomalib.utils.metrics.AUROC | ||
init_args: | ||
compute_on_cpu: true | ||
image: | ||
F1Score: | ||
class_path: torchmetrics.F1Score | ||
init_args: | ||
compute_on_cpu: true | ||
AUROC: | ||
class_path: anomalib.utils.metrics.AUROC | ||
init_args: | ||
compute_on_cpu: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters