Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: "CNN"
- layers {
- name: "data"
- type: HDF5_DATA
- top: "data"
- top: "label"
- hdf5_data_param {
- source: ".../data/train.txt"
- batch_size: 256
- shuffle: false
- }
- }
- # hzvt horistonal -> vertical
- layers {
- name: "hzvt1"
- type: CONVOLUTION
- bottom: "data"
- top: "hzvt1"
- blobs_lr: 1
- blobs_lr: 2
- convolution_param {
- num_output: 16
- kernel_w: 6
- kernel_h: 1
- stride_w: 1
- stride_h: 1
- weight_filler {
- type: "msra"
- variance_norm: AVERAGE
- }
- bias_filler {
- type: "constant"
- }
- }
- }
- layers {
- name: "relu_hzvt1"
- type: RELU
- relu_param {
- negative_slope: 0.2417
- }
- bottom: "hzvt1"
- top: "hzvt1"
- }
- layers {
- name: "hzvt2"
- type: CONVOLUTION
- bottom: "hzvt1"
- top: "hzvt2"
- blobs_lr: 1
- blobs_lr: 2
- convolution_param {
- num_output: 22
- kernel_w: 7
- kernel_h: 1
- stride_w: 1
- stride_h: 1
- weight_filler {
- type: "msra"
- variance_norm: AVERAGE
- }
- bias_filler {
- type: "constant"
- }
- }
- }
- layers {
- name: "relu_hzvt2"
- type: RELU
- relu_param {
- negative_slope: 0.2417
- }
- bottom: "hzvt2"
- top: "hzvt2"
- }
- layers {
- name: "hzvt3"
- type: CONVOLUTION
- bottom: "hzvt2"
- top: "hzvt3"
- blobs_lr: 1
- blobs_lr: 2
- convolution_param {
- num_output: 30
- kernel_w: 7
- kernel_h: 1
- stride_w: 1
- stride_h: 1
- weight_filler {
- type: "msra"
- variance_norm: AVERAGE
- }
- bias_filler {
- type: "constant"
- }
- }
- }
- layers {
- name: "relu_hzvt3"
- type: RELU
- relu_param {
- negative_slope: 0.2417
- }
- bottom: "hzvt3"
- top: "hzvt3"
- }
- layers {
- name: "hzvt4"
- type: CONVOLUTION
- bottom: "hzvt3"
- top: "hzvt4"
- blobs_lr: 1
- blobs_lr: 2
- convolution_param {
- num_output: 41
- kernel_w: 7
- kernel_h: 1
- stride_w: 1
- stride_h: 1
- weight_filler {
- type: "msra"
- variance_norm: AVERAGE
- }
- bias_filler {
- type: "constant"
- }
- }
- }
- layers {
- name: "relu_hzvt4"
- type: RELU
- relu_param {
- negative_slope: 0.2417
- }
- bottom: "hzvt4"
- top: "hzvt4"
- }
- layers {
- name: "hzvt5"
- type: CONVOLUTION
- bottom: "hzvt4"
- top: "hzvt5"
- blobs_lr: 1
- blobs_lr: 2
- convolution_param {
- num_output: 400
- kernel_w: 1
- kernel_h: 7
- stride_w: 1
- stride_h: 1
- weight_filler {
- type: "msra"
- variance_norm: AVERAGE
- }
- bias_filler {
- type: "constant"
- }
- }
- }
- layers {
- name: "relu_hzvt5"
- type: RELU
- relu_param {
- negative_slope: 0.2417
- }
- bottom: "hzvt5"
- top: "hzvt5"
- }
- layers {
- name: "drop_hzvt5"
- type: DROPOUT
- bottom: "hzvt5"
- top: "hzvt5"
- dropout_param {
- dropout_ratio: 0.44
- }
- }
- # vthz vertical -> horisontal
- layers {
- name: "vthz1"
- type: CONVOLUTION
- bottom: "data"
- top: "vthz1"
- blobs_lr: 1
- blobs_lr: 2
- convolution_param {
- num_output: 16
- kernel_w: 1
- kernel_h: 7
- stride_w: 1
- stride_h: 1
- weight_filler {
- type: "msra"
- variance_norm: AVERAGE
- }
- bias_filler {
- type: "constant"
- }
- }
- }
- layers {
- name: "relu_vthz1"
- type: RELU
- relu_param {
- negative_slope: 0.2417
- }
- bottom: "vthz1"
- top: "vthz1"
- }
- layers {
- name: "vthz2"
- type: CONVOLUTION
- bottom: "vthz1"
- top: "vthz2"
- blobs_lr: 1
- blobs_lr: 2
- convolution_param {
- num_output: 22
- kernel_w: 6
- kernel_h: 1
- stride_w: 1
- stride_h: 1
- weight_filler {
- type: "msra"
- variance_norm: AVERAGE
- }
- bias_filler {
- type: "constant"
- }
- }
- }
- layers {
- name: "relu_vthz2"
- type: RELU
- relu_param {
- negative_slope: 0.2417
- }
- bottom: "vthz2"
- top: "vthz2"
- }
- layers {
- name: "vthz3"
- type: CONVOLUTION
- bottom: "vthz2"
- top: "vthz3"
- blobs_lr: 1
- blobs_lr: 2
- convolution_param {
- num_output: 30
- kernel_w: 7
- kernel_h: 1
- stride_w: 1
- stride_h: 1
- weight_filler {
- type: "msra"
- variance_norm: AVERAGE
- }
- bias_filler {
- type: "constant"
- }
- }
- }
- layers {
- name: "relu_vthz3"
- type: RELU
- relu_param {
- negative_slope: 0.2417
- }
- bottom: "vthz3"
- top: "vthz3"
- }
- layers {
- name: "vthz4"
- type: CONVOLUTION
- bottom: "vthz3"
- top: "vthz4"
- blobs_lr: 1
- blobs_lr: 2
- convolution_param {
- num_output: 41
- kernel_w: 7
- kernel_h: 1
- stride_w: 1
- stride_h: 1
- weight_filler {
- type: "msra"
- variance_norm: AVERAGE
- }
- bias_filler {
- type: "constant"
- }
- }
- }
- layers {
- name: "relu_vthz4"
- type: RELU
- relu_param {
- negative_slope: 0.2417
- }
- bottom: "vthz4"
- top: "vthz4"
- }
- layers {
- name: "vthz5"
- type: CONVOLUTION
- bottom: "vthz4"
- top: "vthz5"
- blobs_lr: 1
- blobs_lr: 2
- convolution_param {
- num_output: 400
- kernel_w: 7
- kernel_h: 1
- stride_w: 1
- stride_h: 1
- weight_filler {
- type: "msra"
- variance_norm: AVERAGE
- }
- bias_filler {
- type: "constant"
- }
- }
- }
- layers {
- name: "relu_vthz5"
- type: RELU
- relu_param {
- negative_slope: 0.2417
- }
- bottom: "vthz5"
- top: "vthz5"
- }
- layers {
- name: "drop_vthz5"
- type: DROPOUT
- bottom: "vthz5"
- top: "vthz5"
- dropout_param {
- dropout_ratio: 0.44
- }
- }
- # merge paths
- layers {
- name: "combined"
- type: CONCAT
- bottom: "hzvt5"
- bottom: "vthz5"
- top: "combined"
- }
- layers {
- name: "fc1"
- type: INNER_PRODUCT
- bottom: "combined"
- top: "fc1"
- blobs_lr: 1
- blobs_lr: 2
- weight_decay: 1
- weight_decay: 0
- inner_product_param {
- num_output: 400
- weight_filler {
- type: "msra"
- variance_norm: AVERAGE
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layers {
- name: "relu_fc1"
- type: RELU
- relu_param {
- negative_slope: 0.2417
- }
- bottom: "fc1"
- top: "fc1_mod"
- }
- layers {
- name: "drop_fc1"
- type: DROPOUT
- bottom: "fc1_mod"
- top: "fc1_mod"
- dropout_param {
- dropout_ratio: 0.44
- }
- }
- layers {
- name: "final"
- type: INNER_PRODUCT
- bottom: "fc1_mod"
- top: "final"
- blobs_lr: 1
- blobs_lr: 2
- weight_decay: 1
- weight_decay: 0
- inner_product_param {
- num_output: 2
- weight_filler {
- type: "xavier"
- variance_norm: AVERAGE
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layers {
- name: "pred"
- type: SOFTMAX
- bottom: "final"
- top: "pred"
- }
- layers {
- name: "loss"
- type: SOFTMAX_LOSS
- bottom: "final"
- bottom: "label"
- top: "loss"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement