Value of steps_per_epoch?

Why have we taken value of steps_per_epoch as 7. We have total of 724 training images. We should take the vlaue of steps_per epoch as 25 with a batch size of 32

Hey @raunaqsingh10, maximum steps_per_epoch = floor_value(724/32) = floor_value(22.65) = 22.
You can use any value less than or equal to 22.

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

What actually happens if I take the value of steps_per_epoch greater than 22?

Hey @raunaqsingh10, image_train_generator will give the error, and code can no longer be executed.
Hope this cleared 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.