Hi Juan I tried and googled your method already and it does not work in this context. If you look at the screenshot the keys are named differently in this pth.tar file. So when I try to use your method load_state_dict crashes with error because of the [k:7] slice. This was one of the reasons I wanted to use nn.ParameterDict in the first place because the normal method fails. Thanks for the help anyways.

image.png1450×379 58.4 KB

Edited:  I think I am completely confused. I need to rebuild this person’s model from scratch then I can load this pth.tar file isn’t it? Does the pth.tar file format contain the entire model itself or just the weights?