I’m in the process of creating a notebook for a Kaggle competition (Facial Keypoints Detection | Kaggle). The dataset contains a .csv file which has a column where the pixel values for the images are being stored:
The input image is given in the last field of the data files, and consists of a list of pixels (ordered by row), as integers in (0,255). The images are 96x96 pixels.
I loaded the csv as a DataFrame and now I want to create a DataLoader for my learner. Is there a way to use the pixel values from the DataFrame to construct a DataLoader directly, or do I need to save the data as image files first (e.g. png) just to load it one step later with get_image_files into a DataLoader?
I found a solution. For anyone wondering, you can use the get_y function from DataBlock to do the transformation for you without having to save any image to the file system.