def transform(self) -> Compose:
        """Get model's transform pipeline.

        Retrieves transforms from CLIP backbone and prepends ``ToPILImage`` transform
        since original transforms expect PIL images.

        Returns:
            Compose: Transform pipeline for preprocessing images.
        """
        transforms = copy(self._transform.transforms)
        transforms.insert(0, ToPILImage())
        return Compose(transforms)
Get model's transform pipeline.

        Retrieves transforms from CLIP backbone and prepends ``ToPILImage`` transform
        since original transforms expect PIL images.

        Returns:
            Compose: Transform pipeline for preprocessing images.
        
src/anomalib/models/image/winclip/torch_model.py