Lesson 1 Notebook (Unmodified) Fails at MNIST Section

Hi,

Under the “Other data formats” heading in Lesson 1:

When running the following 2 lines:

tfms = get_transforms(do_flip=False)
data = ImageDataBunch.from_folder(path, ds_tfms=tfms, size=26)

I get the following error:

“/opt/conda/envs/fastai/lib/python3.6/site-packages/fastai/data_block.py:451: UserWarning: Your training set is empty.”

(followed by an index error).

I haven’t modified anything, just run the whole notebook top to bottom. Everything above this works fine.

Any help on this would be much appreciated :slight_smile:

I’m running on Paperspace.

Thanks.

Ian

I run this code and it is working for me.

path = untar_data(URLs.MNIST_SAMPLE)

tfms = get_transforms(do_flip=False)
data = ImageDataBunch.from_folder(path, ds_tfms=tfms, size=26)

data.show_batch(rows=3, figsize=(5,5))

Maybe you need to update your fastai version. I am working on 1.0.53 or you need to double check your path and the contents in that folder.