How can I modify a resnet or VGG network to use grayscale images. I am loading the network the following way
m=torchvision.models.segmentation.fcn_resnet50(pretrained=False, progress=True, num_classes=2, aux_loss=None)

Is there some way I can tweak this model after loading it?
Thanks