DeblurGAN icon indicating copy to clipboard operation
DeblurGAN copied to clipboard

Failed to load the checkpoint file provided in the google drive.

Open Irlyue opened this issue 5 years ago • 16 comments

The repo has already provided a latest_net_G.pth in the folder ./checkpoints/experiment_name. However, as I go through the readme file and download the checkpoint file from the google drive, I cannot load it into the resnet_9blocks generator. It got some unexpected keys in the state_dict:

    Unexpected key(s) in state_dict: "model.10.conv_block.6.weight", "model.10.conv_block.6.bias", "model.10.conv_block.7.running_mean", "model.10.conv_block.7.running_var", "model.11.conv_block.6.weight", "model.11.conv_block.6.bias", "model.11.conv_block.7.running_mean", "model.11.conv_block.7.running_var", "model.12.conv_block.6.weight", "model.12.conv_block.6.bias", "model.12.conv_block.7.running_mean", "model.12.conv_block.7.running_var", "model.13.conv_block.6.weight", "model.13.conv_block.6.bias", "model.13.conv_block.7.running_mean", "model.13.conv_block.7.running_var", "model.14.conv_block.6.weight", "model.14.conv_block.6.bias", "model.14.conv_block.7.running_mean", "model.14.conv_block.7.running_var", "model.15.conv_block.6.weight", "model.15.conv_block.6.bias", "model.15.conv_block.7.running_mean", "model.15.conv_block.7.running_var", "model.16.conv_block.6.weight", "model.16.conv_block.6.bias", "model.16.conv_block.7.running_mean", "model.16.conv_block.7.running_var", "model.17.conv_block.6.weight", "model.17.conv_block.6.bias", "model.17.conv_block.7.running_mean", "model.17.conv_block.7.running_var", "model.18.conv_block.6.weight", "model.18.conv_block.6.bias", "model.18.conv_block.7.running_mean", "model.18.conv_block.7.running_var".

Could it be the version problem of Pytorch? (Mine is 0.4.1)

Irlyue avatar May 21 '19 01:05 Irlyue

getting same problem

ak9250 avatar May 27 '19 18:05 ak9250

+1

Jambalaya11 avatar May 28 '19 05:05 Jambalaya11

+1 when PyTorch version is 1.0

QWERDF007 avatar May 29 '19 08:05 QWERDF007

+1

furuit avatar May 30 '19 07:05 furuit

+1

qingsenyangit avatar Jun 04 '19 03:06 qingsenyangit

+1

SeaOfOcean avatar Jun 10 '19 02:06 SeaOfOcean

+1

kregmi avatar Jun 13 '19 16:06 kregmi

+1

MrBurnst avatar Jul 12 '19 12:07 MrBurnst

+1

Madrid-Ista avatar Jul 15 '19 03:07 Madrid-Ista

any solutions?

Jarvisss avatar Jul 24 '19 07:07 Jarvisss

so do I

doduythao avatar Jul 24 '19 11:07 doduythao

+1

Muzammal-Naseer avatar Aug 04 '19 18:08 Muzammal-Naseer

I am facing the same issue..my Pytorch version is 1.0.1. Anyone could find any solution?

umar1992 avatar Aug 07 '19 03:08 umar1992

have solution???

leandepk avatar Aug 25 '19 15:08 leandepk

It seems like one commit changed the architecture of ResNet! Erase (repo root)/models/networks.py line 219 ~ 230 and add

if use_dropout:
    blocks += [nn.Dropout(0.5)]
blocks += padAndConv[padding_type] + [norm_layer(dim)]

to make the code work.

However, I couldn't get the unblurry result with the pretrained model running....

96lives avatar Aug 30 '19 16:08 96lives

+1

idealboy avatar Sep 04 '19 02:09 idealboy