TypeError: 'list' object is not callable on applying transforms

Here is my usecase. I want to apply data augmentation on image dataset that are stored in my local filesystem. I have created dataloader directly by loading the images from file folder, where folder name is the class name using following statement.

dls = ImageDataLoaders.from_folder(path, valid_pct=0.2, bs=64, item_tfms=Resize(460), batch_tfms=aug_transforms(size=224, min_scale=0.75), num_workers=3, device=device)

It gives the error

TypeError Traceback (most recent call last)
in
----> 1 dls = ImageDataLoaders.from_folder(path, valid_pct=0.2, bs=64, item_tfms=Resize(460), batch_tfms=aug_transforms(size=224, min_scale=0.75), num_workers=3, device=device)

TypeError: ‘list’ object is not callable.

Hey @asifdegr8,

Can you post more of the stacktrace? It’s not clear from only seeing the frame from the bottom of the stack as to which part of your code is causing the issue, otherwise a replicating notebook/colab would be the best but I understand you have some local data which might be private.