image.png825×499 15.8 KB

seems not right ,how to use load_state_dict after using the DataParalled  method?
i also use the
model.module.load_state_dict(checkpoint[‘state_dict’])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/public/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 311, in load_state_dict
    .format(name))
KeyError: 'unexpected key "module.conv1.weight" in state_dict'