def _compute_normalization_statistics(self) -> None:
        """Compute min-max normalization statistics over the feature bank.

        Computes anomaly scores for all training features and updates the min-max
        statistics used for score normalization during inference.
        """
        training_scores = self.predict(self.memory_bank, normalize=False)
        self.min = torch.min(self.min, torch.min(training_scores))
        self.max = torch.max(self.min, torch.max(training_scores))
Compute min-max normalization statistics over the feature bank.

        Computes anomaly scores for all training features and updates the min-max
        statistics used for score normalization during inference.
        
src/anomalib/models/video/ai_vad/density.py