I’m not sure I understand the current issue correctly.
Based on your description the transformations are working fine on a single sample.
However, apparently you are seeing errors when using a DataLoader, which is strange, since the transformations would still be applied on a single sample in the default setup (i.e. without using a BatchSampler etc.).



 SK412:

my another concern is the code needs image path but when i use imagefolder I dont have any access to image path that i can provide to these transforms


Which transformation would need an image path? Usually the transformations are applied on an image or tensor directly.