зеркало из https://github.com/microsoft/caffe.git
169 строки
2.4 KiB
Plaintext
169 строки
2.4 KiB
Plaintext
name: "CIFAR10_quick_train"
|
|
layers {
|
|
name: "cifar"
|
|
type: DATA
|
|
top: "data"
|
|
top: "label"
|
|
data_param {
|
|
source: "cifar10-leveldb/cifar-train-leveldb"
|
|
mean_file: "mean.binaryproto"
|
|
batch_size: 100
|
|
}
|
|
}
|
|
layers {
|
|
name: "conv1"
|
|
type: CONVOLUTION
|
|
bottom: "data"
|
|
top: "conv1"
|
|
blobs_lr: 1
|
|
blobs_lr: 2
|
|
convolution_param {
|
|
num_output: 32
|
|
pad: 2
|
|
kernel_size: 5
|
|
stride: 1
|
|
weight_filler {
|
|
type: "gaussian"
|
|
std: 0.0001
|
|
}
|
|
bias_filler {
|
|
type: "constant"
|
|
}
|
|
}
|
|
}
|
|
layers {
|
|
name: "pool1"
|
|
type: POOLING
|
|
bottom: "conv1"
|
|
top: "pool1"
|
|
pooling_param {
|
|
pool: MAX
|
|
kernel_size: 3
|
|
stride: 2
|
|
}
|
|
}
|
|
layers {
|
|
name: "relu1"
|
|
type: RELU
|
|
bottom: "pool1"
|
|
top: "pool1"
|
|
}
|
|
layers {
|
|
name: "conv2"
|
|
type: CONVOLUTION
|
|
bottom: "pool1"
|
|
top: "conv2"
|
|
blobs_lr: 1
|
|
blobs_lr: 2
|
|
convolution_param {
|
|
num_output: 32
|
|
pad: 2
|
|
kernel_size: 5
|
|
stride: 1
|
|
weight_filler {
|
|
type: "gaussian"
|
|
std: 0.01
|
|
}
|
|
bias_filler {
|
|
type: "constant"
|
|
}
|
|
}
|
|
}
|
|
layers {
|
|
name: "relu2"
|
|
type: RELU
|
|
bottom: "conv2"
|
|
top: "conv2"
|
|
}
|
|
layers {
|
|
name: "pool2"
|
|
type: POOLING
|
|
bottom: "conv2"
|
|
top: "pool2"
|
|
pooling_param {
|
|
pool: AVE
|
|
kernel_size: 3
|
|
stride: 2
|
|
}
|
|
}
|
|
layers {
|
|
name: "conv3"
|
|
type: CONVOLUTION
|
|
bottom: "pool2"
|
|
top: "conv3"
|
|
blobs_lr: 1
|
|
blobs_lr: 2
|
|
convolution_param {
|
|
num_output: 64
|
|
pad: 2
|
|
kernel_size: 5
|
|
stride: 1
|
|
weight_filler {
|
|
type: "gaussian"
|
|
std: 0.01
|
|
}
|
|
bias_filler {
|
|
type: "constant"
|
|
}
|
|
}
|
|
}
|
|
layers {
|
|
name: "relu3"
|
|
type: RELU
|
|
bottom: "conv3"
|
|
top: "conv3"
|
|
}
|
|
layers {
|
|
name: "pool3"
|
|
type: POOLING
|
|
bottom: "conv3"
|
|
top: "pool3"
|
|
pooling_param {
|
|
pool: AVE
|
|
kernel_size: 3
|
|
stride: 2
|
|
}
|
|
}
|
|
layers {
|
|
name: "ip1"
|
|
type: INNER_PRODUCT
|
|
bottom: "pool3"
|
|
top: "ip1"
|
|
blobs_lr: 1
|
|
blobs_lr: 2
|
|
inner_product_param {
|
|
num_output: 64
|
|
weight_filler {
|
|
type: "gaussian"
|
|
std: 0.1
|
|
}
|
|
bias_filler {
|
|
type: "constant"
|
|
}
|
|
}
|
|
}
|
|
layers {
|
|
name: "ip2"
|
|
type: INNER_PRODUCT
|
|
bottom: "ip1"
|
|
top: "ip2"
|
|
blobs_lr: 1
|
|
blobs_lr: 2
|
|
inner_product_param {
|
|
num_output: 10
|
|
weight_filler {
|
|
type: "gaussian"
|
|
std: 0.1
|
|
}
|
|
bias_filler {
|
|
type: "constant"
|
|
}
|
|
}
|
|
}
|
|
layers {
|
|
name: "loss"
|
|
type: SOFTMAX_LOSS
|
|
bottom: "ip2"
|
|
bottom: "label"
|
|
}
|