pytorch-vdsr
pytorch-vdsr copied to clipboard
Can't run eval.py using provided model & Training using default settings get bad results
T have some problems, can you give me some advice, thanks!
1)run eval.py ,get errors as follows:
/home/yang/Software/anaconda3/lib/python3.5/site-packages/torch/serialization.py:316: SourceChangeWarning: source code of class 'torch.nn.parallel.data_parallel.DataParallel' 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)
/home/yang/Software/anaconda3/lib/python3.5/site-packages/torch/serialization.py:316: SourceChangeWarning: source code of class 'vdsr.Net' 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)
/home/yang/Software/anaconda3/lib/python3.5/site-packages/torch/serialization.py:316: SourceChangeWarning: source code of class 'torch.nn.modules.container.Sequential' 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)
/home/yang/Software/anaconda3/lib/python3.5/site-packages/torch/serialization.py:316: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' 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)
/home/yang/Software/anaconda3/lib/python3.5/site-packages/torch/serialization.py:316: SourceChangeWarning: source code of class 'torch.nn.modules.activation.ReLU' 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)
Processing Set5_mat/bird_GT_x2.mat
Traceback (most recent call last):
File "/home/yang/Code/DeblurSR/SR/pytorch-vdsr-master/eval.py", line 64, in
hi @Deephome, did you run python eval.py --cuda ? if run without cuda opinion, please change model = torch.load(opt.model)["model"] to model = torch.load(opt.model)["model"].module and give a try
CPU mode is now supported for eval.py
@Deephome. hi. For train the model using default setting , then eval the trained model,but vdsr 's results are bad ( close to bicubic performance ).Now,I get the vdsr's results are bad too( close to bicubic performance ).how did you deal?