为了运行在VOT里DaSiamRPN,配置了很久环境,我电脑的配置是Ubuntu16.04+MatlabR2018a+pytorch0.3。
下面是一些从网上整理的操作步骤:
1.首先是工具箱的下载:
git clone https://github.com/votchallenge/vot-toolkit.git cd vot-toolkit && mkdir vot2018 && cd vot2018 git clone https://github.com/foolwood/DaSiamRPN.git /usr/local/MATLAB/R2018a/bin/matlab -nodisplay #我是在siamrpn虚拟环境(pytorch0.3)下打开的matlab >> run ../toolkit_path >> workspace_create >> 7 >> SiamRPN >> 2 >> run_experiments
2.接下来是测试在ncc下能不能成功:
tracker_ncc.m
tracker_label = 'ncc';
tracker_command = generate_matlab_command('ncc', {'absolute/path/to/vot-toolkit/tracker/examples/matlab'});
tracker_interpreter = 'matlab';
Tracker execution interrupted: Did not receive response. 原因:错误使用 traxclient Did not receive response.
可能出现的错误:CLIENT: Closing server socket.解决办法:将工程路径加载到接口函数中问题得到解决
tracker_SiamRPN.m(我的是在vot-toolkit/vot2018目录下)
tracker_label = ['SiamRPN'];
tracker_command = generate_python_command('vot_SiamRPN', {'/home/tay/vot-toolkit/vot2018/DaSiamRPN/code'}); %这里code后面不能有/号
tracker_interpreter = 'python';
注意:tracker_SiamRPN.m应该放在与run_experiments.m同一级目录下,将vot-toolkit/tracker/examples/matlab文件夹中vot.m也复制到这一级目录;
因为跟踪器初始化超过30秒,这个工具运行是会报错的,vot-toolkit racker目录下的tracker_run.m当中的 line 32修改为timeout = 300000