CRNN-Keras icon indicating copy to clipboard operation
CRNN-Keras copied to clipboard

ValueError while training

Open meet-minimalist opened this issue 5 years ago • 1 comments

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

19 is max_text_len.

meet-minimalist avatar Jul 24 '19 08:07 meet-minimalist

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.

NikhilShaw avatar Jul 29 '19 01:07 NikhilShaw