anomalib.utils.metrics.min_max

Module that tracks the min and max values of the observations in each batch.

Module Contents

Classes

MinMax

Track the min and max values of the observations in each batch.

class anomalib.utils.metrics.min_max.MinMax(**kwargs)[source]

Bases: torchmetrics.Metric

Track the min and max values of the observations in each batch.

update(predictions: torch.Tensor) None[source]

Update the min and max values.

compute() Tuple[torch.Tensor, torch.Tensor][source]

Return min and max values.