我有灰度图像这个的形状: x_train_grey.shape = (73257, 32, 32)
我指定第一层是这样的:
Flatten(input_shape=(32,32,1)'
因为我不通过batch_size和灰度的图像只有1道。 但我得到这个错误:
ValueError: Error when checking input: expected flatten_1_input to have 4 dimensions, but got an array with shape (73257, 32, 32)
我不明白什么是错误的,请帮助。 我理解这一点已经问过很多次,但是我不能找到一个解决方案。
干杯!
input_shape=(32,32)
合作,谢谢!