FCOS.Pytorch
FCOS.Pytorch copied to clipboard
Unexpected key(s) in state_dict: "fc.weight", "fc.bias".
when training, in 'resnet.py' line 197, can not load weight
the official pre-trained weights of resnet contains fc layer that we don't need. Therefore, you can modify line 197 as below: model.load_state_dict(model_zoo.load_url(model_urls['resnet50']),strict=False)
Thanks for reply!