how can I overcome “ValueError: Shapes (None, 1) and (None, 7) are incompatible”
问题 I am new to Keras and CNN. I am working on an assignment to build a CNN for predicting face emotions. I built the model as per the assignment but while compiling the model I get "ValueError: Shapes (None, 1) and (None, 7) are incompatible". Can someone help me how to resolve this? Pasting my code below for reference: ''' model = Sequential() model.add(Conv2D(filters = 64, kernel_size = 5,input_shape = (48,48,1))) model.add(Conv2D(filters=64, kernel_size=5,strides=(1, 1), padding='valid'))