Change input data shape in resnet

In the transfer learning example, I noticed that the input data has to be of the shape [224, 224, 3]. What if my input data is smaller grayscale image? Do I have to rescale and convert to RGB?

yes, you have to upscale it and converted it to RGB to pass it through the default pre-trained resnet.