A-CRNN-model-for-Text-Recognition-in-Keras icon indicating copy to clipboard operation
A-CRNN-model-for-Text-Recognition-in-Keras copied to clipboard

when I run your repo,

Open flydragon2018 opened this issue 4 years ago • 1 comments

Error when checking input: expected input_1 to have 4 dimensions, but got array with shape (0, 1)

3 model.fit(x=[training_img, train_padded_txt, train_input_length, train_label_length], y=np.zeros(len(training_img)), batch_size=batch_size, epochs = epochs, validation_data = ([valid_img, valid_padded_txt, valid_input_length, valid_label_length], [np.zeros(len(valid_img))]), verbose = 1, callbacks = callbacks_list)

the only thing is that my images are 100X200, what is the problem?

flydragon2018 avatar May 27 '20 07:05 flydragon2018

can you give your model summary?

febefebrita avatar Jun 02 '20 10:06 febefebrita