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 DCFNet/DCFNet/run_DCFNet.m, line53? #9

Open
Damax18 opened this issue Dec 12, 2017 · 3 comments
Open

ERROR in DCFNet/DCFNet/run_DCFNet.m, line53? #9

Damax18 opened this issue Dec 12, 2017 · 3 comments
Assignees
Labels

Comments

@Damax18
Copy link

Damax18 commented Dec 12, 2017

Hi, thnaks for your sharing.

When i run the code in matlab2016a with matconvnet beta25, there is always an error:


error using vl_argparse (line 63)
OPTS must be a structure

error vl_argparse (line 160)
opts.(field) = vl_argparse(opts.(field), value,
'merge') ;

error vl_argparse (line 97)
opts = vl_argparse(opts, vertcat(params,values),
varargin{:}) ;

error DCFNet_initialize (line 16)
state = vl_argparse(state, param);

error demo_DCFNet (line 43)
[state, ~] = DCFNet_initialize(im{1}, init_rect, opts);


After a check on the relevant code, the error could be aviod when the code 'state.net =[];' changed to be 'state.net = param.net;' in DCFNet_initialize.m.

Does the error occured because my matconvnet version or something else?

Thanks!

@foolwood
Copy link
Owner

matconvnet 1.0-beta25 is very unsatisfactory.
The vl_argparse function has been defined as recursive mode. You should add some code to change the default setting as

vl_argparse(state, param, 'nonrecursive');

@tzjtatata
Copy link

I meet the same problem with the same environment. After I change the default setting to nonrecursive, the problem still exists. Although the hint change, the problem seems unchanged.
Error Message below:
Error using vl_argparse (line 108)
Expected either a param-value pair or a structure.

Error in run_DCFNet>DCFNet_initialize (line 54)
state = vl_argparse(state, param, 'nonrecursive');

Error in run_DCFNet (line 27)
[state, ~] = DCFNet_initialize(im{1}, init_rect, param);

Error in demo_DCFNet (line 15)
res = run_DCFNet(subS,0,0,param);

It seems like the param must be a structure. If not, the function will be in loop. But I do not allow it to loop, the function have to stop because of the lack of structured parameter. Can you help me?
Thanks a lot.

@foolwood foolwood self-assigned this Mar 27, 2018
@MambaWong
Copy link

@tzjtatata Use MatConvNet 1.0-beta24

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

No branches or pull requests

4 participants