def validation_step(self, batch: Batch, *args, **kwargs) -> STEP_OUTPUT:
        """Perform validation by computing anomaly scores.

        Args:
            batch (Batch): Input batch containing images and metadata.
            *args: Variable length argument list.
            **kwargs: Arbitrary keyword arguments.

        Returns:
            STEP_OUTPUT: Dictionary containing predictions and batch info.
        """
        del args, kwargs  # These variables are not used.

        predictions = self.model(batch.image)
        return batch.update(**predictions._asdict())
Perform validation by computing anomaly scores.

        Args:
            batch (Batch): Input batch containing images and metadata.
            *args: Variable length argument list.
            **kwargs: Arbitrary keyword arguments.

        Returns:
            STEP_OUTPUT: Dictionary containing predictions and batch info.
        
src/anomalib/models/image/dfkde/lightning_model.py