ZhouYzzz / otb-toolkit

A friendly toolkit for evaluating trackers on the Online Tracking Benchmark (OTB)
https://zhouyzzz.github.io/otb-toolkit/
31 stars 4 forks source link

Error: Invalid use of operator. #2

Open iminfine opened 5 years ago

iminfine commented 5 years ago

hi body,

I follow the instruction and add the code in the original OTB. After running the program,it shows:

Load cache file D:\otb-toolkit\cache\sequences_cache.mat 1_Biker , 1_CSK
Error using OPE_evaluate>OPE (line 61) Error: Invalid use of operator.

Error in OPE_evaluate (line 5) OPE(sequences{iseq}, trackers{itrk});

Error in run_OPE (line 11) OPE_evaluate(sequences(2), trackers); Unrecognized property 'sname' for class 'MException'.

Error in OPE_evaluate>OPE (line 72) err.sname = s.name;

Error in OPE_evaluate (line 5) OPE(sequences{iseq}, trackers{itrk});

Error in run_OPE (line 11) OPE_evaluate(sequences(2), trackers);

So, what's wrong here ? I guess this problem may be caused by changes of functions in different matlab versions. What's your version?

iminfine commented 5 years ago

I am using MATLAB R2018b.

ZhouYzzz commented 5 years ago

I am using MATLAB R2018b.

The original code should be OPE_evaluate(sequences, trackers);, where the sequences parameter should be a cell-array of elements, not a single element. This is not a matlab version issue.

You may try OPE_evaluate({sequences(2)}, trackers) or something like that.

iminfine commented 5 years ago

I am using MATLAB R2018b.

The original code should be OPE_evaluate(sequences, trackers);, where the sequences parameter should be a cell-array of elements, not a single element. This is not a matlab version issue.

You may try OPE_evaluate({sequences(2)}, trackers) or something like that.

Sorry, I should mention that the error is still existed when running the original code,

Load cache file D:\otb-toolkit\cache\sequences_cache.mat 1_Basketball , 1_CSK
Error using OPE_evaluate>OPE (line 61) Error: Invalid use of operator.

Error in OPE_evaluate (line 5) OPE(sequences{iseq}, trackers{itrk});

Error in run_OPE (line 11) OPE_evaluate(sequences, trackers); Unrecognized property 'sname' for class 'MException'.

Error in OPE_evaluate>OPE (line 72) err.sname = s.name;

Error in OPE_evaluate (line 5) OPE(sequences{iseq}, trackers{itrk});

Error in run_OPE (line 11) OPE_evaluate(sequences, trackers);