ImageDataBunch.from_folder error

Hi there,

I have train and valid folders both has 24 folder in it. Each of these 24 folders (s0, …, s23) has images in it.
train valid
s0 s0
s1 s1
. .
. .
s23 s23

I am trying to read images from the folder but it gives an error saying that valid set contained the unknown labels. Valid folder has same folder names like train.

Please help!

What you are getting is a warning and not an error. You can turn off warnings but using this:

import warnings
warnings.simplefilter("ignore", UserWarning)

If you have validated that there are no missing labels you should be able to continue with the notebook as normal.

1 Like

It took me almost two days :slight_smile: Thank you so much for your help!