When the images' contents are given in csv file

Hi,

Let’s say I have the images 28X28 with their labels given in csv file. See example below. How can I use it in fastai?

label,pixel0,pixel1,pixel2,…,pixel782,pixel783
0,0,0,0,0,…,0,0,0
1,0,0,0,217,…,0,0,0
2,0,0,0,250,…,255,0,0

You can either load it as a table and use the values as is if the task is simple. If you definitely want them as images, you can take each row, reshape it and load it as a PIL image. Then you can do with it what you want.