-
Notifications
You must be signed in to change notification settings - Fork 15
/
install.m
70 lines (64 loc) · 2.32 KB
/
install.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
% Compile libraries, download network modles and demo sequences for GFS-DCF
[path_root, name, ext] = fileparts(mfilename('fullpath'));
% mtimesx
if exist('tracker_exter/mtimesx', 'dir') == 7
cd tracker_exter/mtimesx
mtimesx_build;
cd(path_root)
end
% PDollar toolbox
if exist('tracker_exter/pdollar_toolbox/external', 'dir') == 7
cd tracker_exter/pdollar_toolbox/external
toolboxCompile;
cd(path_root)
end
% matconvnet
if exist('tracker_exter/matconvnet/matlab', 'dir') == 7
cd tracker_exter/matconvnet/matlab
vl_compilenn; % enable/disable GPU based on your hardware
cd(path_root)
% donwload network
cd tracker_featu
mkdir offline_models
cd offline_models
if ~(exist('imagenet-resnet-50-dag.mat', 'file') == 2)
disp('Downloading the network "imagenet-resnet-50-dag.mat" from "http://www.vlfeat.org/matconvnet/models/imagenet-resnet-50-dag.mat"...')
urlwrite('http://www.vlfeat.org/matconvnet/models/imagenet-resnet-50-dag.mat', 'imagenet-resnet-50-dag.mat');
disp('Done!')
end
cd(path_root)
else
error('GFS-DCF : Matconvnet not found.')
end
% download demo sequences
if exist('tracker_seque', 'dir') == 0
mkdir tracker_seque
cd tracker_seque
else
cd tracker_seque
end
if exist('Biker', 'dir') == 0
disp('Downloading the demo sequence (1/2) "Biker" from "http://cvlab.hanyang.ac.kr/tracker_benchmark/seq/Biker.zip"...')
urlwrite('http://cvlab.hanyang.ac.kr/tracker_benchmark/seq/Biker.zip', 'Biker.zip');
unzip('Biker.zip');
rmdir('__MACOSX','s');
delete('Biker.zip');
disp('Done!')
end
if exist('bag', 'dir') == 0
mkdir bag
cd bag
mkdir color
cd color
disp('Downloading the demo sequence (2/2) "Bag" from "http://data.votchallenge.net/sequences/28b56d282ad4abeaaca820b1bebcab2f2aeb7a9a8b0da71f1103f7853a0add7e80ea7d6030892616d0ca0a639366418d3587c5e55bf759be91c4cfb514d53751.zip"...')
urlwrite('http://data.votchallenge.net/sequences/28b56d282ad4abeaaca820b1bebcab2f2aeb7a9a8b0da71f1103f7853a0add7e80ea7d6030892616d0ca0a639366418d3587c5e55bf759be91c4cfb514d53751.zip', 'bag.zip');
unzip('bag.zip');
delete('bag.zip');
cd ..
urlwrite('http://data.votchallenge.net/vot2018/main/bag.zip', 'anno.zip');
unzip('anno.zip');
delete('anno.zip');
cd ..
disp('Done!')
end
cd(path_root)