Setting up steps_per_epoch and val_gen

Hi Vasu Bhaiya,

steps_per_epoch=(number_of training examples)/(batch_size)

This formula ensures that we cover all the training data in 1 epoch.

In tiny-imagenet 200 dataset
I came across training_data=100,000
Sir kept batch_size=128
Then steps_per_epoch = 781 ??

Kindly confirm…

Also if we use ImageDataGenerator to load the data as well as augment the data.
Why do we call it to have infinite training data?

Hey @chiragwxN, Go through this thread link, i have already discussed this in brief with one student,

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.