Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERRORS in code #2

Closed
trillionpowers opened this issue Jul 17, 2017 · 5 comments
Closed

ERRORS in code #2

trillionpowers opened this issue Jul 17, 2017 · 5 comments

Comments

@trillionpowers
Copy link

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
Copy link
Owner

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
Copy link
Author

trillionpowers commented Jul 18, 2017

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
Copy link
Owner

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
Copy link
Author

trillionpowers commented Jul 18, 2017

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants