I am a pytorch learner ang i want to finetune xception network .When i run the following :
import pretrainedmodels 
model_name = 'xception'
model_ft=pretrainedmodels.__dict__[model_name]\
(num_classes=1000, pretrained='imagenet')

i get the follwing error:
RuntimeError: Error(s) in loading state_dict for Xception:
        While copying the parameter named "block1.rep.0.pointwise.weight", whose dimensions in the model are torch.Size([128, 64, 1, 1]) and whose dimensions in the checkpoint are torch.Size([128, 64]).

Could you please tell me how to deal with it?