I'm trying to use a pretrained network such as tf.keras.applications.ResNet50
but I have two problems:
I just want to obtain the top embedding layers at the end of the network, because I don't want to do any image classification. So due to this there is no need for a classes number I think.
tf.keras.applications.ResNet50
takes a default parameter'classes=1000'
- Is there a way how I can omit this parameter?
My input pictures are
128*128*1
pixels and not224*224*3
- What is the best way to fix my input data shape?
My goal is to make a triplet loss network with the output of a resnet
network.
Thanks a lot!