ImageDataBunch - even simple version not working

Hi - I’m trying to read in two classes of images with ImageDataBunch, but it’s not working. I’ve got the directories structured like

path
train
California
Washington
valid
California
Washington\

My two classes are “California” and “Washington”, and contain images of maps of these U.S. states. Each low-level directory has 10 images in it.

When I run ImageDataBunch with very simple arguments like this:

path = Path("/home/ubuntu/course-v3/nbs/dl1/state-images")
data = ImageDataBunch.from_folder(path, size=224)

I get a message that says, “UserWarning: Your training dataloader is empty, you have only 20 items in your training set.” I understand that I only have 20 items in my training set, because that how many images are in the children of “train” directory. But what does it mean when it says, " Your training dataloader is empty"?

Also, when I run data.show_batch(rows=2, figsize=(5,5)), I get a traceback. I was hoping it would show my images like in the lecture.

I’ve attached images of my code and my image directories.

OK, the post didn’t preserve my indenting that was supposed to show the directory structure. Here it is again:

path
—train
------California
------Washington
—valid
------California
------Washington