At the moment i apply all preprocessing to the dataset. But i saw that i can make the preprocessing as part of the model. I read that the layer preprocessing is inactive at test time but what is about the rezizing layer? For example:
model = Sequential([
layers.experimental.preprocessing.Resizing(180, 180),
layers.experimental.preprocessing.Rescaling(1./255),
layers.Conv2D(16, 3, padding='same', activation='relu'),
...
What happens if i now use model.predict(img), will the img automatically be resized or do i have still to rezize the img before the prediction?
Thank you in advance!