PyTorch default_collate: batch must contain tensors, numpy arrays, numbers, dicts or lists
Why I'm getting this error when I try to load my dataset? I just use the native example of PyTorch to load Cifar10 and Cifar100 datasets, but it returns this.
default_collate: batch must contain tensors, numpy arrays,
numbers, dicts or lists; found <class 'PIL.Image.Image'>
Any idea how to fix it?