def run(self, task_id: int | None = None) -> list[Any]:
        """Run smoothing job.

        Args:
            task_id: Not used in this case.

        Returns:
            list[Any]: List of predictions.
        """
        del task_id  # not needed here

        logger.info("Starting seam smoothing.")

        for data in tqdm(self.predictions, desc="Seam smoothing"):
            # move to specified accelerator for faster execution
            data.anomaly_map = data.anomaly_map.to(self.accelerator)
            # smooth the anomaly map and take only region around seams delimited by seam_mask
            smoothed = self.blur(data.anomaly_map.unsqueeze(1))
            data.anomaly_map[:, self.seam_mask] = smoothed[:, 0, self.seam_mask]
            data.anomaly_map = data.anomaly_map.cpu()

        return self.predictions
Run smoothing job.

        Args:
            task_id: Not used in this case.

        Returns:
            list[Any]: List of predictions.
        
src/anomalib/pipelines/tiled_ensemble/components/smoothing.py