qjadud1994 / CRNN-Keras

CRNN (CNN+RNN) for OCR using Keras / License Plate Recognition
MIT License
527 stars 191 forks source link

ValueError while training #40

Open meet-minimalist opened 5 years ago

meet-minimalist commented 5 years ago

ValueError: Cannot copy sequence with size 3 to array axis with dimension 19.

19 is max_text_len.

NikhilShaw commented 5 years ago

Getting same error in image_generator.py line 63: "Y_data[i] = text_to_labels(text)". It is because of length of Y_data[i[ is max_text_len whereas text_to_lables(text) returns list of length same as text. Possible solution will be to use padding.