xception load issue
when I load the xception model,I meet: model_name = 'xception' # could be fbresnet152 or inceptionresnetv2 model = pretrainedmodels.dict[model_name](num_classes=1000, pretrained='imagenet') model.eval()
the error msgs: RuntimeError: Error(s) in loading state_dict for Xception: size mismatch for block1.rep.0.pointwise.weight: copying a param of torch.Size([128, 64, 1, 1]) from checkpoint, where the shape is torch.Size([128, 64]) in current model. size mismatch for block1.rep.3.pointwise.weight: copying a param of torch.Size([128, 128, 1, 1]) from checkpoint, where the shape is torch.Size([128, 128]) in current model. size mismatch for b
What is your version of pytorch and pretrainedmodels?
torch.__version__
pretrainedmodels.__version__
Did you try with the last version of pretrainedmodels? (0.7.3)
pip install --upgrade pretrainedmodels
ok,thank you. I have solved the issues.
And, Can you add the improved ResNet version? original ResNet: 77 convolution improved ResNet: 77 convolution ---> 33 convolution+33 convolution+3*3 convolution
@yyfyan Do you have an url to pretrained model somewhere?
sorry,I don't find the url too.
the improved ResNet version is used in PSPNet. https://github.com/hszhao/PSPNet