-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml.example
218 lines (181 loc) · 4.46 KB
/
config.yaml.example
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
RANDOM_SEED : 1.0
SESSION_CONFIG : {
PER_PROCESS_GPU_MEMORY_FRACTION : 0.95
}
PARTS : {
NUM_PARTS : 17,
PART_LOSS_ALPHA : 100,
VIS_LOSS_ALPHA : 100,
LEFT_RIGHT_PAIRS : [
[1, 2], # eyes
[3, 4], # ears
[5, 6], # shoulder
[7, 8], # elbow
[9, 10], # wrist
[11, 12], # hip
[13, 14], # knee
[15, 16], # ankle
],
NAMES : [
'nose',
'left_eye',
'right_eye',
'left_ear',
'right_ear',
'left_shoulder',
'right_shoulder',
'left_elbow',
'right_elbow',
'left_wrist',
'right_wrist',
'left_hip',
'right_hip',
'left_knee',
'right_knee',
'left_ankle',
'right_ankle'
],
COLORS : [
"red",
"green",
"blue",
"black",
"chartreuse",
"darkgoldenrod",
"darkred",
"deeppink",
"dimgray",
"fuchsia",
"lavender",
"lightpink",
"mediumturquoise",
"powderblue",
"seashell",
"beige",
"yellow"
],
SYMBOLS : [
"o",
"o",
"o",
"o",
"o",
"o",
"o",
"o",
"o",
"o",
"o",
"o",
"o",
"o",
"o",
"o",
"o"
],
SIGMAS : [
.026,
.025,
.025,
.035,
.035,
.079,
.079,
.072,
.072,
.062,
.062,
.107,
.107,
.087,
.087,
.089,
.089
]
SCALE_SIGMAS_BY_AREA : false
}
HEATMAP_SIZE : 64
###################
# Image Processing and Augmentation
# The image will be resized to [INPUT_SIZE, INPUT_SIZE, 3]
INPUT_SIZE : 256
# Tight bounding box crops, or loose?
LOOSE_BBOX_CROP : true
LOOSE_BBOX_PAD_FACTOR : 0.25
# Randomly flip the image left right, 50% chance of flipping
DO_RANDOM_FLIP_LEFT_RIGHT : true
# Randomly perturb the coordinates of the bounding boxes
# The fraction of time to do the shift, 0 is never, 1 is always
DO_RANDOM_BBOX_SHIFT : 0.5
# The maximum number of pixels to shift the coordinates
RANDOM_BBOX_SHIFT_EXTENT : 8
# Color distortion
# The fraction of time to distort the color, 0 is never, 1 is always
DO_COLOR_DISTORTION : 0.25
# Avoids slower ops (random_hue and random_contrast)
COLOR_DISTORT_FAST : False
# END: Image Processing and Augmentation
###################
# Input queues to the model
NUM_INPUT_THREADS : 2
BATCH_SIZE : 4
# 77544 39935
NUM_TRAIN_EXAMPLES : 56945
NUM_TRAIN_ITERATIONS : 300000
# Learning Rate parameters
INITIAL_LEARNING_RATE : 0.01
NUM_EPOCHS_PER_DELAY : 4
LEARNING_RATE_DECAY_FACTOR : 0.94
LEARNING_RATE_STAIRCASE : true
RMSPROP_DECAY : 0.9
RMSPROP_MOMENTUM : 0
RMSPROP_EPSILON : 1.0
# Capacity of the queue producing batched examples
QUEUE_CAPACITY : 20
# Minimum size of the queue to ensure good shuffling
QUEUE_MIN : 5
# Batch normalization. Constant governing the exponential moving average of
# the 'global' mean and variance for all activations.
BATCHNORM_MOVING_AVERAGE_DECAY : 0.9997
# The decay to use for the moving average.
MOVING_AVERAGE_DECAY : 0.9999
###################
# Background Heatmap Computation
BACKGROUND_HEATMAPS
# Add the right part to the background of the left part (and vice versa)
ADD_TARGET_LEFT_RIGHT_PAIRS : true
# Add the visible parts from background instances
ADD_NON_TARGET_PARTS : true
# For the background instances, should their occluded parts be added to the background heatmap?
NON_TARGET_INCLUDE_OCCLUDED : false
# Add the right part to the background of the left part for the background instances (and vice versa)
ADD_NON_TARGET_LEFT_RIGHT_PAIRS : true
# END Background heatmap computation
###################
###################
# Loss settings
LOSS
# Add the scaled background heatmap to the ground truth heatmap, then compute the loss
USE_SCALED_BACKGROUND : false
# The scaling to apply to each predicted heatmap. The number of scales must match the number of hourglass units
SCALE_FACTORS : [1., .5, .25, .125, .0625, .03125, .015625, 0]
# Use the background heatmap as a cost matrix
USE_BACKGROUND_AS_COST_MATRIX : false
COST_MATRIX_SCALE : 1.
# Don't take the background heatmaps into account
NO_BACKGROUND : true
# END Loss setting
###################
# Saving models and summaries
# How often, in seconds, to save summaries.
SAVE_SUMMARY_SECS : 30
# How often, in seconds, to save the model
SAVE_INTERVAL_SECS : 3600
# The maximum number of recent checkpoint files to keep.
MAX_TO_KEEP : 3
# In addition to keeping the most recent `max_to_keep` checkpoint files,
# you might want to keep one checkpoint file for every N hours of training
# The default value of 10,000 hours effectively disables the feature.
KEEP_CHECKPOINT_EVERY_N_HOURS : 24
# The frequency, in terms of global steps, that the loss and global step and logged.
LOG_EVERY_N_STEPS : 10