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

dual pixel error #108

Open
xalteropsx opened this issue Jul 27, 2024 · 0 comments
Open

dual pixel error #108

xalteropsx opened this issue Jul 27, 2024 · 0 comments

Comments

@xalteropsx
Copy link

    size mismatch for patch_embed.proj.weight: copying a param with shape torch.Size([48, 6, 3, 3]) from checkpoint, the shape in current model is torch.Size([48, 3, 3, 3]).     

{'inp_channels': 3, 'out_channels': 3, 'dim': 48, 'num_blocks': [4, 6, 6, 8], 'num_refinement_blocks': 4, 'heads': [1, 2, 4, 8], 'ffn_expansion_factor': 2.66, 'bias': False, 'LayerNorm_type': 'WithBias', 'dual_pixel_task': True}

dual_pixel_defocus_deblurring

model.load_state_dict(checkpoint['params'])                                                                                                                                 

File "Z:\software\python11\Lib\site-packages\torch\nn\modules\module.py", line 2191, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for Restormer:
size mismatch for patch_embed.proj.weight: copying a param with shape torch.Size([48, 6, 3, 3]) from checkpoint, the shape in current model is torch.Size([48, 3, 3, 3]).

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