-
Notifications
You must be signed in to change notification settings - Fork 237
/
startup.m
42 lines (39 loc) · 1.57 KB
/
startup.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
curdir = fileparts(mfilename('fullpath'));
addpath(fullfile(curdir, 'selective_search'));
if exist(fullfile(curdir,'selective_search/SelectiveSearchCodeIJCV'), 'dir')
addpath(fullfile(curdir,'selective_search/SelectiveSearchCodeIJCV'));
addpath(fullfile(curdir,'selective_search/SelectiveSearchCodeIJCV/Dependencies'));
else
fprintf('Warning: you will need the selective search IJCV code.\n');
fprintf('Press any key to download it (runs ./selective_search/fetch_selective_search.sh)> ');
pause;
if ispc
fetch_selective_search();
else
system('./selective_search/fetch_selective_search.sh');
end
addpath(fullfile(curdir,'selective_search/SelectiveSearchCodeIJCV'));
addpath(fullfile(curdir,'selective_search/SelectiveSearchCodeIJCV/Dependencies'));
end
addpath(fullfile(curdir,'vis'));
addpath(genpath(fullfile(curdir,'utils')));
addpath(fullfile(curdir,'bin'));
addpath(fullfile(curdir,'nms'));
addpath(fullfile(curdir,'finetuning'));
addpath(fullfile(curdir,'bbox_regression'));
if exist(fullfile(curdir,'external/caffe/matlab/caffe'), 'dir')
addpath(fullfile(curdir,'external/caffe/matlab/caffe'));
else
warning('Please install Caffe in ./external/caffe');
end
addpath(fullfile(curdir,'experiments'));
addpath(fullfile(curdir,'imdb'));
mkdir_if_missing(fullfile(curdir, 'bin'));
mkdir_if_missing(fullfile(curdir, 'cachedir'));
mkdir_if_missing(fullfile(curdir, 'feat_cache'));
mkdir_if_missing(fullfile(curdir, 'imdb', 'cache'));
if ~ispc
hfile = [matlabroot '/extern/include/matrix.h'];
loadlibrary('libmx',hfile)
end
fprintf('SPP_net startup done\n');