I intend to feed neural net with image data. Originally I have them stored as a list of arrays with dims 10,10,3 (height, length, color channel).
- Does anyone know how to convert the list containing multiple cimg images into one cimg storing multiple images in R?
and/or
- Does anyone know how to convert list of arrays with dims 10,10,3 into the object acceptable by keras?
You can use
simplify2array, which takes a list and returns an array.there after, make your data labels.
kerasdoesn't appear to require that your array object have aclassattribute, just be in a consistent form, in this case an array of images.