hey,
I am using the code example from here 1
in my code :

dsets = datasets.ImageFolder(’./dataset/’)
dset_loaders = torch.utils.data.DataLoader(dsets, batch_size=1, shuffle=False)

but I end up getting the following error :
TypeError : batch must contain tensors, numbers … found <class PIL …
Am I doing it wrong ?