martin-danelljan / ECO

Matlab implementation of the ECO tracker.
GNU General Public License v3.0
614 stars 252 forks source link

Error when I run demo_ECO_gpu.m? #38

Closed trikim closed 5 years ago

trikim commented 6 years ago

I have succeed to run the demo_ECO.m and demo_ECO_HC.m file. However, I have encountered these errors. Error using vl_nnconv An input is not a numeric array (or GPU support not compiled).

Error in vl_simplenn (line 300) res(i+1).x = vl_nnconv(res(i).x, l.weights{1}, l.weights{2}, ...

Error in get_cnn_layers (line 23) cnn_feat = vl_simplenn(fparams.net, im,[],[],'CuDNN',true, 'Mode', 'test');

Error in extract_features (line 59) feature_map(ind:ind+num_blocks-1) = feat.getFeature(img_samples{img_sample_ind}, feat.fparams, gparams);

Error in tracker (line 347) xl = extract_features(im, sample_pos, currentScaleFactor, features, global_fparams, feature_extract_info);

Error in testing_ECO_gpu (line 129) results = tracker(params);

Error in demo_ECO_gpu (line 13) results = testing_ECO_gpu(seq);

Could you help to fix these problems?

whoisalan commented 6 years ago

i met the same problems

NeverMoreLCH commented 6 years ago

the same error

vivinousi commented 6 years ago

I was able to fix this error by switching the order in which the matconvnet directories are added to the path in setup_path.m (lines 20-22), as:

addpath([pathstr '/external_libs/matconvnet/matlab']);
addpath([pathstr '/external_libs/matconvnet/matlab/simplenn']);
addpath([pathstr '/external_libs/matconvnet/matlab/mex/']);
martin-danelljan commented 6 years ago

Hmm interesting. Note that I have only verified that it works with the older version of matconvnet, i.e. the one you get by running 'git submodule update'.

helloxueen commented 5 years ago

I was able to fix this error by switching the order in which the matconvnet directories are added to the path in setup_path.m (lines 20-22), as:

addpath([pathstr '/external_libs/matconvnet/matlab']);
addpath([pathstr '/external_libs/matconvnet/matlab/simplenn']);
addpath([pathstr '/external_libs/matconvnet/matlab/mex/']);

what GPU version did you use?8.0 or 7.5? Beacuse I met the same error when I use GPU 8.1 even if the matconvnet directories are added to the path!!!! Any else method???

martin-danelljan commented 5 years ago

Have you compiled matconvnet properly?

zhyply commented 5 years ago

I was able to fix this error by switching the order in which the matconvnet directories are added to the path in setup_path.m (lines 20-22), as:

addpath([pathstr '/external_libs/matconvnet/matlab']);
addpath([pathstr '/external_libs/matconvnet/matlab/simplenn']);
addpath([pathstr '/external_libs/matconvnet/matlab/mex/']);

I have compile matconvnet-GPU already(win10+vs2017+cuda9.2+cudnn7.6), but the demo_ECO_gpu.m goes error by "An input is not a numeric array". I try @vivinousi solution method, is work, program run perfect. nice try!!!

martin-danelljan commented 5 years ago

Thank you for the solution. It is fixed in the code now.