I am using keras.preprocessing.image_dataset_from_directory function for loading the dataset of 25000 images whose directory is in the following format.
keras.preprocessing.image_dataset_from_directory