Problem with the output of train_val_generator

The output is showing 22499 for train generator & 2499 fot test generator…while the expected output is 22498 and 2500 respectively. But my spliting function is working correctly.

Please click my name and message your notebook as an attachment.

I am experiencing the same problem! What can I do?

Does this post help?