VOT测试,运行平台是Linux+matlab跟踪器;
下载
1,https://github.com/votchallenge/vot-toolkit 下载最新主体工具版本vot-toolkit;
2,https://github.com/votchallenge/trax/下载辅助工具trax;(可以自动下载安装)
环境建立
参考:https://blog.csdn.net/TS____4/article/details/79583111
详细介绍博客:http://blog.csdn.net/shmilysi/article/details/52972157;
python版
见Performing evaluation with VOT toolkit
运行
1,修改自己的代码,填写接口,可仿照ECO;
2,注意1:建议在run_experiments中的[sequences, experiments] = workspace_load();后面添加experiments{1,1}.parameters.repetitions=1;
temp{1}=experiments{1};
clear experiments;
experiments{1}=temp{1};,让跟踪器在每个视频上只运行一遍,可以节约时间
3,注意:如果你的跟踪器初始化超过30秒,这个工具运行是会报错的,原因在vot-toolkit-master\tracker目录下的tracker_run.m文件中的30变大
4,若此时仍然无法连接跟踪器,修改tracker_run.m文件中的连接方式为socket
5.Tracker execution interrupted: Invalid MEX-file '/home/ubuntu/VOT/vot-toolkit/native/traxclient.mexa64': /usr/local/MATLAB/R2016a/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/ubuntu/VOT/vot-toolkit/native/traxclient.mexa64).
traxclient.mexa64 问题
问题出在libstdc++.so.6这个上面,需要重新建立正确的链接,并重启Matlab。
cd /usr/local/MATLAB/R2016a/sys/os/glnxa64 # Matlab对应路径
sudo mv libstdc++.so.6.0.17 bak-libstdc++.so.6.0.17
sudo mv libstdc++.so.6 bak-libstdc++.so.6
sudo ln -sf /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 ./
sudo ln -sf ./libstdc++.so.6.0.21 ./libstdc++.so.6
测试结果
1,修改run_analysis文件,添加要对比的算法,(老版有一个坑,report_article(context, experiments, trackers, sequences, ‘spotlight’, ‘myTracker’);这句话,如果运行失败了据改成report_article(context, experiments, trackers, sequences);,不会影响运行结果的;)
2 注意:如果部分无法测试,在[sequences, experiments] = workspace_load();后面添加
exp=experiments{1};
clear experiments;
experiments{1}=exp;
可正常测试
python接口
trax无法通过,编译:
cd VOT_TOOLKIT_PATH/native/trax
mkdir build
cd build
cmake -DBUILD_OPENCV=ON -DBUILD_CLIENT=ON ..
make
接口书写,首先复制vot.py文件到跟踪算法目录,然后仿照DiMP接口(https://github.com/visionml/pytracking/tree/master/pytracking)修改:
% Set path to the python in the pytracking conda environment
python_path = 'PATH_TO_CONDA_INSTALLATION/envs/pytracking/bin/python';
% Set path to pytracking
pytracking_path = 'PATH_TO_VISIONML/pytracking';
% Set path to trax installation. Check
% https://trax.readthedocs.io/en/latest/tutorial_compiling.html for
% compilation information
trax_path = 'PATH_TO_VOT_TOOLKIT/native/trax';
tracker_name = 'dimp'; % Name of the tracker to evaluate
runfile_name = 'dimp18_vot'; % Name of the parameter file to use
debug = 0;
%%
tracker_label = [tracker_name, '_', runfile_name];
% Generate python command
tracker_command = sprintf(['%s -c "import sys; sys.path.append(''%s'');', ...
'sys.path.append(''%s/support/python'');', ...
'import run_vot;', ...
'run_vot.run_vot(''%s'', ''%s'', debug=%d)"'],...
python_path, pytracking_path, trax_path, ...
tracker_name, runfile_name, debug);
tracker_interpreter = python_path;
tracker_linkpath = {[trax_path, '/build'],...
[trax_path, '/build/support/client'],...
[trax_path, '/build/support/opencv']};
其它问题
@@Trax:frame "file:///opt/research/vot-toolkit/vot-workspace_18/sequences/gymnastics1/00000338.jpg"
@@Trax:state "136.9550,76.1116,51.9562,59.7788"
@@Trax:frame "file:///opt/research/vot-toolkit/vot-workspace_18/sequences/gymnastics1/00000339.jpg"
@@Trax:state "146.5000,66.5000,51.0000,60.0000"
@@Trax:frame "file:///opt/research/vot-toolkit/vot-workspace_18/sequences/gymnastics1/00000340.jpg"
@@Trax:state "147.4042,63.8600,41.2930,63.4933"
@@Trax:frame "file:///opt/research/vot-toolkit/vot-workspace_18/sequences/gymnastics1/00000341.jpg"
@@Trax:quit
运行一部分Trax退出:跟踪代码打印内容太多,关闭打印代码可正常测试!