I am working on training a VGG16-like model in Keras, on a 3 classes subset from Places205, and encountered the following error:
ValueError: Error when chec
The problem is with the shape of the labels of the data "Y". The shape you have for the labels are (m,) and this will not work with the:
loss = "binary_crossentropy"
I believe if you don't want to play with the shape of the labels, then use:
loss = "sparse_categorical_crossentropy"