siamese-fc matlab代碼運行配置
1.安裝vs2015
2.安裝matlab2017b
3.安裝cuda9.0,cudnn
4.下載matconvnet-1.0-beta24.tar.gz
5.下載siamese-fc源碼
https://github.com/bertinetto/siamese-fc
6.將matconvnet解壓在siamese-fc目錄下
進入matconvnet/matlab/,運行以下指令
mex -setup
vl_compilenn
vl_compilenn('enableGpu',true)
等待matconvnet編譯完成
7.將siamese-fc tracking文件夾下面env_paths_tracking.m.example、run_tracker.m.example、startup.m.example的後綴.example去掉並保存。
8.修改startup.m中內容爲
warning('off','all');
addpath(genpath('./matconvnet-1.0-beta24'));
% addpath(genpath('./matconvnet-1.0-beta20'));
addpath(genpath('./util'));
addpath(genpath('./tracking'));
vl_setupnn;
9.修改env_paths_tracking.m
p.net_base_path = './../nets/';
p.seq_base_path = './../demo-sequences/';
p.seq_vot_base_path = '/path/to/VOT/evaluation/sequences/'; % (optional)
p.stats_path = '/path/to/ILSVRC15-VID/stats.mat'; % (optional)
10.在siamese-fc新建一個nets文件夾,下載與訓練模型2016-08-17_gray025.net.mat,2016-08-17.net.mat,下載地址爲
http://www.robots.ox.ac.uk/~luca/siamese-fc.html
使用哪一個,修改地方爲tracker.m,第18行
p.net = '2016-08-17_gray025.net.mat';
10.運行
run_tracker('vot15_bag',1)
即可。
整個代碼文件夾如下:
代碼解讀見下一篇文章。