I am currently learning to work with TensorFlow/Keras and having some trouble loading images as a dataset.
For context, I've downloaded the Pizza/Not Pizza dataset from Kaggle and I just want to build a naive binary classification model.
From the Keras documentation, I should be using the image_dataset_from_directory function, but there's a problem. It imposes that I give a size for the images as an argument to the function, but that messes up the dataset. I've already noticed that images in the DS are either 512 x 384 or 384 x 512, so all I want to do is load the thousand images, apply a transpose to them, and finally transform everything into tensors.
So, my question is: how do I load the images from a directory without imposing a certain size/shape beforehand?