我收到了来自Keras的非常混乱的错误消息。我使用以下模型,并将其传递给形状(num_examples, n, 1)的输入。:ValueError: Error when checking target: expected dense_16 to have 2 dimensions, but got array with shape如果我使用model.summary(),它将显示LSTM输出具有以下形状:(
: Input 0 of layer lstm_1 is incompatible with the layer: expectedndim=3, found ndim=2.: Input 0 of layer lstm_1 is incompatible with the layer: expectedndim=3, found ndim=2</em
我是新的Keras,我试图创建一个以(224,256,1)大小的图像作为输入。以下是我一直在犯的错误:
ValueError: Input 0 of layersequential_5 is incompatible with the layer: : expectedmin_ndim=4, found ndim=3.Full shape receive