Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: "ResNet-18"
- layer {
- name: "data"
- type: "Input"
- top: "data"
- input_param {
- shape {
- dim: 1
- dim: 1
- dim: 720
- dim: 720
- }
- }
- }
- ############## Light-ResNet Input Frames ###############
- layer {
- name: "conv1"
- type: "Convolution"
- bottom: "data"
- top: "conv1"
- convolution_param {
- num_output: 64
- pad: 3
- kernel_size: 7
- stride: 2
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn_conv1"
- type: "BatchNorm"
- bottom: "conv1"
- top: "conv1"
- batch_norm_param {
- }
- }
- layer {
- name: "scale_conv1"
- type: "Scale"
- bottom: "conv1"
- top: "conv1"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "conv1_relu"
- type: "ReLU"
- bottom: "conv1"
- top: "conv1"
- }
- layer {
- name: "pool1"
- type: "Pooling"
- bottom: "conv1"
- top: "pool1"
- pooling_param {
- pool: MAX
- kernel_size: 3
- stride: 2
- }
- }
- layer {
- name: "res2a_branch1"
- type: "Convolution"
- bottom: "pool1"
- top: "res2a_branch1"
- convolution_param {
- num_output: 256
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2a_branch1"
- type: "BatchNorm"
- bottom: "res2a_branch1"
- top: "res2a_branch1"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2a_branch1"
- type: "Scale"
- bottom: "res2a_branch1"
- top: "res2a_branch1"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2a_branch2a"
- type: "Convolution"
- bottom: "pool1"
- top: "res2a_branch2a"
- convolution_param {
- num_output: 64
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2a_branch2a"
- type: "BatchNorm"
- bottom: "res2a_branch2a"
- top: "res2a_branch2a"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2a_branch2a"
- type: "Scale"
- bottom: "res2a_branch2a"
- top: "res2a_branch2a"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2a_branch2a_relu"
- type: "ReLU"
- bottom: "res2a_branch2a"
- top: "res2a_branch2a"
- }
- layer {
- name: "res2a_branch2b"
- type: "Convolution"
- bottom: "res2a_branch2a"
- top: "res2a_branch2b"
- convolution_param {
- num_output: 64
- bias_term: false
- pad: 1
- kernel_size: 3
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2a_branch2b"
- type: "BatchNorm"
- bottom: "res2a_branch2b"
- top: "res2a_branch2b"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2a_branch2b"
- type: "Scale"
- bottom: "res2a_branch2b"
- top: "res2a_branch2b"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2a_branch2b_relu"
- type: "ReLU"
- bottom: "res2a_branch2b"
- top: "res2a_branch2b"
- }
- layer {
- name: "res2a_branch2c"
- type: "Convolution"
- bottom: "res2a_branch2b"
- top: "res2a_branch2c"
- convolution_param {
- num_output: 256
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2a_branch2c"
- type: "BatchNorm"
- bottom: "res2a_branch2c"
- top: "res2a_branch2c"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2a_branch2c"
- type: "Scale"
- bottom: "res2a_branch2c"
- top: "res2a_branch2c"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2a"
- type: "Eltwise"
- bottom: "res2a_branch1"
- bottom: "res2a_branch2c"
- top: "res2a"
- }
- layer {
- name: "res2a_relu"
- type: "ReLU"
- bottom: "res2a"
- top: "res2a"
- }
- layer {
- name: "res2b_branch2a"
- type: "Convolution"
- bottom: "res2a"
- top: "res2b_branch2a"
- convolution_param {
- num_output: 64
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2b_branch2a"
- type: "BatchNorm"
- bottom: "res2b_branch2a"
- top: "res2b_branch2a"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2b_branch2a"
- type: "Scale"
- bottom: "res2b_branch2a"
- top: "res2b_branch2a"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2b_branch2a_relu"
- type: "ReLU"
- bottom: "res2b_branch2a"
- top: "res2b_branch2a"
- }
- layer {
- name: "res2b_branch2b"
- type: "Convolution"
- bottom: "res2b_branch2a"
- top: "res2b_branch2b"
- convolution_param {
- num_output: 64
- bias_term: false
- pad: 1
- kernel_size: 3
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2b_branch2b"
- type: "BatchNorm"
- bottom: "res2b_branch2b"
- top: "res2b_branch2b"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2b_branch2b"
- type: "Scale"
- bottom: "res2b_branch2b"
- top: "res2b_branch2b"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2b_branch2b_relu"
- type: "ReLU"
- bottom: "res2b_branch2b"
- top: "res2b_branch2b"
- }
- layer {
- name: "res2b_branch2c"
- type: "Convolution"
- bottom: "res2b_branch2b"
- top: "res2b_branch2c"
- convolution_param {
- num_output: 256
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2b_branch2c"
- type: "BatchNorm"
- bottom: "res2b_branch2c"
- top: "res2b_branch2c"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2b_branch2c"
- type: "Scale"
- bottom: "res2b_branch2c"
- top: "res2b_branch2c"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2b"
- type: "Eltwise"
- bottom: "res2a"
- bottom: "res2b_branch2c"
- top: "res2b"
- }
- layer {
- name: "res2b_relu"
- type: "ReLU"
- bottom: "res2b"
- top: "res2b"
- }
- layer {
- name: "res2c_branch2a"
- type: "Convolution"
- bottom: "res2b"
- top: "res2c_branch2a"
- convolution_param {
- num_output: 64
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2c_branch2a"
- type: "BatchNorm"
- bottom: "res2c_branch2a"
- top: "res2c_branch2a"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2c_branch2a"
- type: "Scale"
- bottom: "res2c_branch2a"
- top: "res2c_branch2a"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2c_branch2a_relu"
- type: "ReLU"
- bottom: "res2c_branch2a"
- top: "res2c_branch2a"
- }
- layer {
- name: "res2c_branch2b"
- type: "Convolution"
- bottom: "res2c_branch2a"
- top: "res2c_branch2b"
- convolution_param {
- num_output: 64
- bias_term: false
- pad: 1
- kernel_size: 3
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2c_branch2b"
- type: "BatchNorm"
- bottom: "res2c_branch2b"
- top: "res2c_branch2b"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2c_branch2b"
- type: "Scale"
- bottom: "res2c_branch2b"
- top: "res2c_branch2b"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2c_branch2b_relu"
- type: "ReLU"
- bottom: "res2c_branch2b"
- top: "res2c_branch2b"
- }
- layer {
- name: "res2c_branch2c"
- type: "Convolution"
- bottom: "res2c_branch2b"
- top: "res2c_branch2c"
- convolution_param {
- num_output: 256
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2c_branch2c"
- type: "BatchNorm"
- bottom: "res2c_branch2c"
- top: "res2c_branch2c"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2c_branch2c"
- type: "Scale"
- bottom: "res2c_branch2c"
- top: "res2c_branch2c"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2c"
- type: "Eltwise"
- bottom: "res2b"
- bottom: "res2c_branch2c"
- top: "res2c"
- }
- layer {
- name: "res2c_relu"
- type: "ReLU"
- bottom: "res2c"
- top: "res2c"
- }
- layer {
- name: "res3a_branch1"
- type: "Convolution"
- bottom: "res2c"
- top: "res3a_branch1"
- convolution_param {
- num_output: 512
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 2
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn3a_branch1"
- type: "BatchNorm"
- bottom: "res3a_branch1"
- top: "res3a_branch1"
- batch_norm_param {
- }
- }
- layer {
- name: "scale3a_branch1"
- type: "Scale"
- bottom: "res3a_branch1"
- top: "res3a_branch1"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res3a_branch2a"
- type: "Convolution"
- bottom: "res2c"
- top: "res3a_branch2a"
- convolution_param {
- num_output: 128
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 2
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn3a_branch2a"
- type: "BatchNorm"
- bottom: "res3a_branch2a"
- top: "res3a_branch2a"
- batch_norm_param {
- }
- }
- layer {
- name: "scale3a_branch2a"
- type: "Scale"
- bottom: "res3a_branch2a"
- top: "res3a_branch2a"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res3a_branch2a_relu"
- type: "ReLU"
- bottom: "res3a_branch2a"
- top: "res3a_branch2a"
- }
- layer {
- name: "res3a_branch2b"
- type: "Convolution"
- bottom: "res3a_branch2a"
- top: "res3a_branch2b"
- convolution_param {
- num_output: 128
- bias_term: false
- pad: 1
- kernel_size: 3
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn3a_branch2b"
- type: "BatchNorm"
- bottom: "res3a_branch2b"
- top: "res3a_branch2b"
- batch_norm_param {
- }
- }
- layer {
- name: "scale3a_branch2b"
- type: "Scale"
- bottom: "res3a_branch2b"
- top: "res3a_branch2b"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res3a_branch2b_relu"
- type: "ReLU"
- bottom: "res3a_branch2b"
- top: "res3a_branch2b"
- }
- layer {
- name: "res3a_branch2c"
- type: "Convolution"
- bottom: "res3a_branch2b"
- top: "res3a_branch2c"
- convolution_param {
- num_output: 512
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn3a_branch2c"
- type: "BatchNorm"
- bottom: "res3a_branch2c"
- top: "res3a_branch2c"
- batch_norm_param {
- }
- }
- layer {
- name: "scale3a_branch2c"
- type: "Scale"
- bottom: "res3a_branch2c"
- top: "res3a_branch2c"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res3a"
- type: "Eltwise"
- bottom: "res3a_branch1"
- bottom: "res3a_branch2c"
- top: "res3a"
- }
- layer {
- name: "res3a_relu"
- type: "ReLU"
- bottom: "res3a"
- top: "res3a"
- }
- layer {
- name: "res3b_branch2a"
- type: "Convolution"
- bottom: "res3a"
- top: "res3b_branch2a"
- convolution_param {
- num_output: 128
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn3b_branch2a"
- type: "BatchNorm"
- bottom: "res3b_branch2a"
- top: "res3b_branch2a"
- batch_norm_param {
- }
- }
- layer {
- name: "scale3b_branch2a"
- type: "Scale"
- bottom: "res3b_branch2a"
- top: "res3b_branch2a"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res3b_branch2a_relu"
- type: "ReLU"
- bottom: "res3b_branch2a"
- top: "res3b_branch2a"
- }
- layer {
- name: "res3b_branch2b"
- type: "Convolution"
- bottom: "res3b_branch2a"
- top: "res3b_branch2b"
- convolution_param {
- num_output: 128
- bias_term: false
- pad: 1
- kernel_size: 3
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn3b_branch2b"
- type: "BatchNorm"
- bottom: "res3b_branch2b"
- top: "res3b_branch2b"
- batch_norm_param {
- }
- }
- layer {
- name: "scale3b_branch2b"
- type: "Scale"
- bottom: "res3b_branch2b"
- top: "res3b_branch2b"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res3b_branch2b_relu"
- type: "ReLU"
- bottom: "res3b_branch2b"
- top: "res3b_branch2b"
- }
- layer {
- name: "res3b_branch2c"
- type: "Convolution"
- bottom: "res3b_branch2b"
- top: "res3b_branch2c"
- convolution_param {
- num_output: 512
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn3b_branch2c"
- type: "BatchNorm"
- bottom: "res3b_branch2c"
- top: "res3b_branch2c"
- batch_norm_param {
- }
- }
- layer {
- name: "scale3b_branch2c"
- type: "Scale"
- bottom: "res3b_branch2c"
- top: "res3b_branch2c"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res3b"
- type: "Eltwise"
- bottom: "res3a"
- bottom: "res3b_branch2c"
- top: "res3b"
- }
- layer {
- name: "res3b_relu"
- type: "ReLU"
- bottom: "res3b"
- top: "res3b"
- }
- # -------- added by S.Ko-------
- layer {
- name: "poolFM"
- type: "Pooling"
- bottom: "res3b"
- top: "poolFM"
- pooling_param {
- pool: AVE
- kernel_size: 2
- stride: 2
- }
- }
- layers {
- name: 'upsampleFM'
- bottom: 'poolFM'
- top: 'upsampleFM'
- type: DECONVOLUTION
- weight_decay: 1
- weight_decay: 0
- convolution_param {
- num_output: 512
- pad: 0
- kernel_size: 2
- stride: 2
- weight_filler { type: 'xavier' }
- }
- }
- layers {
- name: 'concatFM'
- type: CONCAT
- bottom: 'res3b'
- bottom: 'upsampleFM'
- top: 'concatFM'
- }
- ############## Light-ResNet Background Frames ###############
- layer {
- name: "conv1-BG"
- type: "Convolution"
- bottom: "data"
- top: "conv1-BG"
- convolution_param {
- num_output: 64
- pad: 3
- kernel_size: 7
- stride: 2
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn_conv1-BG"
- type: "BatchNorm"
- bottom: "conv1-BG"
- top: "conv1-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale_conv1-BG"
- type: "Scale"
- bottom: "conv1-BG"
- top: "conv1-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "conv1_relu-BG"
- type: "ReLU"
- bottom: "conv1-BG"
- top: "conv1-BG"
- }
- layer {
- name: "pool1-BG"
- type: "Pooling"
- bottom: "conv1-BG"
- top: "pool1-BG"
- pooling_param {
- pool: MAX
- kernel_size: 3
- stride: 2
- }
- }
- layer {
- name: "res2a_branch1-BG"
- type: "Convolution"
- bottom: "pool1-BG"
- top: "res2a_branch1-BG"
- convolution_param {
- num_output: 256
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2a_branch1-BG"
- type: "BatchNorm"
- bottom: "res2a_branch1-BG"
- top: "res2a_branch1-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2a_branch1-BG"
- type: "Scale"
- bottom: "res2a_branch1-BG"
- top: "res2a_branch1-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2a_branch2a-BG"
- type: "Convolution"
- bottom: "pool1-BG"
- top: "res2a_branch2a-BG"
- convolution_param {
- num_output: 64
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2a_branch2a-BG"
- type: "BatchNorm"
- bottom: "res2a_branch2a-BG"
- top: "res2a_branch2a-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2a_branch2a-BG"
- type: "Scale"
- bottom: "res2a_branch2a-BG"
- top: "res2a_branch2a-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2a_branch2a_relu-BG"
- type: "ReLU"
- bottom: "res2a_branch2a-BG"
- top: "res2a_branch2a-BG"
- }
- layer {
- name: "res2a_branch2b-BG"
- type: "Convolution"
- bottom: "res2a_branch2a-BG"
- top: "res2a_branch2b-BG"
- convolution_param {
- num_output: 64
- bias_term: false
- pad: 1
- kernel_size: 3
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2a_branch2b-BG"
- type: "BatchNorm"
- bottom: "res2a_branch2b-BG"
- top: "res2a_branch2b-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2a_branch2b-BG"
- type: "Scale"
- bottom: "res2a_branch2b-BG"
- top: "res2a_branch2b-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2a_branch2b_relu-BG"
- type: "ReLU"
- bottom: "res2a_branch2b-BG"
- top: "res2a_branch2b-BG"
- }
- layer {
- name: "res2a_branch2c-BG"
- type: "Convolution"
- bottom: "res2a_branch2b-BG"
- top: "res2a_branch2c-BG"
- convolution_param {
- num_output: 256
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2a_branch2c-BG"
- type: "BatchNorm"
- bottom: "res2a_branch2c-BG"
- top: "res2a_branch2c-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2a_branch2c-BG"
- type: "Scale"
- bottom: "res2a_branch2c-BG"
- top: "res2a_branch2c-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2a-BG"
- type: "Eltwise"
- bottom: "res2a_branch1-BG"
- bottom: "res2a_branch2c-BG"
- top: "res2a-BG"
- }
- layer {
- name: "res2a_relu-BG"
- type: "ReLU"
- bottom: "res2a-BG"
- top: "res2a-BG"
- }
- layer {
- name: "res2b_branch2a-BG"
- type: "Convolution"
- bottom: "res2a-BG"
- top: "res2b_branch2a-BG"
- convolution_param {
- num_output: 64
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2b_branch2a-BG"
- type: "BatchNorm"
- bottom: "res2b_branch2a-BG"
- top: "res2b_branch2a-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2b_branch2a-BG"
- type: "Scale"
- bottom: "res2b_branch2a-BG"
- top: "res2b_branch2a-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2b_branch2a_relu-BG"
- type: "ReLU"
- bottom: "res2b_branch2a-BG"
- top: "res2b_branch2a-BG"
- }
- layer {
- name: "res2b_branch2b-BG"
- type: "Convolution"
- bottom: "res2b_branch2a-BG"
- top: "res2b_branch2b-BG"
- convolution_param {
- num_output: 64
- bias_term: false
- pad: 1
- kernel_size: 3
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2b_branch2b-BG"
- type: "BatchNorm"
- bottom: "res2b_branch2b-BG"
- top: "res2b_branch2b-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2b_branch2b-BG"
- type: "Scale"
- bottom: "res2b_branch2b-BG"
- top: "res2b_branch2b-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2b_branch2b_relu-BG"
- type: "ReLU"
- bottom: "res2b_branch2b-BG"
- top: "res2b_branch2b-BG"
- }
- layer {
- name: "res2b_branch2c-BG"
- type: "Convolution"
- bottom: "res2b_branch2b-BG"
- top: "res2b_branch2c-BG"
- convolution_param {
- num_output: 256
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2b_branch2c-BG"
- type: "BatchNorm"
- bottom: "res2b_branch2c-BG"
- top: "res2b_branch2c-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2b_branch2c-BG"
- type: "Scale"
- bottom: "res2b_branch2c-BG"
- top: "res2b_branch2c-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2b-BG"
- type: "Eltwise"
- bottom: "res2a-BG"
- bottom: "res2b_branch2c-BG"
- top: "res2b-BG"
- }
- layer {
- name: "res2b_relu-BG"
- type: "ReLU"
- bottom: "res2b-BG"
- top: "res2b-BG"
- }
- layer {
- name: "res2c_branch2a-BG"
- type: "Convolution"
- bottom: "res2b-BG"
- top: "res2c_branch2a-BG"
- convolution_param {
- num_output: 64
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2c_branch2a-BG"
- type: "BatchNorm"
- bottom: "res2c_branch2a-BG"
- top: "res2c_branch2a-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2c_branch2a-BG"
- type: "Scale"
- bottom: "res2c_branch2a-BG"
- top: "res2c_branch2a-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2c_branch2a_relu-BG"
- type: "ReLU"
- bottom: "res2c_branch2a-BG"
- top: "res2c_branch2a-BG"
- }
- layer {
- name: "res2c_branch2b-BG"
- type: "Convolution"
- bottom: "res2c_branch2a-BG"
- top: "res2c_branch2b-BG"
- convolution_param {
- num_output: 64
- bias_term: false
- pad: 1
- kernel_size: 3
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2c_branch2b-BG"
- type: "BatchNorm"
- bottom: "res2c_branch2b-BG"
- top: "res2c_branch2b-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2c_branch2b-BG"
- type: "Scale"
- bottom: "res2c_branch2b-BG"
- top: "res2c_branch2b-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2c_branch2b_relu-BG"
- type: "ReLU"
- bottom: "res2c_branch2b-BG"
- top: "res2c_branch2b-BG"
- }
- layer {
- name: "res2c_branch2c-BG"
- type: "Convolution"
- bottom: "res2c_branch2b-BG"
- top: "res2c_branch2c-BG"
- convolution_param {
- num_output: 256
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn2c_branch2c-BG"
- type: "BatchNorm"
- bottom: "res2c_branch2c-BG"
- top: "res2c_branch2c-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale2c_branch2c-BG"
- type: "Scale"
- bottom: "res2c_branch2c-BG"
- top: "res2c_branch2c-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res2c-BG"
- type: "Eltwise"
- bottom: "res2b-BG"
- bottom: "res2c_branch2c-BG"
- top: "res2c-BG"
- }
- layer {
- name: "res2c_relu-BG"
- type: "ReLU"
- bottom: "res2c-BG"
- top: "res2c-BG"
- }
- layer {
- name: "res3a_branch1-BG"
- type: "Convolution"
- bottom: "res2c-BG"
- top: "res3a_branch1-BG"
- convolution_param {
- num_output: 512
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 2
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn3a_branch1-BG"
- type: "BatchNorm"
- bottom: "res3a_branch1-BG"
- top: "res3a_branch1-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale3a_branch1-BG"
- type: "Scale"
- bottom: "res3a_branch1-BG"
- top: "res3a_branch1-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res3a_branch2a-BG"
- type: "Convolution"
- bottom: "res2c-BG"
- top: "res3a_branch2a-BG"
- convolution_param {
- num_output: 128
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 2
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn3a_branch2a-BG"
- type: "BatchNorm"
- bottom: "res3a_branch2a-BG"
- top: "res3a_branch2a-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale3a_branch2a-BG"
- type: "Scale"
- bottom: "res3a_branch2a-BG"
- top: "res3a_branch2a-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res3a_branch2a_relu-BG"
- type: "ReLU"
- bottom: "res3a_branch2a-BG"
- top: "res3a_branch2a-BG"
- }
- layer {
- name: "res3a_branch2b-BG"
- type: "Convolution"
- bottom: "res3a_branch2a-BG"
- top: "res3a_branch2b-BG"
- convolution_param {
- num_output: 128
- bias_term: false
- pad: 1
- kernel_size: 3
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn3a_branch2b-BG"
- type: "BatchNorm"
- bottom: "res3a_branch2b-BG"
- top: "res3a_branch2b-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale3a_branch2b-BG"
- type: "Scale"
- bottom: "res3a_branch2b-BG"
- top: "res3a_branch2b-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res3a_branch2b_relu-BG"
- type: "ReLU"
- bottom: "res3a_branch2b-BG"
- top: "res3a_branch2b-BG"
- }
- layer {
- name: "res3a_branch2c-BG"
- type: "Convolution"
- bottom: "res3a_branch2b-BG"
- top: "res3a_branch2c-BG"
- convolution_param {
- num_output: 512
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn3a_branch2c-BG"
- type: "BatchNorm"
- bottom: "res3a_branch2c-BG"
- top: "res3a_branch2c-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale3a_branch2c-BG"
- type: "Scale"
- bottom: "res3a_branch2c-BG"
- top: "res3a_branch2c-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res3a-BG"
- type: "Eltwise"
- bottom: "res3a_branch1-BG"
- bottom: "res3a_branch2c-BG"
- top: "res3a-BG"
- }
- layer {
- name: "res3a_relu-BG"
- type: "ReLU"
- bottom: "res3a-BG"
- top: "res3a-BG"
- }
- layer {
- name: "res3b_branch2a-BG"
- type: "Convolution"
- bottom: "res3a-BG"
- top: "res3b_branch2a-BG"
- convolution_param {
- num_output: 128
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn3b_branch2a-BG"
- type: "BatchNorm"
- bottom: "res3b_branch2a-BG"
- top: "res3b_branch2a-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale3b_branch2a-BG"
- type: "Scale"
- bottom: "res3b_branch2a-BG"
- top: "res3b_branch2a-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res3b_branch2a_relu-BG"
- type: "ReLU"
- bottom: "res3b_branch2a-BG"
- top: "res3b_branch2a-BG"
- }
- layer {
- name: "res3b_branch2b-BG"
- type: "Convolution"
- bottom: "res3b_branch2a-BG"
- top: "res3b_branch2b-BG"
- convolution_param {
- num_output: 128
- bias_term: false
- pad: 1
- kernel_size: 3
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn3b_branch2b-BG"
- type: "BatchNorm"
- bottom: "res3b_branch2b-BG"
- top: "res3b_branch2b-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale3b_branch2b-BG"
- type: "Scale"
- bottom: "res3b_branch2b-BG"
- top: "res3b_branch2b-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res3b_branch2b_relu-BG"
- type: "ReLU"
- bottom: "res3b_branch2b-BG"
- top: "res3b_branch2b-BG"
- }
- layer {
- name: "res3b_branch2c-BG"
- type: "Convolution"
- bottom: "res3b_branch2b-BG"
- top: "res3b_branch2c-BG"
- convolution_param {
- num_output: 512
- bias_term: false
- pad: 0
- kernel_size: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0.2
- }
- }
- }
- layer {
- name: "bn3b_branch2c-BG"
- type: "BatchNorm"
- bottom: "res3b_branch2c-BG"
- top: "res3b_branch2c-BG"
- batch_norm_param {
- }
- }
- layer {
- name: "scale3b_branch2c-BG"
- type: "Scale"
- bottom: "res3b_branch2c-BG"
- top: "res3b_branch2c-BG"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "res3b-BG"
- type: "Eltwise"
- bottom: "res3a-BG"
- bottom: "res3b_branch2c-BG"
- top: "res3b-BG"
- }
- layer {
- name: "res3b_relu-BG"
- type: "ReLU"
- bottom: "res3b-BG"
- top: "res3b-BG"
- }
- # -------- added by S.Ko-------
- layer {
- name: "poolFM-BG"
- type: "Pooling"
- bottom: "res3b-BG"
- top: "poolFM-BG"
- pooling_param {
- pool: AVE
- kernel_size: 2
- stride: 2
- }
- }
- layers {
- name: 'upsampleFM-BG'
- bottom: 'poolFM-BG'
- top: 'upsampleFM-BG'
- type: DECONVOLUTION
- weight_decay: 1
- weight_decay: 0
- convolution_param {
- num_output: 512
- pad: 0
- kernel_size: 2
- stride: 2
- weight_filler { type: 'xavier' }
- }
- }
- layers {
- name: 'concatFM-BG'
- type: CONCAT
- bottom: 'res3b-BG'
- bottom: 'upsampleFM-BG'
- top: 'concatFM-BG'
- }
- ############## concate ###############
- layers {
- name: 'concatFM-SUM'
- type: CONCAT
- bottom: 'concatFM'
- bottom: 'concatFM-BG'
- top: 'concatFM-SUM'
- }
- layers { bottom: 'concatFM-SUM' top: 'd2c' name: 'conv_d2bc' type: CONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 256 pad: 0 kernel_size: 3 engine: CAFFE weight_filler { type: 'xavier' }} }
- layers { bottom: 'd2c' top: 'd2c' name: 'relu_d2c' type: RELU }
- layers { bottom: 'd2c' top: 'd3a' name: 'pool_d2c-3a' type: POOLING pooling_param { pool: MAX kernel_size: 2 stride: 2 } }
- layers { bottom: 'd3a' top: 'd3b' name: 'conv_d3ab' type: CONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 512 pad: 0 kernel_size: 3 engine: CAFFE weight_filler { type: 'xavier' }} }
- layers { bottom: 'd3b' top: 'd3b' name: 'relu_d3b' type: RELU }
- layers { bottom: 'd3b' top: 'd3c' name: 'conv_d3bc' type: CONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 512 pad: 0 kernel_size: 3 engine: CAFFE weight_filler { type: 'xavier' }} }
- layers { bottom: 'd3c' top: 'd3c' name: 'relu_d3c' type: RELU }
- layers { bottom: 'd3c' top: 'd3c' name: 'dropout_d3c' type: DROPOUT dropout_param { dropout_ratio: 0.5 }
- include: { phase: TRAIN }}
- layers { bottom: 'd3c' top: 'd4a' name: 'pool_d3c-4a' type: POOLING pooling_param { pool: MAX kernel_size: 2 stride: 2 } }
- layers { bottom: 'd4a' top: 'd4b' name: 'conv_d4ab' type: CONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 1024 pad: 0 kernel_size: 3 engine: CAFFE weight_filler { type: 'xavier' }} }
- layers { bottom: 'd4b' top: 'd4b' name: 'relu_d4b' type: RELU }
- layers { bottom: 'd4b' top: 'd4c' name: 'conv_d4bc' type: CONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 1024 pad: 0 kernel_size: 3 engine: CAFFE weight_filler { type: 'xavier' }} }
- layers { bottom: 'd4c' top: 'd4c' name: 'relu_d4c' type: RELU }
- layers { bottom: 'd4c' top: 'd4c' name: 'dropout_d4c' type: DROPOUT dropout_param { dropout_ratio: 0.5 }
- include: { phase: TRAIN }}
- layers { bottom: 'd4c' top: 'u3a' name: 'upconv_d4c_u3a' type: DECONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 512 pad: 0 kernel_size: 2 stride: 2 weight_filler { type: 'xavier' }} }
- layers { bottom: 'u3a' top: 'u3a' name: 'relu_u3a' type: RELU }
- layers { bottom: 'd3c' bottom: 'u3a' top: 'd3cc' name: 'crop_d3cd3cc' type: CROP }
- layers { bottom: 'u3a' bottom: 'd3cc' top: 'u3b' name: 'concat_d3cc_u3a-b' type: CONCAT }
- layers { bottom: 'u3b' top: 'u3c' name: 'conv_u3bc' type: CONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 512 pad: 0 kernel_size: 3 engine: CAFFE weight_filler { type: 'xavier' }} }
- layers { bottom: 'u3c' top: 'u3c' name: 'relu_u3c' type: RELU }
- layers { bottom: 'u3c' top: 'u3d' name: 'conv_u3cd' type: CONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 512 pad: 0 kernel_size: 3 engine: CAFFE weight_filler { type: 'xavier' }} }
- layers { bottom: 'u3d' top: 'u3d' name: 'relu_u3d' type: RELU }
- layers { bottom: 'u3d' top: 'u2a' name: 'upconv_u3d_u2a' type: DECONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 256 pad: 0 kernel_size: 2 stride: 2 weight_filler { type: 'xavier' }} }
- layers { bottom: 'u2a' top: 'u2a' name: 'relu_u2a' type: RELU }
- layers { bottom: 'd2c' bottom: 'u2a' top: 'd2cc' name: 'crop_d2cd2cc' type: CROP }
- layers { bottom: 'u2a' bottom: 'd2cc' top: 'u2b' name: 'concat_d2cc_u2a-b' type: CONCAT }
- layers { bottom: 'u2b' top: 'FINAL' name: 'conv_u2bc' type: CONVOLUTION blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0 convolution_param { num_output: 256 pad: 0 kernel_size: 3 engine: CAFFE weight_filler { type: 'xavier' }} }
Add Comment
Please, Sign In to add comment