pytorch-SRResNet icon indicating copy to clipboard operation
pytorch-SRResNet copied to clipboard

I use my .mat image to test model have error

Open ratsuki opened this issue 6 years ago • 2 comments

I just export original image to .mat type,and then to test it. here is my error:

Warning: source code of class 'srresnet._Residual_Block' has changed. you can retrieve the original source code by accessing the object's source attribute or set torch.nn.Module.dump_patches = True and use the patch tool to revert the changes. warnings.warn(msg, SourceChangeWarning) Traceback (most recent call last): File "test.py", line 35, in im_gt = sio.loadmat("Set5/" + opt.image + ".mat")['im_gt'] KeyError: 'im_gt'

And is there have any requirements about export image to .mat type? Look forward to your answer!

ratsuki avatar Jan 24 '18 05:01 ratsuki

Did you solve the problem? I am encountering the same problem. The way the author created the testset is different since it has indexes.

surajitsaikia27 avatar May 28 '18 09:05 surajitsaikia27

@surajitsaikia27 @ratsuki Please refer to the matlab code here

twtygqyy avatar May 28 '18 19:05 twtygqyy