当试图让模型适合我的数据时,它抛出了一个值错误,错误如下:ValueError: Input 0 of layer sequential is incompatible with the layer:32是从哪里来的,为什么我的形状不对?() tf.keras.layers.Conv2D(64, (3,3), activation='relu', input_shape=(28,28,1))
/engine/input_spec.py", line 223, in assert_input_compatibilityValueError: Input/engine/input_spec.py", line 223, in assert_input_compatibilityValueError: Input/engine/input_spec.py", line
input_shape -- shape of the images of the dataset model -- a Model() instance in Kerasreturn modelnetwork = faceRecoModel(input_shape=(96, 96, 3))ValueError(keras_tensor.KerasTensor, output_signature)--> 8
我正在运行keras模型,但它显示形状错误,尽管我确实检查了形状,但它是正确的。predict = model.predict(sequences_matrix)ValueError: Error when checking input: expected Inputsto have shape (150,) but got array with shape (1,)sequences_matrix.shape
输出为: