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!
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
im_gt = sio.loadmat("Set5/" + opt.image + ".mat")['im_gt']
KeyError: 'im_gt'
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, inAnd is there have any requirements about export image to .mat type? Look forward to your answer!