|
a |
|
b/analysis/code/plot_ep.m |
|
|
1 |
%Plot validation scores over all dilation files (no priv, aspp = 1) |
|
|
2 |
fp = '../logs/'; |
|
|
3 |
|
|
|
4 |
%1x1x1x1_0_1 0 iou: 0.6958 dice: 0.5479 recall: 0.5284 precision: 0.6050 |
|
|
5 |
%ep_2x2x2x2.txt |
|
|
6 |
|
|
|
7 |
dilation_arr = [1,1,1,1; 2,2,2,2]; |
|
|
8 |
priv_arr = [0]; |
|
|
9 |
aspp_arr = [1]; |
|
|
10 |
loss = 'dice'; |
|
|
11 |
|
|
|
12 |
fig = figure(1); |
|
|
13 |
hold on |
|
|
14 |
for d_i = 1:size(dilation_arr, 1) |
|
|
15 |
for p_i = 1:size(priv_arr, 1) |
|
|
16 |
for a_i = 1:size(aspp_arr, 1) |
|
|
17 |
dilation_str = strrep(num2str(dilation_arr(d_i, :)), ' ', 'x'); |
|
|
18 |
priv_str = num2str(priv_arr(p_i)); |
|
|
19 |
aspp_str = num2str(aspp_arr(a_i)); |
|
|
20 |
fname = strcat(fp, 'ep_', dilation_str, '_', priv_str, '_', aspp_str, '_8.txt'); |
|
|
21 |
title_name = strcat('Dilations: ', ' withPriv = ', priv_str, ' withASPP = ', aspp_str); |
|
|
22 |
fname = char(fname); |
|
|
23 |
|
|
|
24 |
filetable = readtable(fname, 'Delimiter', ' '); |
|
|
25 |
vals = table2array(filetable(:,[2,4,6,8])); |
|
|
26 |
iter_num = vals(:,1); |
|
|
27 |
iou = vals(:,2); |
|
|
28 |
plot(iter_num, iou); |
|
|
29 |
end |
|
|
30 |
end |
|
|
31 |
end |
|
|
32 |
|
|
|
33 |
legend('1x1x1x1', '2x2x2x2'); |
|
|
34 |
title(title_name); |
|
|
35 |
xlabel('Extra patch size (ep)') |
|
|
36 |
sdf(fig, 'dissertationfigs') |
|
|
37 |
hold off |