i am working with resnet to train my data. I have frozen most of the layers and only working training with the last 4 layers. I want to change these last four layer dimension so that it matches my input dimension and channels. As i am new to this i dont know how to do it. I tried googling it but cannot find the solution
base_model = tf.keras.applications.ResNet50(
include_top=False,
weights="imagenet",
input_tensor=3,
input_shape=(150,150),
pooling=None,
)
for layer in base_model.layers[:46]:
layer.trainable = False
tf.keras.applications.resnet.preprocess_inputhere for preprocessing the image and then use that as an input to your network. - Kishore