Hi, greetings, i want to transform both image and mask. I tried this way
from torchvision.datasets import Cityscapes
from torchvision import transforms as T
aug=T.Compose([T.Resize((256,512))])
dataset = Cityscapes('../data/', split='val', mode='fine',
                     target_type='semantic',transforms=aug)

but it gives me following error
TypeError                                 Traceback (most recent call last)
/tmp/ipykernel_348578/797377544.py in <module>
      7                      target_type='semantic',transforms=aug)
      8 
----> 9 out= dataset[2]
     10 print(out[0].size,out[1].size)
     11 #img,seg=augment(np.array(out[0]),np.array(out[1]))

~/venv/lib/python3.8/site-packages/torchvision/datasets/cityscapes.py in __getitem__(self, index)
    190 
    191         if self.transforms is not None:
--> 192             image, target = self.transforms(image, target)
    193 
    194         return image, target

TypeError: __call__() takes 2 positional arguments but 3 were given