Lesson2(v3) IndexError: index 0 is out of bounds for axis 0 with size 0

(Somraj) #1

I’ve a image dataset properly labeled and split into train, test and valid folders but when I create an ImageDataBunch I’m prompted with the this error;

IndexError: index 0 is out of bounds for axis 0 with size 0

Although there’s another post in the forums about this same issue and there a possible solution to it but there’s no explanation to the error. Here’s the link to the other forum post.

0 Likes

#2

I have the same problem on Kaggle

0 Likes

(Sasi Kiran Gaddipati) #3

For me it worked when i changed the path specification from ‘content…’ to ‘\content…’

0 Likes