forked from ignaciorlando/fundus-vessel-segmentation-tbme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script_experiments_massive.m
46 lines (33 loc) · 1.57 KB
/
script_experiments_massive.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
warning('off','all');
rootDatasets = '/Users/ignaciorlando/Documents/_vessels';
rootResults = '/Users/ignaciorlando/Documents/_vessels/results';
% Datasets names
datasetsNames = {...
'DRIVE' ...
};
thereAreLabelsInTheTestData = 0;
% Flag indicating if the value of C is going to be tuned according to the
% validation set
learnC = 0;
% CRF versions that are going to be evaluated
crfVersions = {'fully-connected'};
% C values
cValue = 10^0;
% For each of the data sets
results = cell(length(datasetsNames), length(crfVersions));
for experiment = 1 : length(datasetsNames)
% For each version of the CRF
for crfver = 1 : length(crfVersions)
% Get the configuration
[config] = getConfiguration_GenericDataset(datasetsNames{experiment}, ... % data set name
fullfile(rootDatasets, datasetsNames{experiment}), ... % data set folder
fullfile(rootResults, datasetsNames{experiment}), ... % results folder
learnC, ... % learn C?
crfVersions{crfver}, ... % crf version
cValue ... % default C value
);
config.thereAreLabelsInTheTestData = thereAreLabelsInTheTestData(experiment);
% Run vessel segmentation!
results{experiment,crfver} = runVesselSegmentation(config);
end
end