-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathrun_experiments_seg.m
66 lines (60 loc) · 1.78 KB
/
run_experiments_seg.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
function run_experiments_seg()
rcnn.name = 'rcnn' ;
rcnn.opts = {...
'type', 'rcnn', ...
'model', 'data/models/imagenet-vgg-m.mat', ...
'layer', 19} ;
rcnnvd.name = 'rcnnvd' ;
rcnnvd.opts = {...
'type', 'rcnn', ...
'model', 'data/models/imagenet-vgg-verydeep-19.mat', ...
'layer', 41} ;
dcnn.name = 'dcnnfv' ;
dcnn.opts = {...
'type', 'dcnn', ...
'model', 'data/models/imagenet-vgg-m.mat', ...
'layer', 13, ...
'numWords', 64} ;
dcnnvd.name = 'dcnnvdfv' ;
dcnnvd.opts = {...
'type', 'dcnn', ...
'model', 'data/models/imagenet-vgg-verydeep-19.mat', ...
'layer', 35, ...
'numWords', 64} ;
dsift.name = 'dsift' ;
dsift.opts = {...
'type', 'dsift', ...
'numWords', 256, ...
'numPcaDimensions', 80} ;
if 1
proposalList = {'crisp'}; %, 'scg200'} ;
%datasetList = {'os','msrc'} ;
datasetList = {'msrc'} ;
setupNameList = {'rcnn', 'dcnn', 'rdcnn'} ;
encoderList = {{rcnn}, {dcnn}, {rcnn dcnn}} ;
if 1
setupNameList = horzcat(setupNameList, {'rcnnvd', 'dcnnvd', 'rdcnnvd'}) ;
encoderList = horzcat(encoderList, {{rcnnvd}, {dcnnvd}, {rcnnvd dcnnvd}}) ;
end
else
% full scg experiments, skip RCNN due to excruciating slowness
proposalList = {'scg'} ;
datasetList = {'os'} ;
setupNameList = {'dcnn', 'dcnnvd'} ;
encoderList = {{dcnn}, {dcnnvd}} ;
end
numSplits = [1, 1] ;
for qq = 1 : numel(proposalList)
for ii = 1 : numel(datasetList)
for jj = 1 : numSplits(ii)
os_seg_test(...
'dataset', datasetList{ii}, 'seed', jj, ...
'encoders', encoderList, ...
'prefix', 'exp01', ...
'suffix', setupNameList , ...
'segProposalType', proposalList{qq}, ...
'useGpu', false) ;
end
end
end
end