Skip to content

Commit e1523c8

Browse files
authored
1 parent 8d14ae1 commit e1523c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/anomalib/metrics/min_max.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def update(self, predictions: torch.Tensor, *args, **kwargs) -> None:
8585
del args, kwargs # These variables are not used.
8686

8787
self.min = torch.min(self.min, torch.min(predictions))
88-
self.max = torch.max(self.min, torch.max(predictions))
88+
self.max = torch.max(self.max, torch.max(predictions))
8989

9090
def compute(self) -> tuple[torch.Tensor, torch.Tensor]:
9191
"""Compute final minimum and maximum values.

0 commit comments

Comments
 (0)