You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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`.
The text was updated successfully, but these errors were encountered:
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...
The text was updated successfully, but these errors were encountered: