Valueerror: Layer Sequential Expects 1 Inputs, But It Received 250 Input Tensors
I tried to develop a CNN model to extract feature from vein images but I cant solve the ValueError shown. model = Sequential() model.add(Conv2D(64, kernel_size=(2, 2), activation='
Solution 1:
One issue I can see from your code, here:
model.add(Dense(8, activation='sigmoid'))
model.compile(loss=keras.losses.categorical_crossentropy,
You should use activation to softmax
if you use the loss function categorical cross entropy
. Or, use binary_cross_entropy
if activation need to be sigmoid
Post a Comment for "Valueerror: Layer Sequential Expects 1 Inputs, But It Received 250 Input Tensors"