keras_ocr
keras_ocr copied to clipboard
densent训练出错
当我执行下面这句话时 res = model.fit_generator(cc1, steps_per_epoch =3279601// batch_size, epochs = 100, validation_data =cc2 , validation_steps = 364400// batch_size, callbacks =[earlystop,checkpoint,tensorboard], verbose=1 ) 出现如下错误: Epoch 1/100
StopIteration Traceback (most recent call last)
2 frames /usr/local/lib/python3.6/dist-packages/keras/engine/training_generator.py in fit_generator(model, generator, steps_per_epoch, epochs, verbose, callbacks, validation_data, validation_steps, class_weight, max_queue_size, workers, use_multiprocessing, shuffle, initial_epoch) 179 batch_index = 0 180 while steps_done < steps_per_epoch: --> 181 generator_output = next(output_generator) 182 183 if not hasattr(generator_output, 'len'):
StopIteration: 请问,这个要如何解决?