Train_generator, validation_generator

the train_generator &validation_generator output im getting is

result : Found 22499 images belonging to 2 classes.
Found 2499 images belonging to 2 classes.
rather than
result : Found 22498 images belonging to 2 classes.
Found 2500 images belonging to 2 classes.
how to rectify this. I’m not able to increase the training accuracy from 92%, is this because of this error??

The size of the train_generaror and validation generator should be straightforward to set, in your case maybe a slice ending might not be done right i.e. [:end] does not include the element at position end. I dont think the accuracy depends on this though, maybe the model of choice and its hyperparameters could be affecting it.

2 Likes