I tried this code using your transforms.py:
custom_transforms = Compose([
    RandomRotation(degrees=(-30, 30)),
    RandomHorizontalFlip(p=0.5),
])

i1 = Image.open('dataset/sub_test/data/Places365_val_00000002.jpg')
i2 = Image.open('dataset/sub_test/data/Places365_val_00000003.jpg')

it12 = custom_transforms([i1, i2])

But I got these errors:
 File "C:\Users\NIkan\Desktop\Deep Halftoning\Github\Deep-Halftoning\lib\transforms.py", line 69, in __call__
    return self.apply_sequence(inpt)
  File "C:\Users\NIkan\Desktop\Deep Halftoning\Github\Deep-Halftoning\lib\transforms.py", line 79, in apply_sequence
    output = list(map(self.apply_img, seq))
  File "C:\Users\NIkan\Desktop\Deep Halftoning\Github\Deep-Halftoning\lib\transforms.py", line 75, in apply_img
    img = t(img)
  File "C:\Users\NIkan\Desktop\Deep Halftoning\Github\Deep-Halftoning\lib\transforms.py", line 990, in __call__
    self.get_params()
TypeError: get_params() missing 1 required positional argument: 'degrees'

It seems it calls self.get_params() without passing provided degrees.

  
      github.com
  
  
    JuanFMontesinos/flerken/blob/dae0d5f33e1b3d7cf3dc7c159ffec326179f9f8f/flerken/dataloaders/transforms/transforms.py#L971-L990 6

def get_params(self, degrees):
    """Get parameters for ``rotate`` for a random rotation.


    Returns:
        sequence: params to be passed to ``rotate`` for random rotation.
    """
    self.angle = random.uniform(degrees[0], degrees[1])


def reset_params(self):
    self.angle = None


def __call__(self, img):
    """
        img (PIL Image): Image to be rotated.


    Returns:
        PIL Image: Rotated image.
    """
    if self.angle is None:
        self.get_params()