-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathglobals.m
38 lines (30 loc) · 950 Bytes
/
globals.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
% Set up global variables used throughout the code
% setup svm mex for context rescoring (if it's installed)
if exist('./svm_mex601') > 0
addpath svm_mex601/bin;
addpath svm_mex601/matlab;
end
% dataset to use
if exist('setVOCyear') == 1
VOCyear = setVOCyear;
clear('setVOCyear');
else
VOCyear = '2007';
end
% directory for caching models, intermediate data, and results
cachedir = ['/var/tmp/rbg/YOURPATH/' VOCyear '/'];
if exist(cachedir) == 0
unix(['mkdir -p ' cachedir]);
if exist([cachedir 'learnlog/']) == 0
unix(['mkdir -p ' cachedir 'learnlog/']);
end
end
% directory for LARGE temporary files created during training
tmpdir = ['/var/tmp/rbg/YOURPATH/dat/' VOCyear '/'];
if exist(tmpdir) == 0
unix(['mkdir -p ' tmpdir]);
end
% should the tmpdir be cleaned after training a model?
cleantmpdir = true;
% directory with PASCAL VOC development kit and dataset
VOCdevkit = ['/var/tmp/rbg/VOC' VOCyear '/VOCdevkit/'];