In Keras, I am training a model as in below
model.fit_generator(data_generator(),
samples_per_epoch = count,
validation_data=(x_val, y_val),
nb_epoch=50,
callbacks=getCallBacks(),
verbose=1)
In data_generator function, I am printing few debugging statements.
On running above fit_generator function, it takes really long time to print what I had put in the data_generator().
Is there any series of steps which keras takes before picking out the data batch for the training which makes the process so slow or there is some other caveat?