model.add(vgg16_model)->4 model.add(平面())6 model.add(Dropout/python3.6/site-packages/keras/engine/base_layer.py in call(self,inputs,**kwargs)413->414个se
我正在尝试得到我的模型的预测值print(prediction)ValueError:Input 0 of layer sequential is incompatible with the layer: : expectedmin_ndim=4, found ndim=2.Full shape rec
我正在尝试训练一个Keras模型,其中一个奇异输入是一个长度为512的浮动的规范化数组。目前,我的培训数据中有539个这样的输入,但是一旦调用predict()方法,就会产生以下错误:
Input 0 of layer "dense" is incompatible with the layer: expectedmin_ndim=2, found n
我正在尝试创建一个分支的Keras模型,以输出多个类(年龄和性别)。我输入的X_train和X_test的形状如下:这是我创建层的代码:
from keras.models import SequentialInput 0 of layer "conv2d_1" is incompatible with the layer: expect