forked from VCLMW-Pose/MW-Pose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogger_plot.m
82 lines (74 loc) · 1.59 KB
/
logger_plot.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
% Created on Fri Oct 5 17:00 2019
%
% Author : Yu Du
% Email : [email protected]
% Last edit date : Fri Oct 5 19:00 2019
%
% South East University Automation College
% Vision Cognition Laboratory, 211189 Nanjing China
filename = fullfile('logger.txt');
fid = fopen(filename);
C = textscan(fid,...
'%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n','HeaderLines',1);
plot(C{1},'r');
hold on;
plot(C{2},'g');
hold on;
plot(C{3},'b');
hold on;
plot(C{4},'Color',[1 0.56 0]);
hold on;
plot(C{5},'m');
hold on;
plot(C{6},'c');
hold on;
plot(C{7},'Color',[0.58 0.09 0.32]);
hold on;
plot(C{8},'Color',[0.48 0.51 1]);
grid on;
hold off;
xlabel('Batch');
ylabel('Loss');
% ylim([0 0.005]);
legend('nose', 'neck', 'rshoulder','relbow','rwrist','lshould',...
'lelbow','lwrist','Location', 'northeastoutside')
savefig('curve-I');
plot(C{9},'r');
hold on;
plot(C{10},'g');
hold on;
plot(C{11},'b');
hold on;
plot(C{12},'Color',[1 0.56 0]);
hold on;
plot(C{13},'m');
hold on;
plot(C{14},'c');
hold on;
plot(C{15},'Color',[0.58 0.09 0.32]);
hold on;
plot(C{16},'Color',[0.48 0.51 1]);
grid on;
hold off;
xlabel('Batch');
ylabel('Loss');
legend('rhip','rknee','rankle','lhip','lknee',...
'lankle','reye','leye','Location', 'northeastoutside')
savefig('curve-II');
plot(C{17},'r');
hold on;
plot(C{18},'g');
grid on;
hold off;
xlabel('Batch');
ylabel('Loss');
legend('rear','lear','Location', 'northeastoutside')
savefig('curve-III');
plot(C{19},'m');
grid on;
hold off;
% xlim([100 14000])
xlabel('Batch');
ylabel('Loss');
legend('total','Location', 'northeastoutside')
savefig('curve-total');