Created
November 4, 2017 18:31
-
-
Save walkoncross/0c97fc785751fccb12595aff29eff030 to your computer and use it in GitHub Desktop.
se-sphereface-20-deploy.prototxt, netscope: http://ethereon.github.io/netscope/#/gist/0c97fc785751fccb12595aff29eff030
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "SE-SpherefaceNet-20" | |
input: "data" | |
input_dim: 1 | |
input_dim: 3 | |
input_dim: 112 | |
input_dim: 96 | |
############## CNN Architecture ############### | |
layer { | |
name: "conv1_1" | |
type: "Convolution" | |
bottom: "data" | |
top: "conv1_1" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 64 | |
kernel_size: 3 | |
stride: 2 | |
pad: 1 | |
weight_filler { | |
type: "xavier" | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu1_1" | |
type: "PReLU" | |
bottom: "conv1_1" | |
top: "conv1_1" | |
} | |
layer { | |
name: "conv1_2" | |
type: "Convolution" | |
bottom: "conv1_1" | |
top: "conv1_2" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 64 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu1_2" | |
type: "PReLU" | |
bottom: "conv1_2" | |
top: "conv1_2" | |
} | |
layer { | |
name: "conv1_3" | |
type: "Convolution" | |
bottom: "conv1_2" | |
top: "conv1_3" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 64 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu1_3" | |
type: "PReLU" | |
bottom: "conv1_3" | |
top: "conv1_3" | |
} | |
###begin SE excitation ### | |
layer { | |
name: "SE/conv1_3_global_pool" | |
type: "Pooling" | |
bottom: "conv1_3" | |
top: "conv1_3_global_pool" | |
pooling_param { | |
pool: AVE | |
engine: CAFFE | |
global_pooling: true | |
} | |
} | |
layer { | |
name: "SE/conv1_3_1x1_down" | |
type: "Convolution" | |
bottom: "conv1_3_global_pool" | |
top: "conv1_3_1x1_down" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 16 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv1_3_1x1_down/relu" | |
type: "ReLU" | |
bottom: "conv1_3_1x1_down" | |
top: "conv1_3_1x1_down" | |
} | |
layer { | |
name: "SE/conv1_3_1x1_up" | |
type: "Convolution" | |
bottom: "conv1_3_1x1_down" | |
top: "conv1_3_1x1_up" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv1_3_prob" | |
type: "Sigmoid" | |
bottom: "conv1_3_1x1_up" | |
top: "conv1_3_1x1_up" | |
} | |
###end SE excitation ### | |
###begin SE axpy ### | |
layer { | |
name: "res1_3" | |
type: "Axpy" | |
bottom: "conv1_3_1x1_up" | |
bottom: "conv1_3" | |
bottom: "conv1_1" | |
top: "res1_3" | |
} | |
layer { | |
name: "res1_3/relu" | |
type: "ReLU" | |
bottom: "res1_3" | |
top: "res1_3" | |
} | |
###end SE axpy ### | |
layer { | |
name: "conv2_1" | |
type: "Convolution" | |
bottom: "res1_3" | |
top: "conv2_1" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 128 | |
kernel_size: 3 | |
stride: 2 | |
pad: 1 | |
weight_filler { | |
type: "xavier" | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu2_1" | |
type: "PReLU" | |
bottom: "conv2_1" | |
top: "conv2_1" | |
} | |
layer { | |
name: "conv2_2" | |
type: "Convolution" | |
bottom: "conv2_1" | |
top: "conv2_2" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 128 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu2_2" | |
type: "PReLU" | |
bottom: "conv2_2" | |
top: "conv2_2" | |
} | |
layer { | |
name: "conv2_3" | |
type: "Convolution" | |
bottom: "conv2_2" | |
top: "conv2_3" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 128 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu2_3" | |
type: "PReLU" | |
bottom: "conv2_3" | |
top: "conv2_3" | |
} | |
###begin SE excitation ### | |
layer { | |
name: "SE/conv2_3_global_pool" | |
type: "Pooling" | |
bottom: "conv2_3" | |
top: "conv2_3_global_pool" | |
pooling_param { | |
pool: AVE | |
engine: CAFFE | |
global_pooling: true | |
} | |
} | |
layer { | |
name: "SE/conv2_3_1x1_down" | |
type: "Convolution" | |
bottom: "conv2_3_global_pool" | |
top: "conv2_3_1x1_down" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 16 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv2_3_1x1_down/relu" | |
type: "ReLU" | |
bottom: "conv2_3_1x1_down" | |
top: "conv2_3_1x1_down" | |
} | |
layer { | |
name: "SE/conv2_3_1x1_up" | |
type: "Convolution" | |
bottom: "conv2_3_1x1_down" | |
top: "conv2_3_1x1_up" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv2_3_prob" | |
type: "Sigmoid" | |
bottom: "conv2_3_1x1_up" | |
top: "conv2_3_1x1_up" | |
} | |
###end SE excitation ### | |
###begin SE axpy ### | |
layer { | |
name: "res2_3" | |
type: "Axpy" | |
bottom: "conv2_3_1x1_up" | |
bottom: "conv2_3" | |
bottom: "conv2_1" | |
top: "res2_3" | |
} | |
layer { | |
name: "res2_3/relu" | |
type: "ReLU" | |
bottom: "res2_3" | |
top: "res2_3" | |
} | |
###end SE axpy ### | |
layer { | |
name: "conv2_4" | |
type: "Convolution" | |
bottom: "res2_3" | |
top: "conv2_4" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 128 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu2_4" | |
type: "PReLU" | |
bottom: "conv2_4" | |
top: "conv2_4" | |
} | |
layer { | |
name: "conv2_5" | |
type: "Convolution" | |
bottom: "conv2_4" | |
top: "conv2_5" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 128 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu2_5" | |
type: "PReLU" | |
bottom: "conv2_5" | |
top: "conv2_5" | |
} | |
###begin SE excitation ### | |
layer { | |
name: "SE/conv2_5_global_pool" | |
type: "Pooling" | |
bottom: "conv2_5" | |
top: "conv2_5_global_pool" | |
pooling_param { | |
pool: AVE | |
engine: CAFFE | |
global_pooling: true | |
} | |
} | |
layer { | |
name: "SE/conv2_5_1x1_down" | |
type: "Convolution" | |
bottom: "conv2_5_global_pool" | |
top: "conv2_5_1x1_down" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 16 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv2_5_1x1_down/relu" | |
type: "ReLU" | |
bottom: "conv2_5_1x1_down" | |
top: "conv2_5_1x1_down" | |
} | |
layer { | |
name: "SE/conv2_5_1x1_up" | |
type: "Convolution" | |
bottom: "conv2_5_1x1_down" | |
top: "conv2_5_1x1_up" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv2_5_prob" | |
type: "Sigmoid" | |
bottom: "conv2_5_1x1_up" | |
top: "conv2_5_1x1_up" | |
} | |
###end SE excitation ### | |
###begin SE axpy ### | |
layer { | |
name: "res2_5" | |
type: "Axpy" | |
bottom: "conv2_5_1x1_up" | |
bottom: "conv2_5" | |
bottom: "res2_3" | |
top: "res2_5" | |
} | |
layer { | |
name: "res2_5/relu" | |
type: "ReLU" | |
bottom: "res2_5" | |
top: "res2_5" | |
} | |
###end SE axpy ### | |
layer { | |
name: "conv3_1" | |
type: "Convolution" | |
bottom: "res2_5" | |
top: "conv3_1" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 3 | |
stride: 2 | |
pad: 1 | |
weight_filler { | |
type: "xavier" | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu3_1" | |
type: "PReLU" | |
bottom: "conv3_1" | |
top: "conv3_1" | |
} | |
layer { | |
name: "conv3_2" | |
type: "Convolution" | |
bottom: "conv3_1" | |
top: "conv3_2" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu3_2" | |
type: "PReLU" | |
bottom: "conv3_2" | |
top: "conv3_2" | |
} | |
layer { | |
name: "conv3_3" | |
type: "Convolution" | |
bottom: "conv3_2" | |
top: "conv3_3" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu3_3" | |
type: "PReLU" | |
bottom: "conv3_3" | |
top: "conv3_3" | |
} | |
###begin SE excitation ### | |
layer { | |
name: "SE/conv3_3_global_pool" | |
type: "Pooling" | |
bottom: "conv3_3" | |
top: "conv3_3_global_pool" | |
pooling_param { | |
pool: AVE | |
engine: CAFFE | |
global_pooling: true | |
} | |
} | |
layer { | |
name: "SE/conv3_3_1x1_down" | |
type: "Convolution" | |
bottom: "conv3_3_global_pool" | |
top: "conv3_3_1x1_down" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 16 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv3_3_1x1_down/relu" | |
type: "ReLU" | |
bottom: "conv3_3_1x1_down" | |
top: "conv3_3_1x1_down" | |
} | |
layer { | |
name: "SE/conv3_3_1x1_up" | |
type: "Convolution" | |
bottom: "conv3_3_1x1_down" | |
top: "conv3_3_1x1_up" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv3_3_prob" | |
type: "Sigmoid" | |
bottom: "conv3_3_1x1_up" | |
top: "conv3_3_1x1_up" | |
} | |
###end SE excitation ### | |
###begin SE axpy ### | |
layer { | |
name: "res3_3" | |
type: "Axpy" | |
bottom: "conv3_3_1x1_up" | |
bottom: "conv3_3" | |
bottom: "conv3_1" | |
top: "res3_3" | |
} | |
layer { | |
name: "res3_3/relu" | |
type: "ReLU" | |
bottom: "res3_3" | |
top: "res3_3" | |
} | |
###end SE axpy ### | |
layer { | |
name: "conv3_4" | |
type: "Convolution" | |
bottom: "res3_3" | |
top: "conv3_4" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu3_4" | |
type: "PReLU" | |
bottom: "conv3_4" | |
top: "conv3_4" | |
} | |
layer { | |
name: "conv3_5" | |
type: "Convolution" | |
bottom: "conv3_4" | |
top: "conv3_5" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu3_5" | |
type: "PReLU" | |
bottom: "conv3_5" | |
top: "conv3_5" | |
} | |
###begin SE excitation ### | |
layer { | |
name: "SE/conv3_5_global_pool" | |
type: "Pooling" | |
bottom: "conv3_5" | |
top: "conv3_5_global_pool" | |
pooling_param { | |
pool: AVE | |
engine: CAFFE | |
global_pooling: true | |
} | |
} | |
layer { | |
name: "SE/conv3_5_1x1_down" | |
type: "Convolution" | |
bottom: "conv3_5_global_pool" | |
top: "conv3_5_1x1_down" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 16 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv3_5_1x1_down/relu" | |
type: "ReLU" | |
bottom: "conv3_5_1x1_down" | |
top: "conv3_5_1x1_down" | |
} | |
layer { | |
name: "SE/conv3_5_1x1_up" | |
type: "Convolution" | |
bottom: "conv3_5_1x1_down" | |
top: "conv3_5_1x1_up" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv3_5_prob" | |
type: "Sigmoid" | |
bottom: "conv3_5_1x1_up" | |
top: "conv3_5_1x1_up" | |
} | |
###end SE excitation ### | |
###begin SE axpy ### | |
layer { | |
name: "res3_5" | |
type: "Axpy" | |
bottom: "conv3_5_1x1_up" | |
bottom: "conv3_5" | |
bottom: "res3_3" | |
top: "res3_5" | |
} | |
layer { | |
name: "res3_5/relu" | |
type: "ReLU" | |
bottom: "res3_5" | |
top: "res3_5" | |
} | |
###end SE axpy ### | |
layer { | |
name: "conv3_6" | |
type: "Convolution" | |
bottom: "res3_5" | |
top: "conv3_6" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu3_6" | |
type: "PReLU" | |
bottom: "conv3_6" | |
top: "conv3_6" | |
} | |
layer { | |
name: "conv3_7" | |
type: "Convolution" | |
bottom: "conv3_6" | |
top: "conv3_7" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu3_7" | |
type: "PReLU" | |
bottom: "conv3_7" | |
top: "conv3_7" | |
} | |
###begin SE excitation ### | |
layer { | |
name: "SE/conv3_7_global_pool" | |
type: "Pooling" | |
bottom: "conv3_7" | |
top: "conv3_7_global_pool" | |
pooling_param { | |
pool: AVE | |
engine: CAFFE | |
global_pooling: true | |
} | |
} | |
layer { | |
name: "SE/conv3_7_1x1_down" | |
type: "Convolution" | |
bottom: "conv3_7_global_pool" | |
top: "conv3_7_1x1_down" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 16 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv3_7_1x1_down/relu" | |
type: "ReLU" | |
bottom: "conv3_7_1x1_down" | |
top: "conv3_7_1x1_down" | |
} | |
layer { | |
name: "SE/conv3_7_1x1_up" | |
type: "Convolution" | |
bottom: "conv3_7_1x1_down" | |
top: "conv3_7_1x1_up" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv3_7_prob" | |
type: "Sigmoid" | |
bottom: "conv3_7_1x1_up" | |
top: "conv3_7_1x1_up" | |
} | |
###end SE excitation ### | |
###begin SE axpy ### | |
layer { | |
name: "res3_7" | |
type: "Axpy" | |
bottom: "conv3_7_1x1_up" | |
bottom: "conv3_7" | |
bottom: "res3_5" | |
top: "res3_7" | |
} | |
layer { | |
name: "res3_7/relu" | |
type: "ReLU" | |
bottom: "res3_7" | |
top: "res3_7" | |
} | |
###end SE axpy ### | |
layer { | |
name: "conv3_8" | |
type: "Convolution" | |
bottom: "res3_7" | |
top: "conv3_8" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu3_8" | |
type: "PReLU" | |
bottom: "conv3_8" | |
top: "conv3_8" | |
} | |
layer { | |
name: "conv3_9" | |
type: "Convolution" | |
bottom: "conv3_8" | |
top: "conv3_9" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu3_9" | |
type: "PReLU" | |
bottom: "conv3_9" | |
top: "conv3_9" | |
} | |
###begin SE excitation ### | |
layer { | |
name: "SE/conv3_9_global_pool" | |
type: "Pooling" | |
bottom: "conv3_9" | |
top: "conv3_9_global_pool" | |
pooling_param { | |
pool: AVE | |
engine: CAFFE | |
global_pooling: true | |
} | |
} | |
layer { | |
name: "SE/conv3_9_1x1_down" | |
type: "Convolution" | |
bottom: "conv3_9_global_pool" | |
top: "conv3_9_1x1_down" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 16 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv3_9_1x1_down/relu" | |
type: "ReLU" | |
bottom: "conv3_9_1x1_down" | |
top: "conv3_9_1x1_down" | |
} | |
layer { | |
name: "SE/conv3_9_1x1_up" | |
type: "Convolution" | |
bottom: "conv3_9_1x1_down" | |
top: "conv3_9_1x1_up" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv3_9_prob" | |
type: "Sigmoid" | |
bottom: "conv3_9_1x1_up" | |
top: "conv3_9_1x1_up" | |
} | |
###end SE excitation ### | |
###begin SE axpy ### | |
layer { | |
name: "res3_9" | |
type: "Axpy" | |
bottom: "conv3_9_1x1_up" | |
bottom: "conv3_9" | |
bottom: "res3_7" | |
top: "res3_9" | |
} | |
layer { | |
name: "res3_9/relu" | |
type: "ReLU" | |
bottom: "res3_9" | |
top: "res3_9" | |
} | |
###end SE axpy ### | |
layer { | |
name: "conv4_1" | |
type: "Convolution" | |
bottom: "res3_9" | |
top: "conv4_1" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 512 | |
kernel_size: 3 | |
stride: 2 | |
pad: 1 | |
weight_filler { | |
type: "xavier" | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu4_1" | |
type: "PReLU" | |
bottom: "conv4_1" | |
top: "conv4_1" | |
} | |
layer { | |
name: "conv4_2" | |
type: "Convolution" | |
bottom: "conv4_1" | |
top: "conv4_2" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 512 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu4_2" | |
type: "PReLU" | |
bottom: "conv4_2" | |
top: "conv4_2" | |
} | |
layer { | |
name: "conv4_3" | |
type: "Convolution" | |
bottom: "conv4_2" | |
top: "conv4_3" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 0 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 512 | |
kernel_size: 3 | |
stride: 1 | |
pad: 1 | |
weight_filler { | |
type: "gaussian" | |
std: 0.01 | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} | |
layer { | |
name: "relu4_3" | |
type: "PReLU" | |
bottom: "conv4_3" | |
top: "conv4_3" | |
} | |
###begin SE excitation ### | |
layer { | |
name: "SE/conv4_3_global_pool" | |
type: "Pooling" | |
bottom: "conv4_3" | |
top: "conv4_3_global_pool" | |
pooling_param { | |
pool: AVE | |
engine: CAFFE | |
global_pooling: true | |
} | |
} | |
layer { | |
name: "SE/conv4_3_1x1_down" | |
type: "Convolution" | |
bottom: "conv4_3_global_pool" | |
top: "conv4_3_1x1_down" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 16 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv4_3_1x1_down/relu" | |
type: "ReLU" | |
bottom: "conv4_3_1x1_down" | |
top: "conv4_3_1x1_down" | |
} | |
layer { | |
name: "SE/conv4_3_1x1_up" | |
type: "Convolution" | |
bottom: "conv4_3_1x1_down" | |
top: "conv4_3_1x1_up" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
convolution_param { | |
num_output: 256 | |
kernel_size: 1 | |
stride: 1 | |
} | |
} | |
layer { | |
name: "SE/conv4_3_prob" | |
type: "Sigmoid" | |
bottom: "conv4_3_1x1_up" | |
top: "conv4_3_1x1_up" | |
} | |
###end SE excitation ### | |
###begin SE axpy ### | |
layer { | |
name: "res4_3" | |
type: "Axpy" | |
bottom: "conv4_3_1x1_up" | |
bottom: "conv4_3" | |
bottom: "conv4_1" | |
top: "res4_3" | |
} | |
layer { | |
name: "res4_3/relu" | |
type: "ReLU" | |
bottom: "res4_3" | |
top: "res4_3" | |
} | |
###end SE axpy ### | |
layer { | |
name: "fc5" | |
type: "InnerProduct" | |
bottom: "res4_3" | |
top: "fc5" | |
param { | |
lr_mult: 1 | |
decay_mult: 1 | |
} | |
param { | |
lr_mult: 2 | |
decay_mult: 0 | |
} | |
inner_product_param { | |
num_output: 512 | |
weight_filler { | |
type: "xavier" | |
} | |
bias_filler { | |
type: "constant" | |
value: 0 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment