Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: "resnet"
- layer {
- name: "inputl"
- type: "Data"
- top: "data"
- top: "label"
- include {
- phase: TRAIN
- }
- data_param {
- source: "train.lmdb"
- batch_size: 32
- backend: LMDB
- }
- }
- layer {
- name: "inputl"
- type: "MemoryData"
- top: "data"
- top: "label"
- include {
- phase: TEST
- }
- memory_data_param {
- batch_size: 32
- channels: 1
- height: 1024
- width: 69
- }
- }
- layer {
- name: "conv_data"
- type: "Convolution"
- bottom: "data"
- top: "conv1"
- convolution_param {
- num_output: 256
- pad: 1
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 69
- }
- }
- layer {
- name: "bn_conv1"
- type: "BatchNorm"
- bottom: "conv1"
- top: "conv1"
- }
- layer {
- name: "scale_conv1"
- type: "Scale"
- bottom: "conv1"
- top: "conv1"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "act_ReLU_conv1"
- type: "ReLU"
- bottom: "conv1"
- top: "conv1"
- }
- layer {
- name: "conv_conv1"
- type: "Convolution"
- bottom: "conv1"
- top: "conv1_branch1"
- convolution_param {
- num_output: 256
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "bn_conv1_branch1"
- type: "BatchNorm"
- bottom: "conv1_branch1"
- top: "conv1_branch1"
- }
- layer {
- name: "scale_conv1_branch1"
- type: "Scale"
- bottom: "conv1_branch1"
- top: "conv1_branch1"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "act_ReLU_conv1_branch1"
- type: "ReLU"
- bottom: "conv1_branch1"
- top: "conv1_branch1"
- }
- layer {
- name: "conv_conv1_branch1"
- type: "Convolution"
- bottom: "conv1_branch1"
- top: "conv2_branch1"
- convolution_param {
- num_output: 256
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "shortcut_conv1"
- type: "Convolution"
- bottom: "conv1"
- top: "conv1_branch"
- convolution_param {
- num_output: 256
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "elt_res1"
- type: "Eltwise"
- bottom: "conv1_branch"
- bottom: "conv1_branch1"
- top: "res1"
- }
- layer {
- name: "bn_res1"
- type: "BatchNorm"
- bottom: "res1"
- top: "res1"
- }
- layer {
- name: "scale_res1"
- type: "Scale"
- bottom: "res1"
- top: "res1"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "act_ReLU_res1"
- type: "ReLU"
- bottom: "res1"
- top: "res1"
- }
- layer {
- name: "conv_res1"
- type: "Convolution"
- bottom: "res1"
- top: "conv1_branch2"
- convolution_param {
- num_output: 256
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "bn_conv1_branch2"
- type: "BatchNorm"
- bottom: "conv1_branch2"
- top: "conv1_branch2"
- }
- layer {
- name: "scale_conv1_branch2"
- type: "Scale"
- bottom: "conv1_branch2"
- top: "conv1_branch2"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "act_ReLU_conv1_branch2"
- type: "ReLU"
- bottom: "conv1_branch2"
- top: "conv1_branch2"
- }
- layer {
- name: "conv_conv1_branch2"
- type: "Convolution"
- bottom: "conv1_branch2"
- top: "conv2_branch2"
- convolution_param {
- num_output: 256
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "shortcut_res1"
- type: "Convolution"
- bottom: "res1"
- top: "res1_branch"
- convolution_param {
- num_output: 256
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "elt_res2"
- type: "Eltwise"
- bottom: "res1_branch"
- bottom: "conv1_branch2"
- top: "res2"
- }
- layer {
- name: "pool_res2"
- type: "Pooling"
- bottom: "res2"
- top: "pool3"
- pooling_param {
- pool: MAX
- kernel_h: 3
- kernel_w: 1
- stride_h: 2
- stride_w: 1
- }
- }
- layer {
- name: "bn_pool3"
- type: "BatchNorm"
- bottom: "pool3"
- top: "pool3"
- }
- layer {
- name: "scale_pool3"
- type: "Scale"
- bottom: "pool3"
- top: "pool3"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "act_ReLU_pool3"
- type: "ReLU"
- bottom: "pool3"
- top: "pool3"
- }
- layer {
- name: "conv_pool3"
- type: "Convolution"
- bottom: "pool3"
- top: "conv1_branch3"
- convolution_param {
- num_output: 64
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "bn_conv1_branch3"
- type: "BatchNorm"
- bottom: "conv1_branch3"
- top: "conv1_branch3"
- }
- layer {
- name: "scale_conv1_branch3"
- type: "Scale"
- bottom: "conv1_branch3"
- top: "conv1_branch3"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "act_ReLU_conv1_branch3"
- type: "ReLU"
- bottom: "conv1_branch3"
- top: "conv1_branch3"
- }
- layer {
- name: "conv_conv1_branch3"
- type: "Convolution"
- bottom: "conv1_branch3"
- top: "conv2_branch3"
- convolution_param {
- num_output: 64
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "shortcut_pool3"
- type: "Convolution"
- bottom: "pool3"
- top: "pool3_branch"
- convolution_param {
- num_output: 64
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "elt_res3"
- type: "Eltwise"
- bottom: "pool3_branch"
- bottom: "conv1_branch3"
- top: "res3"
- }
- layer {
- name: "bn_res3"
- type: "BatchNorm"
- bottom: "res3"
- top: "res3"
- }
- layer {
- name: "scale_res3"
- type: "Scale"
- bottom: "res3"
- top: "res3"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "act_ReLU_res3"
- type: "ReLU"
- bottom: "res3"
- top: "res3"
- }
- layer {
- name: "conv_res3"
- type: "Convolution"
- bottom: "res3"
- top: "conv1_branch4"
- convolution_param {
- num_output: 64
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "bn_conv1_branch4"
- type: "BatchNorm"
- bottom: "conv1_branch4"
- top: "conv1_branch4"
- }
- layer {
- name: "scale_conv1_branch4"
- type: "Scale"
- bottom: "conv1_branch4"
- top: "conv1_branch4"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "act_ReLU_conv1_branch4"
- type: "ReLU"
- bottom: "conv1_branch4"
- top: "conv1_branch4"
- }
- layer {
- name: "conv_conv1_branch4"
- type: "Convolution"
- bottom: "conv1_branch4"
- top: "conv2_branch4"
- convolution_param {
- num_output: 64
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "shortcut_res3"
- type: "Convolution"
- bottom: "res3"
- top: "res3_branch"
- convolution_param {
- num_output: 64
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "elt_res4"
- type: "Eltwise"
- bottom: "res3_branch"
- bottom: "conv1_branch4"
- top: "res4"
- }
- layer {
- name: "pool_res4"
- type: "Pooling"
- bottom: "res4"
- top: "pool5"
- pooling_param {
- pool: MAX
- kernel_h: 3
- kernel_w: 1
- stride_h: 2
- stride_w: 1
- }
- }
- layer {
- name: "bn_pool5"
- type: "BatchNorm"
- bottom: "pool5"
- top: "pool5"
- }
- layer {
- name: "scale_pool5"
- type: "Scale"
- bottom: "pool5"
- top: "pool5"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "act_ReLU_pool5"
- type: "ReLU"
- bottom: "pool5"
- top: "pool5"
- }
- layer {
- name: "conv_pool5"
- type: "Convolution"
- bottom: "pool5"
- top: "conv1_branch5"
- convolution_param {
- num_output: 32
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "bn_conv1_branch5"
- type: "BatchNorm"
- bottom: "conv1_branch5"
- top: "conv1_branch5"
- }
- layer {
- name: "scale_conv1_branch5"
- type: "Scale"
- bottom: "conv1_branch5"
- top: "conv1_branch5"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "act_ReLU_conv1_branch5"
- type: "ReLU"
- bottom: "conv1_branch5"
- top: "conv1_branch5"
- }
- layer {
- name: "conv_conv1_branch5"
- type: "Convolution"
- bottom: "conv1_branch5"
- top: "conv2_branch5"
- convolution_param {
- num_output: 32
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "shortcut_pool5"
- type: "Convolution"
- bottom: "pool5"
- top: "pool5_branch"
- convolution_param {
- num_output: 32
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "elt_res5"
- type: "Eltwise"
- bottom: "pool5_branch"
- bottom: "conv1_branch5"
- top: "res5"
- }
- layer {
- name: "bn_res5"
- type: "BatchNorm"
- bottom: "res5"
- top: "res5"
- }
- layer {
- name: "scale_res5"
- type: "Scale"
- bottom: "res5"
- top: "res5"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "act_ReLU_res5"
- type: "ReLU"
- bottom: "res5"
- top: "res5"
- }
- layer {
- name: "conv_res5"
- type: "Convolution"
- bottom: "res5"
- top: "conv1_branch6"
- convolution_param {
- num_output: 32
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "bn_conv1_branch6"
- type: "BatchNorm"
- bottom: "conv1_branch6"
- top: "conv1_branch6"
- }
- layer {
- name: "scale_conv1_branch6"
- type: "Scale"
- bottom: "conv1_branch6"
- top: "conv1_branch6"
- scale_param {
- bias_term: true
- }
- }
- layer {
- name: "act_ReLU_conv1_branch6"
- type: "ReLU"
- bottom: "conv1_branch6"
- top: "conv1_branch6"
- }
- layer {
- name: "conv_conv1_branch6"
- type: "Convolution"
- bottom: "conv1_branch6"
- top: "conv2_branch6"
- convolution_param {
- num_output: 32
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "shortcut_res5"
- type: "Convolution"
- bottom: "res5"
- top: "res5_branch"
- convolution_param {
- num_output: 32
- pad: 0
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- kernel_h: 3
- kernel_w: 1
- }
- }
- layer {
- name: "elt_res6"
- type: "Eltwise"
- bottom: "res5_branch"
- bottom: "conv1_branch6"
- top: "res6"
- }
- layer {
- name: "pool_res6"
- type: "Pooling"
- bottom: "res6"
- top: "pool7"
- pooling_param {
- pool: MAX
- kernel_h: 3
- kernel_w: 1
- stride_h: 2
- stride_w: 1
- }
- }
- layer {
- name: "fc_pool7"
- type: "InnerProduct"
- bottom: "pool7"
- top: "fc512_0"
- inner_product_param {
- num_output: 512
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- name: "act_ReLU_fc512_0"
- type: "ReLU"
- bottom: "fc512_0"
- top: "fc512_0"
- }
- layer {
- name: "drop_fc512_0"
- type: "Dropout"
- bottom: "fc512_0"
- top: "fc512_0"
- dropout_param {
- dropout_ratio: 0.5
- }
- }
- layer {
- name: "fc_fc512_0"
- type: "InnerProduct"
- bottom: "fc512_0"
- top: "fc512_1"
- inner_product_param {
- num_output: 512
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- name: "act_ReLU_fc512_1"
- type: "ReLU"
- bottom: "fc512_1"
- top: "fc512_1"
- }
- layer {
- name: "drop_fc512_1"
- type: "Dropout"
- bottom: "fc512_1"
- top: "fc512_1"
- dropout_param {
- dropout_ratio: 0.5
- }
- }
- layer {
- name: "fc_fc512_1"
- type: "InnerProduct"
- bottom: "fc512_1"
- top: "ip_losst"
- inner_product_param {
- num_output: 4
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- name: "prob"
- type: "SoftmaxWithLoss"
- bottom: "ip_losst"
- bottom: "label"
- top: "losst"
- include {
- phase: TRAIN
- }
- }
- layer {
- name: "probt"
- type: "Softmax"
- bottom: "ip_losst"
- top: "losst"
- include {
- phase: TEST
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement