Skip to content

Commit

Permalink
remove _saturation_config attribute from metric collection module
Browse files Browse the repository at this point in the history
Signed-off-by: Willy Fitra Hendria <[email protected]>
  • Loading branch information
willyfh committed Feb 10, 2024
1 parent ccef95c commit 2cdeb82
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/anomalib/metrics/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class AnomalibMetricCollection(MetricCollection):

def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
self._saturation_config: dict
self._update_called = False
self._threshold = 0.5

Expand All @@ -28,7 +27,6 @@ def set_threshold(self, threshold_value: float) -> None:

def set_saturation_config(self, saturation_config: dict) -> None:
"""Update the saturation config values for all metrics that have the saturation config attribute."""
self._saturation_config = saturation_config
for name, metric in self.items():
if hasattr(metric, "saturation_config"):
metric.saturation_config = saturation_config
Expand Down

0 comments on commit 2cdeb82

Please sign in to comment.