Image classification with CNN Python
You can try and use the tf.keras.preprocessing.image.ImageDataGenerator's flow-from_directory() method. Here are a few links for reference:

tf.data: Build TensorFlow input pipelines

Retraining an Image Classifier

Notebook on Image Captioning