I understand what you are saying about self.transform(image)
I have a dict defined in my dataloader here
def __getitem__(self, idx):

        image_name = os.path.join(self.__image_path, self.__image_names[idx])
        image = io.imread(image_name)
        joints = self.__mat_data[:-1, :, idx]
        sample = {'image': image, 'joints': joints}
        if self.transform:
            sample = self.transform(sample)
            img = sample['image']
            label = sample['landmarks']

        return sample


So when applying
train_transform = transforms.Compose([ transforms.ToPILImage(),
transforms.Resize((205, 205)),
transforms.RandomVerticalFlip(p=0.5),
transforms.RandomCrop((200, 200)),
transforms.ToTensor()
])

is there an option to apply self image transform in this command itself?