src/chug/image/transforms_torch.py [50:60]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @staticmethod
    def get_params(scale):
        if type(scale) is tuple or type(scale) is list:
            assert len(scale) == 2
            scale = random.choice(scale)
        return scale

    def __call__(self, img):
        kernel_size = self.get_params(self.scale)
        if isinstance(img, torch.Tensor):
            padding = kernel_size // 2
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/chug/image/transforms_torch.py [72:82]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @staticmethod
    def get_params(scale):
        if type(scale) is tuple or type(scale) is list:
            assert len(scale) == 2
            scale = random.choice(scale)
        return scale

    def __call__(self, img):
        kernel_size = self.get_params(self.scale)
        if isinstance(img, torch.Tensor):
            padding = kernel_size // 2
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



