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 using vl_argparse #5

Open
xiaoqiao728295 opened this issue Oct 20, 2017 · 8 comments
Open

Error using vl_argparse #5

xiaoqiao728295 opened this issue Oct 20, 2017 · 8 comments

Comments

@xiaoqiao728295
Copy link

Dear author,

i have installed matconvnet successfully. When running Demo.m, i got some errors. Just showed below:
Error using vl_argparse (line 91)
Expected either a param-value pair or a structure.

Error in cnn_train_dag (line 26)
[opts, varargin] = vl_argparse(opts, varargin);

Error in CREST_tracking (line 117)
info = cnn_train_dag(net_online, imdb, input,getBatchWrapper(opts), ...

Error in Demo (line 32)
result=CREST_tracking(opts,varargin,config,display);

I think that there is something wrong with your input variable values in the function "cnn_train_dag", or "getBatchWrapper", but i can't find the solution about that error. Has anyone else had the same problem when running Demo.m?

Thank you for your time, i am looking forward to your reply.

@YingjieYin
Copy link

do you solve this problem? i think this code released by the author has some typo!

@YingjieYin
Copy link

i can't run the code successfully too.

@YingjieYin
Copy link

I give the following changes , and then run the code sueessfully.

File: CREST_tracking.m :

% training options (SGD)
opts.train = struct('gpus',1) ;%%this is the changed part
[opts, varargin] = vl_argparse(opts, varargin) ;

File: /matconvnet/examples/+solver/adam.m :

if isequal(state, 0)||isempty(state) % start off with state = 0 so as to get default state
state = struct('m', 0, 'v', 0, 't', 0);
end

@lichenyue1996
Copy link

hello,i met the same problem when i using OTB toolkit.
i have tried your solution but still can't fix it .
do you have other solution

@caoyuan-1
Copy link

you can use the /+solver/adam.m in author codes,not the file in matconvnet download from HOME

@zhangyaqin032266
Copy link

@xiaoqiao728295 hello,I met the same problem.I have tried your solution but still can't fix it .Do you have deal with the problem?

@nguyenkhaithinh
Copy link

I found the problem is that in the file CREST_tracking.m, line 233, there is no function getBatch included. @ybsong00 please check your code. Thank you very much for your great project.

@nguyenkhaithinh
Copy link

nguyenkhaithinh commented Oct 26, 2018

I solved the problem. Actually, there are 2 cnn_train_dag.m files. One is in the CREST folder and the other one is in CREST-Release-master/matconvnet/examples/. Make sure that you are using the first one, not the second.

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

6 participants