作者开源的MATLAB的代码
1、按照readme的指令
-
Run the matconvnet/matlab/vl_compilenn.m file to comfile matconvnet
-
Run the matconvnet/matlab/vl_setupnn.m file to add paths for compiled files.
-
You can run the trained model using testDRCN.m
这里不是DRCN,是VDSR。
依次运行以上3个code ;运行testVSDR的问题:
(1)
Error using vl_nnconv
An input is not a numeric array (or GPU support not compiled).
Error in vl_simplenn (line 296)
res(i+1).x = vl_nnconv(res(i).x, l.weights{1}, l.weights{2}, …
Error in runVDSR (line 3)
res2 = vl_simplenn(net2, imlow, []);% {‘conserveMemory’, true});
Error in VDSR (line 46)
impred = runVDSR(net, imlowy, gpu);
Error in testVDSR (line 13)
VDSR(data, SF, ‘VDSR.mat’, outRoute);
如何解决?
vl_compilenn(‘enableGpu’, true, ‘cudametho