How do I create a VGG-16 sequence for my data?
The data has the following :
model = Sequential() model.add(ZeroPadding2D((1, 1), input_shape=(3, img
Here instead of 1000 you should have the total number of classes because it's the output layer.
model.add(Dense(1000, activation='softmax'))
Also shape of labels (or Y_train/Y_test) should be (total number of classes, total number records).
This helped me resolve similar kind of error.