Error in Colab: index 0 is out of bounds for axis 0 with size 0

Hello, I am trying the image classification on caltech 101 dataset in Colab environment, and I get this error while creating the ImageDataBunch:
“index 0 is out of bounds for axis 0 with size 0”

This is how I create it:
data = ImageDataBunch.from_folder(path, train=’.’, ds_tfms=tfms, valid_pct=0.25, size=224).normalize(imagenet_stats)

I have tried creating it with train=“training” and valid=“testing” as well. and I have defined my path:
path = untar_data(downloaded dataset)

I have also mounted my drive. Thank you in advance!

Hi @Rojin,
can you please send a screenshot of the error. We may better be able to help you. Also, is your path variable defined correctly? and have you checked if there are image files existing in your path ?

Thank you @PalaashAgrawal, the problem was with my path definition; I used this post and it solved.
Lesson1 Colab untar_data to google drive?