2015-03-07 11:46:05 +03:00
|
|
|
# Fully convolutional network version of CaffeNet.
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "CaffeNetConv"
|
|
|
|
input: "data"
|
2015-08-21 00:29:02 +03:00
|
|
|
input_shape {
|
|
|
|
dim: 1
|
|
|
|
dim: 3
|
|
|
|
dim: 451
|
|
|
|
dim: 451
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "conv1"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "Convolution"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "data"
|
|
|
|
top: "conv1"
|
|
|
|
convolution_param {
|
|
|
|
num_output: 96
|
|
|
|
kernel_size: 11
|
|
|
|
stride: 4
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "relu1"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "ReLU"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "conv1"
|
|
|
|
top: "conv1"
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "pool1"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "Pooling"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "conv1"
|
|
|
|
top: "pool1"
|
|
|
|
pooling_param {
|
|
|
|
pool: MAX
|
|
|
|
kernel_size: 3
|
|
|
|
stride: 2
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "norm1"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "LRN"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "pool1"
|
|
|
|
top: "norm1"
|
|
|
|
lrn_param {
|
|
|
|
local_size: 5
|
|
|
|
alpha: 0.0001
|
|
|
|
beta: 0.75
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "conv2"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "Convolution"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "norm1"
|
|
|
|
top: "conv2"
|
|
|
|
convolution_param {
|
|
|
|
num_output: 256
|
|
|
|
pad: 2
|
|
|
|
kernel_size: 5
|
|
|
|
group: 2
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "relu2"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "ReLU"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "conv2"
|
|
|
|
top: "conv2"
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "pool2"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "Pooling"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "conv2"
|
|
|
|
top: "pool2"
|
|
|
|
pooling_param {
|
|
|
|
pool: MAX
|
|
|
|
kernel_size: 3
|
|
|
|
stride: 2
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "norm2"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "LRN"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "pool2"
|
|
|
|
top: "norm2"
|
|
|
|
lrn_param {
|
|
|
|
local_size: 5
|
|
|
|
alpha: 0.0001
|
|
|
|
beta: 0.75
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "conv3"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "Convolution"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "norm2"
|
|
|
|
top: "conv3"
|
|
|
|
convolution_param {
|
|
|
|
num_output: 384
|
|
|
|
pad: 1
|
|
|
|
kernel_size: 3
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "relu3"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "ReLU"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "conv3"
|
|
|
|
top: "conv3"
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "conv4"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "Convolution"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "conv3"
|
|
|
|
top: "conv4"
|
|
|
|
convolution_param {
|
|
|
|
num_output: 384
|
|
|
|
pad: 1
|
|
|
|
kernel_size: 3
|
|
|
|
group: 2
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "relu4"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "ReLU"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "conv4"
|
|
|
|
top: "conv4"
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "conv5"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "Convolution"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "conv4"
|
|
|
|
top: "conv5"
|
|
|
|
convolution_param {
|
|
|
|
num_output: 256
|
|
|
|
pad: 1
|
|
|
|
kernel_size: 3
|
|
|
|
group: 2
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "relu5"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "ReLU"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "conv5"
|
|
|
|
top: "conv5"
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "pool5"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "Pooling"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "conv5"
|
|
|
|
top: "pool5"
|
|
|
|
pooling_param {
|
|
|
|
pool: MAX
|
|
|
|
kernel_size: 3
|
|
|
|
stride: 2
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "fc6-conv"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "Convolution"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "pool5"
|
|
|
|
top: "fc6-conv"
|
|
|
|
convolution_param {
|
|
|
|
num_output: 4096
|
|
|
|
kernel_size: 6
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "relu6"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "ReLU"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "fc6-conv"
|
|
|
|
top: "fc6-conv"
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "drop6"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "Dropout"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "fc6-conv"
|
|
|
|
top: "fc6-conv"
|
|
|
|
dropout_param {
|
|
|
|
dropout_ratio: 0.5
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "fc7-conv"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "Convolution"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "fc6-conv"
|
|
|
|
top: "fc7-conv"
|
|
|
|
convolution_param {
|
|
|
|
num_output: 4096
|
|
|
|
kernel_size: 1
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "relu7"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "ReLU"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "fc7-conv"
|
|
|
|
top: "fc7-conv"
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "drop7"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "Dropout"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "fc7-conv"
|
|
|
|
top: "fc7-conv"
|
|
|
|
dropout_param {
|
|
|
|
dropout_ratio: 0.5
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "fc8-conv"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "Convolution"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "fc7-conv"
|
|
|
|
top: "fc8-conv"
|
|
|
|
convolution_param {
|
|
|
|
num_output: 1000
|
|
|
|
kernel_size: 1
|
|
|
|
}
|
|
|
|
}
|
2015-02-06 02:17:24 +03:00
|
|
|
layer {
|
2014-06-11 20:57:07 +04:00
|
|
|
name: "prob"
|
2015-02-06 02:17:24 +03:00
|
|
|
type: "Softmax"
|
2014-06-11 20:57:07 +04:00
|
|
|
bottom: "fc8-conv"
|
|
|
|
top: "prob"
|
|
|
|
}
|