Loading a "resnext50_32x4d"

#1

I am trying to load a trained FastAIv0.7 resnext50_32x4d model. Same way I can load other simpler models that I have trained.

Does anyone know what is this error about?

  File "/fastai/old/fastai/learner.py", line 105, in load
    load_model(self.model, self.get_model_path(name))
  File "/fastai/old/fastai/torch_imports.py", line 40, in load_model
    m.load_state_dict(sd)
  File "/root/anaconda3/envs/fastai-cpu/lib/python3.6/site-packages/torch/nn/modules/module.py", line 522, in load_state_dict
    .format(name))
KeyError: 'unexpected key "4.0.0.0.0.0.weight" in state_dict
0 Likes

#2

The solution is that I was not using the right arch = resnext50.

0 Likes