Traceback (most recent call last):


 "train.py", line 77, in <module>

H = model.fit_generator(aug.flow(trainX, trainY, batch_size=BS), validation_data=(testX, testY), steps_per_epoch=len(trainX)//BS, epochs=EPOCHS, verbose=1)


 "C:\Users\EDSONG~1\ML\lib\site-packages\keras_preprocessing\image\image_data_generator.py", line 430, in flow

subset=subset


 "C:\Users\EDSONG~1\ML\lib\site-packages\keras_preprocessing\image\numpy_array_iterator.py", line 80, in __init__

(np.asarray(x).shape, np.asarray(y).shape))
ValueError: `x` (images tensor) and `y` (labels) should have the same length. Found: x.shape = (528, 96, 96, 3), y.shape = (132, 96, 96, 3)

Traceback (most recent call last):


 "main.py", line 75, in gen_img_retry

return renderer.gen_img(img_index)


 "/opt/shakey/synetic/text_renderer/textrenderer/renderer.py", line 94, in gen_img

word_img = self.noiser.apply(word_img)


 "/opt/shakey/synetic/text_renderer/textrenderer/noiser.py", line 38, in apply

return noise_func(img)


 "/opt/shakey/synetic/text_renderer/textrenderer/noiser.py", line 69, in apply_sp_noise

row, col, channel = img.shape
ValueError: not enough values to unpack (expected 3, got 2)
