-
Notifications
You must be signed in to change notification settings - Fork 2
/
train.prototxt
370 lines (338 loc) · 24.8 KB
/
train.prototxt
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
layer {
name: "data"
type: "Data"
top: "data"
transform_param {
mirror: false
mean_value: 104.008
mean_value: 116.669
mean_value: 122.675
}
data_param {
source: "/train_data_lmdb/"
batch_size: 1
backend: LMDB
prefetch: 20
}
}
layer {
name: "label"
type: "Data"
top: "label"
data_param {
source: "/train_label_lmdb/"
batch_size: 1
backend: LMDB
prefetch: 20
}
}
layer { bottom: 'data' top: 'conv1_1' name: 'conv1_1' type: "Convolution"
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 64 pad: 5 kernel_size: 3 } }
layer { bottom: 'conv1_1' top: 'conv1_1' name: 'relu1_1' type: "ReLU" }
layer { bottom: 'conv1_1' top: 'conv1_2' name: 'conv1_2' type: "Convolution"
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 64 pad: 1 kernel_size: 3 } }
layer { bottom: 'conv1_2' top: 'conv1_2' name: 'relu1_2' type: "ReLU" }
layer { name: 'pool1' bottom: 'conv1_2' top: 'pool1' type: "Pooling"
pooling_param { pool: MAX kernel_size: 2 stride: 2 } }
layer { name: 'conv2_1' bottom: 'pool1' top: 'conv2_1' type: "Convolution"
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 128 pad: 1 kernel_size: 3 } }
layer { bottom: 'conv2_1' top: 'conv2_1' name: 'relu2_1' type: "ReLU" }
layer { bottom: 'conv2_1' top: 'conv2_2' name: 'conv2_2' type: "Convolution"
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 128 pad: 1 kernel_size: 3 } }
layer { bottom: 'conv2_2' top: 'conv2_2' name: 'relu2_2' type: "ReLU" }
layer { bottom: 'conv2_2' top: 'pool2' name: 'pool2' type: "Pooling"
pooling_param { pool: MAX kernel_size: 2 stride: 2 } }
layer { bottom: 'pool2' top: 'conv3_1' name: 'conv3_1' type: "Convolution"
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 256 pad: 1 kernel_size: 3 } }
layer { bottom: 'conv3_1' top: 'conv3_1' name: 'relu3_1' type: "ReLU" }
layer { bottom: 'conv3_1' top: 'conv3_2' name: 'conv3_2' type: "Convolution"
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 256 pad: 1 kernel_size: 3 } }
layer { bottom: 'conv3_2' top: 'conv3_2' name: 'relu3_2' type: "ReLU" }
layer { bottom: 'conv3_2' top: 'conv3_3' name: 'conv3_3' type: "Convolution"
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 256 pad: 1 kernel_size: 3 } }
layer { bottom: 'conv3_3' top: 'conv3_3' name: 'relu3_3' type: "ReLU" }
layer { bottom: 'conv3_3' top: 'pool3' name: 'pool3' type: "Pooling"
pooling_param { pool: MAX kernel_size: 2 stride: 2 } }
layer { bottom: 'pool3' top: 'conv4_1' name: 'conv4_1' type: "Convolution"
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 512 pad: 1 kernel_size: 3 } }
layer { bottom: 'conv4_1' top: 'conv4_1' name: 'relu4_1' type: "ReLU" }
layer { bottom: 'conv4_1' top: 'conv4_2' name: 'conv4_2' type: "Convolution"
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 512 pad: 1 kernel_size: 3 } }
layer { bottom: 'conv4_2' top: 'conv4_2' name: 'relu4_2' type: "ReLU" }
layer { bottom: 'conv4_2' top: 'conv4_3' name: 'conv4_3' type: "Convolution"
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 512 pad: 1 kernel_size: 3 } }
layer { bottom: 'conv4_3' top: 'conv4_3' name: 'relu4_3' type: "ReLU" }
layer { bottom: 'conv4_3' top: 'pool4' name: 'pool4' type: "Pooling"
pooling_param { pool: MAX kernel_size: 3 stride: 2 pad: 1 } }
layer { bottom: 'pool4' top: 'conv5_1' name: 'conv5_1' type: "Convolution"
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 512 pad: 1 kernel_size: 3 } }
layer { bottom: 'conv5_1' top: 'conv5_1' name: 'relu5_1' type: "ReLU" }
layer { bottom: 'conv5_1' top: 'conv5_2' name: 'conv5_2' type: "Convolution"
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 512 pad: 1 kernel_size: 3 } }
layer { bottom: 'conv5_2' top: 'conv5_2' name: 'relu5_2' type: "ReLU" }
layer { bottom: 'conv5_2' top: 'conv5_3' name: 'conv5_3' type: "Convolution"
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 512 pad: 1 kernel_size: 3 } }
layer { bottom: 'conv5_3' top: 'conv5_3' name: 'relu5_3' type: "ReLU" }
layer { bottom: 'conv5_3' top: 'pool5' name: 'pool5' type: "Pooling"
pooling_param { pool: MAX kernel_size: 3 stride: 2 pad: 1 } }
layer { bottom: 'pool5' top: 'pool5a' name: 'pool5a' type: "Pooling"
pooling_param { pool: AVE kernel_size: 3 stride: 1 pad: 1 } }
###DSN conv 6###
layer { name: 'conv1-dsn6' type: "Convolution" bottom: 'pool5a' top: 'conv1-dsn6'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 512 pad: 3 kernel_size: 7
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { bottom: 'conv1-dsn6' top: 'conv1-dsn6' name: 'relu1-dsn6' type: "ReLU" }
layer { name: 'conv2-dsn6' type: "Convolution" bottom: 'conv1-dsn6' top: 'conv2-dsn6'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 512 pad: 3 kernel_size: 7
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { bottom: 'conv2-dsn6' top: 'conv2-dsn6' name: 'relu2-dsn6' type: "ReLU" }
layer { name: 'conv3-dsn6' type: "Convolution" bottom: 'conv2-dsn6' top: 'conv3-dsn6'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 1 kernel_size: 1
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { type: "Deconvolution" name: 'upsample32_in_dsn6' bottom: 'conv3-dsn6' top: 'score-dsn6-up'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0} convolution_param { kernel_size: 64 stride: 32 num_output: 1 }}
layer { type: "Crop" name: 'crop' bottom: 'score-dsn6-up' bottom: 'data' top: 'upscore-dsn6' }
####xyy_add###
###Feat_CRF: (pool5a+conv3-dsn6)->conv5_3_fcrf###
layer { type: "Convolution" name: 'mess_pool5' bottom: 'pool5a' top: 'mess_pool5'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 512 pad: 1 kernel_size: 3 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 }} }
layer { type: 'Deconvolution' name: 'up_mess_pool5_d' bottom: 'mess_pool5' top: 'mess_pool5_d'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0} convolution_param { kernel_size: 4 stride: 2 num_output: 512 }}
layer { type: "Crop" name: "crop_f_5" bottom: "mess_pool5_d" bottom: "conv5_3" top: "mess_pool5_c" }
layer { type: "Scale" name: "mess_pool5_s" bottom: "mess_pool5_c" top: "mess_pool5_s" scale_param { bias_term: true}}
layer { type: "Convolution" name: 'mess_conv3-dsn6' bottom: 'conv3-dsn6' top: 'mess_conv3-dsn6'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 512 pad: 1 kernel_size: 3 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 }} }
layer { type: 'Deconvolution' name: 'up_dsn6_d' bottom: 'mess_conv3-dsn6' top: 'dsn6_d'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0} convolution_param { kernel_size: 4 stride: 2 num_output: 512 }}
layer { type: "Crop" name: "crop_s_6" bottom: "dsn6_d" bottom: "conv5_3" top: "dsn6_c" }
layer { type: "Scale" name: "dsn6_s" bottom: "dsn6_c" top: "dsn6_s" scale_param { bias_term: true}}
layer { type: "Eltwise" name: "sum_5" bottom: "mess_pool5_s" bottom: "dsn6_s" bottom: "conv5_3" top: "conv5_3_fcrf" eltwise_param {operation: SUM}}
####xyy_add###
###DSN conv 5###
layer { name: 'conv1-dsn5' type: "Convolution" bottom: 'conv5_3_fcrf' top: 'conv1-dsn5'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 512 pad: 2 kernel_size: 5
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { bottom: 'conv1-dsn5' top: 'conv1-dsn5' name: 'relu1-dsn5' type: "ReLU" }
layer { name: 'conv2-dsn5' type: "Convolution" bottom: 'conv1-dsn5' top: 'conv2-dsn5'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 512 pad: 2 kernel_size: 5
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { bottom: 'conv2-dsn5' top: 'conv2-dsn5' name: 'relu2-dsn5' type: "ReLU" }
layer { name: 'conv3-dsn5' type: "Convolution" bottom: 'conv2-dsn5' top: 'conv3-dsn5'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 1 kernel_size: 1
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { type: "Deconvolution" name: 'upsample16_in_dsn5' bottom: 'conv3-dsn5' top: 'score-dsn5-up'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0}
convolution_param { kernel_size: 32 stride: 16 num_output: 1 } }
layer { type: "Crop" name: 'crop' bottom: 'score-dsn5-up' bottom: 'data' top: 'upscore-dsn5' }
####xyy_add###
###Feat_CRF: (conv5_3+conv3-dsn5)->conv4_3_fcrf###
layer { type: "Convolution" name: 'mess_conv5_3' bottom: 'conv5_3_fcrf' top: 'mess_conv5_3'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 512 pad: 1 kernel_size: 3 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 }} }
layer { type: 'Deconvolution' name: 'up_mess_conv5_3_d' bottom: 'mess_conv5_3' top: 'mess_conv5_3_d'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0} convolution_param { kernel_size: 4 stride: 2 num_output: 512 }}
layer { type: "Crop" name: "crop_4" bottom: "mess_conv5_3_d" bottom: "conv4_3" top: "mess_conv5_3_c" }
layer { type: "Scale" name: "mess_conv5_3_s" bottom: "mess_conv5_3_c" top: "mess_conv5_3_s" scale_param { bias_term: true}}
layer { type: "Convolution" name: 'mess_conv3-dsn5' bottom: 'conv3-dsn5' top: 'mess_conv3-dsn5'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 512 pad: 1 kernel_size: 3 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 }} }
layer { type: 'Deconvolution' name: 'up_dsn5_d' bottom: 'mess_conv3-dsn5' top: 'dsn5_d'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0} convolution_param { kernel_size: 4 stride: 2 num_output: 512 }}
layer { type: "Crop" name: "crop_s_5" bottom: "dsn5_d" bottom: "conv4_3" top: "dsn5_c" }
layer { type: "Scale" name: "dsn5_s" bottom: "dsn5_c" top: "dsn5_s" scale_param { bias_term: true}}
layer { type: "Eltwise" name: "sum_4" bottom: "mess_conv5_3_s" bottom: "dsn5_s" bottom: "conv4_3" top: "conv4_3_fcrf" eltwise_param {operation: SUM}}
####xyy_add###
###DSN conv 4###
layer { name: 'conv1-dsn4' type: "Convolution" bottom: 'conv4_3_fcrf' top: 'conv1-dsn4'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 256 pad: 2 kernel_size: 5
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { bottom: 'conv1-dsn4' top: 'conv1-dsn4' name: 'relu1-dsn4' type: "ReLU" }
layer { name: 'conv2-dsn4' type: "Convolution" bottom: 'conv1-dsn4' top: 'conv2-dsn4'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 256 pad: 2 kernel_size: 5
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { bottom: 'conv2-dsn4' top: 'conv2-dsn4' name: 'relu2-dsn4' type: "ReLU" }
layer { name: 'conv3-dsn4' type: "Convolution" bottom: 'conv2-dsn4' top: 'conv3-dsn4'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 1 kernel_size: 1
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { type: "Deconvolution" name: 'upsample4_dsn6' bottom: 'conv3-dsn6' top: 'score-dsn6-up-4'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0}
convolution_param { kernel_size: 8 stride: 4 num_output: 1 } }
layer { type: "Crop" name: 'crop' bottom: 'score-dsn6-up-4' bottom: 'conv3-dsn4' top: 'upscore-dsn6-4' }
layer { type: "Deconvolution" name: 'upsample2_dsn5' bottom: 'conv3-dsn5' top: 'score-dsn5-up-4'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0}
convolution_param { kernel_size: 4 stride: 2 num_output: 1 } }
layer { type: "Crop" name: 'crop' bottom: 'score-dsn5-up-4' bottom: 'conv3-dsn4' top: 'upscore-dsn5-4' }
layer { name: "concat-dsn4" bottom: "conv3-dsn4" bottom: "upscore-dsn6-4" bottom: "upscore-dsn5-4"
top: "concat-dsn4" type: "Concat" concat_param { concat_dim: 1} }
layer { name: 'conv4-dsn4' type: "Convolution" bottom: 'concat-dsn4' top: 'conv4-dsn4'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 1 kernel_size: 1
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { type: "Deconvolution" name: 'upsample8_in_dsn4' bottom: 'conv4-dsn4' top: 'score-dsn4-up'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0}
convolution_param { kernel_size: 16 stride: 8 num_output: 1 } }
layer { type: "Crop" name: 'crop' bottom: 'score-dsn4-up' bottom: 'data' top: 'upscore-dsn4' }
####xyy_add###
###Feat_CRF: (conv4_3+conv4-dsn4)->conv3_3_fcrf###
layer { type: "Convolution" name: 'mess_conv4_3' bottom: 'conv4_3_fcrf' top: 'mess_conv4_3'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 256 pad: 1 kernel_size: 3 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 }} }
layer { type: 'Deconvolution' name: 'up_mess_conv4_3_d' bottom: 'mess_conv4_3' top: 'mess_conv4_3_d'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0} convolution_param { kernel_size: 4 stride: 2 num_output: 256 }}
layer { type: "Crop" name: "crop_3" bottom: "mess_conv4_3_d" bottom: "conv3_3" top: "mess_conv4_3_c" }
layer { type: "Scale" name: "mess_conv4_3_s" bottom: "mess_conv4_3_c" top: "mess_conv4_3_s" scale_param { bias_term: true}}
layer { type: "Convolution" name: 'mess_conv4-dsn4' bottom: 'conv4-dsn4' top: 'mess_conv4-dsn4'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 256 pad: 1 kernel_size: 3 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 }} }
layer { type: 'Deconvolution' name: 'up_dsn4_d' bottom: 'mess_conv4-dsn4' top: 'dsn4_d'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0} convolution_param { kernel_size: 4 stride: 2 num_output: 256 }}
layer { type: "Crop" name: "crop_s_4" bottom: "dsn4_d" bottom: "conv3_3" top: "dsn4_c" }
layer { type: "Scale" name: "dsn4_s" bottom: "dsn4_c" top: "dsn4_s" scale_param { bias_term: true}}
layer { type: "Eltwise" name: "sum_3" bottom: "mess_conv4_3_s" bottom: "dsn4_s" bottom: "conv3_3" top: "conv3_3_fcrf" eltwise_param {operation: SUM}}
####xyy_add###
### DSN conv 3 ###
layer { name: 'conv1-dsn3' type: "Convolution" bottom: 'conv3_3_fcrf' top: 'conv1-dsn3'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 256 pad: 2 kernel_size: 5
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { bottom: 'conv1-dsn3' top: 'conv1-dsn3' name: 'relu1-dsn3' type: "ReLU" }
layer { name: 'conv2-dsn3' type: "Convolution" bottom: 'conv1-dsn3' top: 'conv2-dsn3'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 256 pad: 2 kernel_size: 5
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { bottom: 'conv2-dsn3' top: 'conv2-dsn3' name: 'relu2-dsn3' type: "ReLU" }
layer { name: 'conv3-dsn3' type: "Convolution" bottom: 'conv2-dsn3' top: 'conv3-dsn3'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 1 kernel_size: 1
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { type: "Deconvolution" name: 'upsample8_dsn6' bottom: 'conv3-dsn6' top: 'score-dsn6-up-3'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0}
convolution_param { kernel_size: 16 stride: 8 num_output: 1 } }
layer { type: "Crop" name: 'crop' bottom: 'score-dsn6-up-3' bottom: 'conv3-dsn3' top: 'upscore-dsn6-3' }
layer { type: "Deconvolution" name: 'upsample4_dsn5' bottom: 'conv3-dsn5' top: 'score-dsn5-up-3'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0}
convolution_param { kernel_size: 8 stride: 4 num_output: 1 } }
layer { type: "Crop" name: 'crop' bottom: 'score-dsn5-up-3' bottom: 'conv3-dsn3' top: 'upscore-dsn5-3' }
layer { name: "concat-dsn3" bottom: "conv3-dsn3" bottom: "upscore-dsn6-3" bottom: "upscore-dsn5-3"
top: "concat-dsn3" type: "Concat" concat_param { concat_dim: 1} }
layer { name: 'conv4-dsn3' type: "Convolution" bottom: 'concat-dsn3' top: 'conv4-dsn3'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 1 kernel_size: 1
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { type: "Deconvolution" name: 'upsample4_in_dsn3' bottom: 'conv4-dsn3' top: 'score-dsn3-up'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0}
convolution_param { kernel_size: 8 stride: 4 num_output: 1 } }
layer { type: "Crop" name: 'crop' bottom: 'score-dsn3-up' bottom: 'data' top: 'upscore-dsn3' }
####xyy_add###
###Feat_CRF: (conv3_3+conv4-dsn3)->conv2_2_fcrf###
layer { type: "Convolution" name: 'mess_conv3_3' bottom: 'conv3_3_fcrf' top: 'mess_conv3_3'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 128 pad: 1 kernel_size: 3 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 }} }
layer { type: 'Deconvolution' name: 'up_mess_conv3_3_d' bottom: 'mess_conv3_3' top: 'mess_conv3_3_d'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0} convolution_param { kernel_size: 4 stride: 2 num_output: 128 }}
layer { type: "Crop" name: "crop_2" bottom: "mess_conv3_3_d" bottom: "conv2_2" top: "mess_conv3_3_c" }
layer { type: "Scale" name: "mess_conv3_3_s" bottom: "mess_conv3_3_c" top: "mess_conv3_3_s" scale_param { bias_term: true}}
layer { type: "Convolution" name: 'mess_conv4-dsn3' bottom: 'conv4-dsn3' top: 'mess_conv4-dsn3'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 128 pad: 1 kernel_size: 3 weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 }} }
layer { type: 'Deconvolution' name: 'up_dsn3_d' bottom: 'mess_conv4-dsn3' top: 'dsn3_d'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0} convolution_param { kernel_size: 4 stride: 2 num_output: 128 }}
layer { type: "Crop" name: "crop_s_3" bottom: "dsn3_d" bottom: "conv2_2" top: "dsn3_c" }
layer { type: "Scale" name: "dsn3_s" bottom: "dsn3_c" top: "dsn3_s" scale_param { bias_term: true}}
layer { type: "Eltwise" name: "sum_2" bottom: "mess_conv3_3_s" bottom: "dsn3_s" bottom: "conv2_2" top: "conv2_2_fcrf" eltwise_param {operation: SUM}}
####xyy_add###
### DSN conv 2 ###
layer { name: 'conv1-dsn2' type: "Convolution" bottom: 'conv2_2_fcrf' top: 'conv1-dsn2'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 128 pad: 1 kernel_size: 3
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { bottom: 'conv1-dsn2' top: 'conv1-dsn2' name: 'relu1-dsn2' type: "ReLU" }
layer { name: 'conv2-dsn2' type: "Convolution" bottom: 'conv1-dsn2' top: 'conv2-dsn2'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 128 pad: 1 kernel_size: 3
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { bottom: 'conv2-dsn2' top: 'conv2-dsn2' name: 'relu2-dsn2' type: "ReLU" }
layer { name: 'conv3-dsn2' type: "Convolution" bottom: 'conv2-dsn2' top: 'conv3-dsn2'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 1 kernel_size: 1
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { type: "Deconvolution" name: 'upsample16_dsn6' bottom: 'conv3-dsn6' top: 'score-dsn6-up-2'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0}
convolution_param { kernel_size: 32 stride: 16 num_output: 1 } }
layer { type: "Crop" name: 'crop' bottom: 'score-dsn6-up-2' bottom: 'conv3-dsn2' top: 'upscore-dsn6-2' }
layer { type: "Deconvolution" name: 'upsample8_dsn5' bottom: 'conv3-dsn5' top: 'score-dsn5-up-2'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0}
convolution_param { kernel_size: 16 stride: 8 num_output: 1 } }
layer { type: "Crop" name: 'crop' bottom: 'score-dsn5-up-2' bottom: 'conv3-dsn2' top: 'upscore-dsn5-2' }
layer { type: "Deconvolution" name: 'upsample4_dsn4' bottom: 'conv4-dsn4' top: 'score-dsn4-up-2'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0}
convolution_param { kernel_size: 8 stride: 4 num_output: 1 } }
layer { type: "Crop" name: 'crop' bottom: 'score-dsn4-up-2' bottom: 'conv3-dsn2' top: 'upscore-dsn4-2' }
layer { type: "Deconvolution" name: 'upsample2_dsn3' bottom: 'conv4-dsn3' top: 'score-dsn3-up-2'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0}
convolution_param { kernel_size: 4 stride: 2 num_output: 1 } }
layer { type: "Crop" name: 'crop' bottom: 'score-dsn3-up-2' bottom: 'conv3-dsn2' top: 'upscore-dsn3-2' }
layer { name: "concat-dsn2" bottom: "conv3-dsn2" bottom: "upscore-dsn5-2" bottom: "upscore-dsn4-2" bottom: "upscore-dsn6-2"
bottom: "upscore-dsn3-2" top: "concat-dsn2" type: "Concat" concat_param { concat_dim: 1} }
layer { name: 'conv4-dsn2' type: "Convolution" bottom: 'concat-dsn2' top: 'conv4-dsn2'
param { lr_mult: 1 decay_mult: 1 } param { lr_mult: 2 decay_mult: 0}
convolution_param { engine: CAFFE num_output: 1 kernel_size: 1
weight_filler { type: "gaussian" std: 0.01 } bias_filler { type: "constant" value: 0 } } }
layer { type: "Deconvolution" name: 'upsample2_in_dsn2' bottom: 'conv4-dsn2' top: 'score-dsn2-up'
param { lr_mult: 0 decay_mult: 1 } param { lr_mult: 0 decay_mult: 0}
convolution_param { kernel_size: 4 stride: 2 num_output: 1 } }
layer { type: "Crop" name: 'crop' bottom: 'score-dsn2-up' bottom: 'data' top: 'upscore-dsn2' }
#######################################################################
##Message Passing using CCRF 1
layer {
name: "inference11"
type: "MultiStageMeanfield" bottom: "upscore-dsn6" bottom: "upscore-dsn5" bottom: "data" top: "predicted-map1"
param {lr_mult: 10000 }
param {lr_mult: 10000 }
multi_stage_meanfield_param { num_iterations: 3 theta_alpha: 60 theta_beta: 5 theta_gamma: 3 spatial_weight: 1 bilateral_weight: 1 } }
##Message Passing using CCRF 2
layer {
name: "inference12"
type: "MultiStageMeanfield" bottom: "upscore-dsn4" bottom: "predicted-map1" bottom: "data" top: "predicted-map2"
param {lr_mult: 10000 }
param {lr_mult: 10000 }
multi_stage_meanfield_param { num_iterations: 3 theta_alpha: 60 theta_beta: 5 theta_gamma: 3 spatial_weight: 1 bilateral_weight: 1 } }
##Message Passing using CCRF 3
layer {
name: "inference13"
type: "MultiStageMeanfield" bottom: "upscore-dsn3" bottom: "predicted-map2" bottom: "data" top: "predicted-map3"
param {lr_mult: 10000 }
param {lr_mult: 10000 }
multi_stage_meanfield_param { num_iterations: 3 theta_alpha: 60 theta_beta: 5 theta_gamma: 3 spatial_weight: 1 bilateral_weight: 1 } }
##Message Passing using CCRF 4
layer {
name: "inference14"
type: "MultiStageMeanfield" bottom: "upscore-dsn2" bottom: "predicted-map3" bottom: "data" top: "predicted-map4"
param {lr_mult: 10000 }
param {lr_mult: 10000 }
multi_stage_meanfield_param { num_iterations: 3 theta_alpha: 10 theta_beta: 10 theta_gamma: 10 spatial_weight: 1 bilateral_weight: 1 } }
layer {type: "SigmoidCrossEntropyLoss" bottom: "predicted-map4" bottom: "label" name: "predicted-map4-loss" top:"predicted-map4-loss"}