I am trying to model a fully convolutional neural network using the Keras library, Tensorflow backend.
The issue I face is that of feeding ]differently sized images in batches to model.fit()
function. The training set consists of images of different sizes varying from 768x501 to 1024x760.
Not more than 5 images have the same dimensions, so grouping them into batches seems to be of no help.
Numpy allows storing the data in a single variable in list form. But the keras model.fit()
function throws an error on receiving a list type training array.
I do not wish to resize and lose the data as I already have a very small dataset.
How do I go about training this network?