I have greyscale images of this shape: x_train_grey.shape = (73257, 32, 32)
I specify the first layer like this:
Flatten(input_shape=(32,32,1)'
Because I don't pass the batch_size and the greyscale images have only 1 channel. But I get this error:
ValueError: Error when checking input: expected flatten_1_input to have 4 dimensions, but got an array with shape (73257, 32, 32)
I don't understand what is wrong, please help. I understand this has been asked many times, but I cannot find a solution.
Cheers!
input_shape=(32,32)
has worked, thanks!