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

error in running demo #1

Closed
sjsy opened this issue Apr 23, 2017 · 2 comments
Closed

error in running demo #1

sjsy opened this issue Apr 23, 2017 · 2 comments

Comments

@sjsy
Copy link

sjsy commented Apr 23, 2017

Hi,
System configuration:

  • Windows 10
  • Matlab 2017a
  • Visual Studio 2013

>> demo_LapSRN
Warning: Name is nonexistent or not a directory:
D:\Users\user\sr\LapSNR\LapSRN-master\LapSRN-master\matconvnet\matlab
> In path (line 109)
In addpath (line 88)
In demo_LapSRN (line 25)
Load pretrained_models\LapSRN_x4.mat
Undefined function or variable 'dagnn.vllab_dag_loss'.

Error in dagnn.DagNN.loadobj (line 26)
block = constr() ;

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

Any help please?
Thanks.

@sjsy
Copy link
Author

sjsy commented Apr 23, 2017

The dagnn.vllab_dag_loss had not been copied by install.m
I copied it manually!
Best.

@sjsy sjsy closed this as completed Apr 23, 2017
@trillionpowers
Copy link

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);

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 @sjsy

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