How can I learn the structure/shape of “train_dataset” in assignment 2? How are images and labels arranged? What are the attributes? (I already know that “shape” is not one).
BATCH_SIZE = 32
IMG_SIZE = (160, 160)
directory = “dataset/”
train_dataset = image_dataset_from_directory(directory,
shuffle=True,
batch_size=BATCH_SIZE,
image_size=IMG_SIZE,
validation_split=0.2,
subset=‘training’,
seed=42)
I need to know, in order to create a data set that the model can be trained to, for a different classification task.