vlfeat / matconvnet

MatConvNet: CNNs for MATLAB
Other
1.4k stars 753 forks source link

matconvnet not worked after reloading matlab #1150

Open prozelek opened 6 years ago

prozelek commented 6 years ago

I build matconvnet on Ubuntu 16.04 and Matlab 2018a. After build at this matlab session matconvnet works good with this code:

net = vl_simplenn_tidy(net);

But after restart Matlab this code gives a error: "Undefined function or variable 'vl_simplenn_tidy'." To work with matconvnet I need to build it for each matlab session. It seems Matlab cant see matconvnet builded folder after restarting. I try

addpath('') addpath('/matlab') net = vl_simplenn_tidy(net);

and it is don't help. Where matconvnet builded folder placed on Ubuntu? And what can I do to fix it and do not rebuild matconvnet after each Matlab starting?

malrabeiah commented 6 years ago

You don’t need to rebuild the toolbox. All you should do is cd to the following directory in MATLAB command line: ‘~/MatConvNet/matconvnet-1.0.beta25/matlab’ — I’m assuming you have MatConvNet version 1.0 beta25. Then, run the following script: run(vl_setupnn’)

This script should be run every time you restart MATLAB.