Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use RBPN_4x_F11_NTIRE2019 pretrained model: size mismatch for module.output.conv.weight #56

Open
skerit opened this issue Jun 6, 2020 · 1 comment

Comments

@skerit
Copy link

skerit commented Jun 6, 2020

When I try to load the RBPN_4x_F11_NTIRE2019.pth pretrained model I get this error:

Traceback (most recent call last):
  File "eval.py", line 96, in <module>
    model.load_state_dict(model_state_dict)
  File "/home/skerit/projects/miniconda3/envs/py35/lib/python3.5/site-packages/torch/nn/modules/module.py", line 777, in load_state_dict
    self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for DataParallel:
	size mismatch for module.output.conv.weight: copying a param with shape torch.Size([3, 640, 3, 3]) from checkpoint, the shape in current model is torch.Size([3, 384, 3, 3]).

I have no idea where either 640 or 384 is defined in the eval.py script, so I'm drawing a blank here

@vaib-saxena
Copy link

@skerit you should change line 35 in eval.py to parser.add_argument('--nFrames', type=int, default=11)

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants