Skip to content

Instantly share code, notes, and snippets.

@JPJPJPOPOP
Created December 2, 2017 22:27
Show Gist options
  • Save JPJPJPOPOP/b8d9f5a1c4cd1bbe624f664f1b85d9bb to your computer and use it in GitHub Desktop.
Save JPJPJPOPOP/b8d9f5a1c4cd1bbe624f664f1b85d9bb to your computer and use it in GitHub Desktop.
nin_imagenet updated to new version of Caffe
name: "nin_imagenet"
layer {
top: "data"
top: "label"
name: "data"
type: "Data"
data_param {
source: "/home/linmin/IMAGENET-LMDB/imagenet-train-lmdb"
backend: LMDB
batch_size: 64
}
transform_param {
crop_size: 224
mirror: true
mean_file: "/home/linmin/IMAGENET-LMDB/imagenet-train-mean"
}
include: { phase: TRAIN }
}
layer {
top: "data"
top: "label"
name: "data"
type: "Data"
data_param {
source: "/home/linmin/IMAGENET-LMDB/imagenet-val-lmdb"
backend: LMDB
batch_size: 89
}
transform_param {
crop_size: 224
mirror: false
mean_file: "/home/linmin/IMAGENET-LMDB/imagenet-train-mean"
}
include: { phase: TEST }
}
layer {
bottom: "data"
top: "conv1"
name: "conv1"
type: "Convolution"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
convolution_param {
num_output: 96
kernel_size: 11
stride: 4
weight_filler {
type: "gaussian"
std: 0.01
}
bias_filler {
type: "constant"
value: 0
}
}
}
layer {
bottom: "conv1"
top: "conv1"
name: "relu0"
type: "ReLU"
}
layer {
bottom: "conv1"
top: "cccp1"
name: "cccp1"
type: "Convolution"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
convolution_param {
num_output: 96
kernel_size: 1
stride: 1
weight_filler {
type: "gaussian"
std: 0.05
}
bias_filler {
type: "constant"
value: 0
}
}
}
layer {
bottom: "cccp1"
top: "cccp1"
name: "relu1"
type: "ReLU"
}
layer {
bottom: "cccp1"
top: "cccp2"
name: "cccp2"
type: "Convolution"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
convolution_param {
num_output: 96
kernel_size: 1
stride: 1
weight_filler {
type: "gaussian"
std: 0.05
}
bias_filler {
type: "constant"
value: 0
}
}
}
layer {
bottom: "cccp2"
top: "cccp2"
name: "relu2"
type: "ReLU"
}
layer {
bottom: "cccp2"
top: "pool0"
name: "pool0"
type: "Pooling"
pooling_param {
pool: MAX
kernel_size: 3
stride: 2
}
}
layer {
bottom: "pool0"
top: "conv2"
name: "conv2"
type: "Convolution"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
convolution_param {
num_output: 256
pad: 2
kernel_size: 5
stride: 1
weight_filler {
type: "gaussian"
std: 0.05
}
bias_filler {
type: "constant"
value: 0
}
}
}
layer {
bottom: "conv2"
top: "conv2"
name: "relu3"
type: "ReLU"
}
layer {
bottom: "conv2"
top: "cccp3"
name: "cccp3"
type: "Convolution"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
convolution_param {
num_output: 256
kernel_size: 1
stride: 1
weight_filler {
type: "gaussian"
std: 0.05
}
bias_filler {
type: "constant"
value: 0
}
}
}
layer {
bottom: "cccp3"
top: "cccp3"
name: "relu5"
type: "ReLU"
}
layer {
bottom: "cccp3"
top: "cccp4"
name: "cccp4"
type: "Convolution"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
convolution_param {
num_output: 256
kernel_size: 1
stride: 1
weight_filler {
type: "gaussian"
std: 0.05
}
bias_filler {
type: "constant"
value: 0
}
}
}
layer {
bottom: "cccp4"
top: "cccp4"
name: "relu6"
type: "ReLU"
}
layer {
bottom: "cccp4"
top: "pool2"
name: "pool2"
type: "Pooling"
pooling_param {
pool: MAX
kernel_size: 3
stride: 2
}
}
layer {
bottom: "pool2"
top: "conv3"
name: "conv3"
type: "Convolution"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
convolution_param {
num_output: 384
pad: 1
kernel_size: 3
stride: 1
weight_filler {
type: "gaussian"
std: 0.01
}
bias_filler {
type: "constant"
value: 0
}
}
}
layer {
bottom: "conv3"
top: "conv3"
name: "relu7"
type: "ReLU"
}
layer {
bottom: "conv3"
top: "cccp5"
name: "cccp5"
type: "Convolution"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
convolution_param {
num_output: 384
kernel_size: 1
stride: 1
weight_filler {
type: "gaussian"
std: 0.05
}
bias_filler {
type: "constant"
value: 0
}
}
}
layer {
bottom: "cccp5"
top: "cccp5"
name: "relu8"
type: "ReLU"
}
layer {
bottom: "cccp5"
top: "cccp6"
name: "cccp6"
type: "Convolution"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
convolution_param {
num_output: 384
kernel_size: 1
stride: 1
weight_filler {
type: "gaussian"
std: 0.05
}
bias_filler {
type: "constant"
value: 0
}
}
}
layer {
bottom: "cccp6"
top: "cccp6"
name: "relu9"
type: "ReLU"
}
layer {
bottom: "cccp6"
top: "pool3"
name: "pool3"
type: "Pooling"
pooling_param {
pool: MAX
kernel_size: 3
stride: 2
}
}
layer {
bottom: "pool3"
top: "pool3"
name: "drop"
type: "Dropout"
dropout_param {
dropout_ratio: 0.5
}
}
layer {
bottom: "pool3"
top: "conv4"
name: "conv4-1024"
type: "Convolution"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
convolution_param {
num_output: 1024
pad: 1
kernel_size: 3
stride: 1
weight_filler {
type: "gaussian"
std: 0.05
}
bias_filler {
type: "constant"
value: 0
}
}
}
layer {
bottom: "conv4"
top: "conv4"
name: "relu10"
type: "ReLU"
}
layer {
bottom: "conv4"
top: "cccp7"
name: "cccp7-1024"
type: "Convolution"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
convolution_param {
num_output: 1024
kernel_size: 1
stride: 1
weight_filler {
type: "gaussian"
std: 0.05
}
bias_filler {
type: "constant"
value: 0
}
}
}
layer {
bottom: "cccp7"
top: "cccp7"
name: "relu11"
type: "ReLU"
}
layer {
bottom: "cccp7"
top: "cccp8"
name: "cccp8-1024"
type: "Convolution"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
convolution_param {
num_output: 1000
kernel_size: 1
stride: 1
weight_filler {
type: "gaussian"
std: 0.01
}
bias_filler {
type: "constant"
value: 0
}
}
}
layer {
bottom: "cccp8"
top: "cccp8"
name: "relu12"
type: "ReLU"
}
layer {
bottom: "cccp8"
top: "pool4"
name: "pool4"
type: "Pooling"
pooling_param {
pool: AVE
kernel_size: 6
stride: 1
}
}
layer {
name: "accuracy"
type: "Accuracy"
bottom: "pool4"
bottom: "label"
top: "accuracy"
include: { phase: TEST }
}
layer {
name: "loss"
type: "SoftmaxWithLoss"
bottom: "pool4"
bottom: "label"
include: { phase: TRAIN }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment