I am a beginner in fastai, who is trying to finish Kaggle’s digit recognizer competition.
But I get stuck immediately when I trying to load the image data to the ImageList
.
The data provided is a csv file with pixels and labels of the images, which looks like this:
label, pixel1, pixel2, ... , pixel 784
1, 0, 0, ... , 0
...
It seems that ImageList
API can only apply to the image files that are storaged in the disk and that are well organized by its label, which is not suitable for the image storaged in the csv file.
I have found some solutions using ImageClassifierData
, but I can’t find it in the document and it seems to be supersceded.
I have also found some suggestions recommending that a custom dataset would help, but it also means that I couldn’t use the functions in fastai (validation split and show bunch , etc). It might too hard for me.
What should I do? Any suggestions or example code would be appreciated.