clipit icon indicating copy to clipboard operation
clipit copied to clipboard

Error while running `clipit.do_init(settings) `

Open hritikb27 opened this issue 2 years ago • 1 comments

213         if return_transform is not None:
    214             raise ValueError(
--> 215                 "`return_transform` is deprecated. Please access the transformation matrix with "
    216                 "`.transform_matrix`. For chained matrices, please use `AugmentationSequential`."
    217             )

ValueError: `return_transform` is deprecated. Please access the transformation matrix with `.transform_matrix`. For chained matrices, please use `AugmentationSequential`.

hritikb27 avatar Aug 15 '22 13:08 hritikb27

hey man I got the same error too and I was able to bypass it by using AugmentationSequential and adding all the auguments as parameters to the constructor. Like this: augmentations = AugmentationSequential(K.ColorJitter(hue=0.1, saturation=0.1, p=0.8), K.RandomResizedCrop(size=(self.cut_size,self.cut_size), scale=(0.1,0.75), ratio=(0.85,1.2), cropping_mode='resample', p=0.7), MyRandomPerspective(distortion_scale=0.40, p=0.7), K.RandomCrop(size=(self.cut_size,self.cut_size), p=1.0, cropping_mode="resample") )

But that will lead into naother issue where : batch1, transforms1 = self.augs_zoom(torch.cat(cutouts[:self.cutn_zoom], dim=0)) batch2, transforms2 = self.augs_wide(torch.cat(cutouts[self.cutn_zoom:], dim=0)) is calling for a variable as a method and it just falls apart there for me...

Borkanie avatar Oct 25 '22 21:10 Borkanie