i am basically trying to build a deep model which consists of many convolution2d layers followed by maxpooling 2d as follows :
model.add(Convolution2D(128, 54, 7, input_shape=(1, 54, 180)))
model.add(MaxPooling2D(pool_size=(1, 3)))
model.add(Convolution2D(128, 1, 7))
model.add(MaxPooling2D(pool_size=(1, 3)))
However , i am getting the following error :
File "/home/user/anaconda2/lib/python2.7/site-packages/keras/engine/training.py", line 100, in standardize_input_data str(array.shape)) Exception: Error when checking model input: expected convolution2d_input_1 to have 4 dimensions, but got array with shape (8000, 180, 54) Blockquote
But i am following the (samples, channels, rows, cols) norm. Why is this happening ?