I was using the fit
function for a while now, but now I need to make some augmentation to the dataset that I have, so I have to use fit_generator
. There are some things I don't understand about fit_generator
.
Why there is a batch_size
option inside flow function? How does it behave when I use it with the steps_per_epoch
parameter? Is there a way to know how many images are generated with the imagedatagenerator function?
model.fit_generator(datagen.flow(x, y,batch_size=32), steps_per_epoch=len(x)/32,epochs=50)