I have built my own dataset containing two categories, each having 14 images.
I forgot to choose the same size for all the images so that could also be an issue but
when i fit the model this is the error i get:
UserWarning: Your generator is empty.
warn(“Your generator is empty.”)
Also facing errors when running these two snippets:
bears = bears.new(item_tfms=RandomResizedCrop(128, min_scale=0.3))
dls = bears.dataloaders(path)
dls.train.show_batch(max_n=4, nrows=1, unique=True)
and
bears = bears.new(item_tfms=RandomResizedCrop(128, min_scale=0.3))
dls = bears.dataloaders(path)
dls.train.show_batch(max_n=4, nrows=1, unique=True)
Running this code without any limitations on number, gives me just 5 images
dls.valid.show_batch(max_n=4, nrows=1)