def on_validation_batch_end(
        self,
        outputs: Batch,
        batch: Any,  # noqa: ANN401
        batch_idx: int,
        dataloader_idx: int = 0,
    ) -> None:
        """Normalize outputs based on min/max values."""
        outputs.pred_score = self._normalize(outputs.pred_score)
        super().on_validation_batch_end(outputs, batch, batch_idx, dataloader_idx=dataloader_idx)
Normalize outputs based on min/max values.
src/anomalib/models/image/ganomaly/lightning_model.py