Hi. I got this error message while validating on Colab:
RuntimeError: Error(s) in loading state_dict for Generator:
Missing key(s) in state_dict: "conv_block1.0.weight", "conv_block1.0.bias", "conv_block1.1.weight", "trunk.0.rcb.0.weight", "trunk.0.rcb.1.weight", "trunk.0.rcb.1.bias",
...
"upsampling.1.upsample_block.0.bias", "upsampling.1.upsample_block.2.weight", "conv_block3.weight", "conv_block3.bias".
Unexpected key(s) in state_dict: "epoch", "best_psnr", "state_dict", "optimizer", "scheduler".
Tries to use this weight file: SRGAN_x4-ImageNet-2204c839.pth.tar as provided in the link
To overcome the error, updated the code;
model.load_state_dict(checkpoint["state_dict"])
to
model.load_state_dict(checkpoint["state_dict"],False)
in validate.py on line 34.
After changing, validation works but PSNR is only 8.89dB. I tried also all weight files of SRGAN in the link but all 3 of them have the same PSNR result: 8.89
Hi. I got this error message while validating on Colab:
Tries to use this weight file: SRGAN_x4-ImageNet-2204c839.pth.tar as provided in the link
To overcome the error, updated the code;
model.load_state_dict(checkpoint["state_dict"])
tomodel.load_state_dict(checkpoint["state_dict"],False)
in validate.py on line 34.After changing, validation works but PSNR is only 8.89dB. I tried also all weight files of SRGAN in the link but all 3 of them have the same PSNR result: 8.89
Which point have I missed?