Image data generator for my (x, 12, 370, 235, 3) dataset

Viewed 33

I have made a model with 12 2D CNN inputs. I suddenly realized that the ImageDataGenerator from

from keras.preprocessing import image

don't accept inputs with more than 4 dimensions or as the error message stated it:

('Input data in NumpyArrayIterator should have rank 4. You passed an array with shape', (4, 12, 370, 235, 3))

How can I make a image data geneerator for my (x, 12, 370, 235, 3) dataset?

My model:

enter image description here

0 Answers
Related