image_output_1.png
from tensorflow.keras.preprocessing import image_dataset_from_directory

from tensorflow.keras.preprocessing import image_dataset_from_directory
train_dir = './output/train'
test_dir = './output/test'
val_dir = './output/val'
train_data = image_dataset_from_directory(train_dir, label_mode='categorical', image_size=(299, 299), batch_size=32, shuffle=True, seed=42)
test_data = image_dataset_from_directory(test_dir, label_mode='categorical', image_size=(299, 299), batch_size=32, shuffle=False, seed=42)
val_data = image_dataset_from_directory(val_dir, label_mode='categorical', image_size=(299, 299), batch_size=32, shuffle=False, seed=42)