Skip to content

Error while running clipit.do_init(settings)  #30

Open

Description

@hritikb27
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`.

Activity

  1. Borkanie commented on Oct 25, 2022

    @Borkanie

    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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions