HI! I am trying to use albumenations transforms with ImageFolder utility but I am stuck at this error, can some body help me out here?
I have my data structure in the following way
root/dog/xxy.png
root/dog/[...]/xxz.png

root/cat/123.png
root/cat/nsdf3.png
root/cat/[...]/asd932_.png 

Thus, I am using ImageFolder class.

transform = A.Compose([

    A.RandomCrop(width=256, height=256),

    A.HorizontalFlip(p=0.5),

    A.RandomBrightnessContrast(p=0.2),

])

data = ImageFolder(root='/content/flower_data/train',transform=transform)

loader = DataLoader(data)

for x, y in loader:

    print(x.shape) # image

    print(y)

    if y==1:break # image label

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-77-041b03c16ee0> in <module>()
      8 data = ImageFolder(root='/content/flower_data/train',transform=transform)
      9 loader = DataLoader(data)
---> 10 for x, y in loader:
     11     print(x.shape) # image
     12     print(y)

4 frames
/usr/local/lib/python3.7/dist-packages/torchvision/datasets/folder.py in __getitem__(self, index)
    178         sample = self.loader(path)
    179         if self.transform is not None:
--> 180             sample = self.transform(sample)
    181         if self.target_transform is not None:
    182             target = self.target_transform(target)

TypeError: __call__() takes 1 positional argument but 2 were given ```