-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathplotMetric.m
More file actions
58 lines (49 loc) · 2.04 KB
/
plotMetric.m
File metadata and controls
58 lines (49 loc) · 2.04 KB
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
function plotMetric(configjson)
% Plot the recall,auc abo of test set ground truth for all methods.
%
% This function requires the proposals to already be saved to disk. It will
% compute a matching between ground truth and proposals (if the result is not
% yet found on disk) and then plot recall curves. The plots are saved to
% figures/.
parDir = configjson.params.parDir;
testset = load(fullfile(parDir, 'evaluation-metrics', 'data/pascal_gt_data.mat'));
methods = getMethods(configjson);% This function is not available in the repository
% Use methods = getmethods() instead , make changes accoriding to your
% need
compute_best_recall_candidates(testset, methods);
% compute_best_recall_candidates(testset, methods);
%compute_abo_candidates(testset, methods);
fh = figure;
plot_overlap_recall_curve( methods, 100, fh, true, 'NorthEast');
hei = 10;
wid = 10;
set(gcf, 'Units','centimeters', 'Position',[0 0 wid hei]);
set(gcf, 'PaperPositionMode','auto');
printpdf(fullfile(parDir, 'figures/pascal/recall_100_new.pdf'))
fprintf('done 1\n');
plot_overlap_recall_curve( methods, 100, fh, true, 'NorthEast', true);
hei = 10;
wid = 10;
set(gcf, 'Units','centimeters', 'Position',[0 0 wid hei]);
set(gcf, 'PaperPositionMode','auto');
printpdf(fullfile(parDir, 'figures/pascal/recall_100_long_names_new.pdf'))
fprintf('done 2\n');
fh = figure;
plot_overlap_recall_curve( methods, 1000, fh, false, 'NorthEast');
hei = 10;
wid = 10;
set(gcf, 'Units','centimeters', 'Position',[0 0 wid hei]);
set(gcf, 'PaperPositionMode','auto');
printpdf(fullfile(parDir, 'figures/pascal/recall_1000.pdf'))
fprintf('done 3\n');
fh = figure;
plot_overlap_recall_curve( methods, 10000, fh, false, 'SouthWest');
hei = 10;
wid = 10;
set(gcf, 'Units','centimeters', 'Position',[0 0 wid hei]);
set(gcf, 'PaperPositionMode','auto');
printpdf(fullfile(parDir, 'figures/pascal/recall_10000.pdf'))
plot_num_candidates_auc( methods);
fprintf('printing abo..\n')
plot_num_candidates_abo( methods);
end