Junshk / CinCGAN-pytorch

Unofficial Implementation of "Unsupervised Image Super-Resolution using Cycle-in-Cycle Generative Adversarial Networks" in CVPR 2018.
143 stars 27 forks source link

Hello ,the structure of EDSR pretrained model does not meet the definition in your code. #19

Open Tomlk opened 3 years ago

Tomlk commented 3 years ago

problem:
when I load EDSR_x4.pt ,and use the load_state_dict method in EDSR.py,the problem shows:

GHR.load_state_dict(Loaded,True) KeyError: 'unexpected key "body.16.body.0.weight" in state_dict'。

GHR.load_state_dict(Loaded,False) can run the code ,but the result of sr is pool,so I think whether the structure code of EDSR.py you write maybe not complete?

schliffen commented 2 years ago
Change the number of the resblocks (trial and error) in my case for example:
n_resblocks = 32