foolwood / DCFNet

DCFNet: Discriminant Correlation Filters Network for Visual Tracking
MIT License
215 stars 66 forks source link

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

Open Damax18 opened 6 years ago

Damax18 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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.

MambaWong commented 6 years ago

@tzjtatata Use MatConvNet 1.0-beta24