i try to make a databunch from the planet dataset following jeremy example in the lesson, it seems that i succeeded in downloading the planet dataset successfully but then i tried to make a databunch like the example in the lesson
and it produced an error that ImageFileList is not defined. i understood from the forum that ImageFileList is not in use any more and i read in the datablock api doc that imagelist is used instead.
but when i tried to use ImageList to create the data bunch like this:
np.random.seed(42)
src = (ImageList.from_folder(path)
.label_from_csv(‘train_v2.csv’,sep = ’ ', folder = ‘train-jpg’, suffix = ‘.jpg’)
.random_split_by_pct(0.2))
data = (src.datasets()
.transform(tfms, size = 128)
.databunch().normalize(imagenetstats))
i got another error:
AttributeError: ‘ImageList’ object has no attribute ‘label_from_csv’
i spent some time but i couldnt find information on that or solve this issue until now so any help will be appreciated
thanks a lot in advance
amotz