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

Error when load the trained model of BasicVSR++ #700

Open
vincentweisen1357 opened this issue Aug 30, 2024 · 0 comments
Open

Error when load the trained model of BasicVSR++ #700

vincentweisen1357 opened this issue Aug 30, 2024 · 0 comments

Comments

@vincentweisen1357
Copy link

Dear @LiangbinXie ,

I trained the BasicVSR++ by using 'options/train/BasicVSRPP/train_BasicVSRPP_REDS.yml'.

Then running the inference code from 'inference/inference_basicvsrpp.py',
it occur following error when "model.load_state_dict(torch.load(args.model_path)['params'], strict=True)" :

Error(s) in loading state_dict for BasicVSRPlusPlus:
Unexpected key(s) in state_dict: "deform_align.backward_1.weight", "deform_align.backward_1.bias", "deform_align.backward_1.conv_offset.0.weight", "deform_align.backward_1.conv_offset.0.bias", "deform_align.backward_1.conv_offset.2.weight", "deform_align.backward_1.conv_offset.2.bias", "deform_align.backward_1.conv_offset.4.weight", "deform_align.backward_1.conv_offset.4.bias", "deform_align.backward_1.conv_offset.6.weight", "deform_align.backward_1.conv_offset.6.bias", "deform_align.forward_1.weight", "deform_align.forward_1.bias", "deform_align.forward_1.conv_offset.0.weight", "deform_align.forward_1.conv_offset.0.bias", "deform_align.forward_1.conv_offset.2.weight", "deform_align.forward_1.conv_offset.2.bias", "deform_align.forward_1.conv_offset.4.weight", "deform_align.forward_1.conv_offset.4.bias", "deform_align.forward_1.conv_offset.6.weight", "deform_align.forward_1.conv_offset.6.bias", "deform_align.backward_2.weight", "deform_align.backward_2.bias", "deform_align.backward_2.conv_offset.0.weight", "deform_align.backward_2.conv_offset.0.bias", "deform_align.backward_2.conv_offset.2.weight", "deform_align.backward_2.conv_offset.2.bias", "deform_align.backward_2.conv_offset.4.weight", "deform_align.backward_2.conv_offset.4.bias", "deform_align.backward_2.conv_offset.6.weight", "deform_align.backward_2.conv_offset.6.bias", "deform_align.forward_2.weight", "deform_align.forward_2.bias", "deform_align.forward_2.conv_offset.0.weight", "deform_align.forward_2.conv_offset.0.bias", "deform_align.forward_2.conv_offset.2.weight", "deform_align.forward_2.conv_offset.2.bias", "deform_align.forward_2.conv_offset.4.weight", "deform_align.forward_2.conv_offset.4.bias", "deform_align.forward_2.conv_offset.6.weight", "deform_align.forward_2.conv_offset.6.bias".

It seem like deform_align weight unable load to the model, how to fix it ?

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

1 participant