phoenix104104 / LapSRN

Deep Laplacian Pyramid Networks for Fast and Accurate Super-Resolution (CVPR 2017)
http://vllab.ucmerced.edu/wlai24/LapSRN/
449 stars 120 forks source link

ERRORS in code #2

Closed trillionpowers closed 7 years ago

trillionpowers commented 7 years ago

I followed your instructions but I get this error. The error is "Undefined function or variable 'dagnn.vllab_dag_loss'".

Thank you for your help . @phoenix104104

phoenix104104 commented 7 years ago

Which system do you use? Could you check is your "vllab_dag_loss.m" copied to matconvnet/matlab/+dagnn properly? If not, you have to manually copy it. Some people report that the copy command in MATLAB does not work on Window 10.

trillionpowers commented 7 years ago

My system is ubuntu 14.04. The environment is matlab R2015b + CUDA8.0. My matconvnet is installed in this path /usr/local/MATLAB/R2015b/toolbox/Matconvnet/matconvnet-1.0-beta24. I have tried install.m and is successful. I also tried copy "vllab_dag_loss.m" to matconvnet/matlab/+dagnn. But it just can not found this object. The errors are like this:

demo_LapSRN Warning: Name is nonexistent or not a directory: /media/trillionpowers/Data/Work/RL_SR/Basical_Model/LapSRN_model/LapSRN-master/usr/local/MATLAB/R2015b/toolbox/Matconvnet/matconvnet-1.0-beta24/matlab In path (line 109) In addpath (line 88) In demo_LapSRN (line 25) Load pretrained_models/LapSRN_x4.mat Error using dagnn.DagNN.loadobj Error: File: loadobj.m Line: 26 Column: 5 The input character is not valid in MATLAB statements or expressions.

Error in demo_LapSRN (line 33) net = dagnn.DagNN.loadobj(net.net);

Thank you for your help. @phoenix104104

phoenix104104 commented 7 years ago

You should copy vllab_dag_loss.m to your own MatConvNet path. In your case, it's /usr/local/MATLAB/R2015b/toolbox/Matconvnet/matconvnet-1.0-beta24/matlab/+dagnn

trillionpowers commented 7 years ago

Sure. I have copied this file to this path many times and use 'vl_compilenn('enableGPu', true);' to compile. But I still have this error when I run 'demo_LapSRN.m' and 'train_LapSRN.m'. I have tried to Change permissions of this file in 777. But it still can not run.

Thank you for your help. @phoenix104104

trillionpowers commented 7 years ago

Thanks a lot. I reboot my system and make it again. It's run !