Beginners question:
I collect images (128x128x3, batch_size=32) via tf.keras.preprocessing.image_dataset_from_directory and try to process these images via DenseNet121.
But it ends up in:
Found unexpected instance while processing input tensors for keras functional model. Expecting KerasTensor which is from tf.keras.Input() or output from keras layer call(). Got: <BatchDataset shapes: ((None, 128, 128, 3), (None,)), types: (tf.float32, tf.int32)>
How do I have to shape my Dataset that it is compatible with DenseNet?