Skip to content

input bug #6

@1shifeng

Description

@1shifeng

Hello,when running python test_GoPro.py --rgb False --load_unet True --load_path Pretrained_Model/RE_Net_GRAY.pth,Traceback (most recent call last):
File "test_GoPro.py", line 163, in
prepare()
File "test_GoPro.py", line 61, in prepare
unet.load_state_dict(torch.load(opt.load_path)['state_dict'])
File "/home/dell/anaconda3/envs/trmd/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1051, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for DataParallel:
size mismatch for module.blur_en_conv1.0.weight: copying a param with shape torch.Size([16, 1, 5, 5]) from checkpoint, the shape in current model is torch.Size([16, 3, 5, 5]).
size mismatch for module.pred.weight: copying a param with shape torch.Size([6, 39, 1, 1]) from checkpoint, the shape in current model is torch.Size([18, 41, 1, 1]).
size mismatch for module.pred.bias: copying a param with shape torch.Size([6]) from checkpoint, the shape in current model is torch.Size([18]) appears,what's wrong with setting it to
blurry_channels=1,
event_channels=6,
out_channels=6,
rgb=False):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions