Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update standard networks for Caffe #733

Merged
merged 3 commits into from
May 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions digits/standard-networks/caffe/alexnet.prototxt
Original file line number Diff line number Diff line change
@@ -1,35 +1,31 @@
# AlexNet
name: "AlexNet"
layer {
name: "data"
name: "train-data"
type: "Data"
top: "data"
top: "label"
include {
phase: TRAIN
}
transform_param {
mirror: true
crop_size: 227
}
data_param {
batch_size: 100
batch_size: 128
}
include { stage: "train" }
}
layer {
name: "data"
name: "val-data"
type: "Data"
top: "data"
top: "label"
include {
phase: TEST
}
transform_param {
crop_size: 227
}
data_param {
batch_size: 100
batch_size: 32
}
include { stage: "val" }
}
layer {
name: "conv1"
Expand Down
16 changes: 6 additions & 10 deletions digits/standard-networks/caffe/googlenet.prototxt
Original file line number Diff line number Diff line change
@@ -1,36 +1,32 @@
# GoogLeNet
name: "GoogleNet"
layer {
name: "data"
name: "train-data"
type: "Data"
top: "data"
top: "label"
include {
phase: TRAIN
}
transform_param {
mirror: true
crop_size: 224
}
data_param {
batch_size: 24
batch_size: 32
}
include { stage: "train" }
}
layer {
name: "data"
name: "val-data"
type: "Data"
top: "data"
top: "label"
include {
phase: TEST
}
transform_param {
mirror: false
crop_size: 224
}
data_param {
batch_size: 24
batch_size: 16
}
include { stage: "val" }
}
layer {
name: "conv1/7x7_s2"
Expand Down
28 changes: 17 additions & 11 deletions digits/standard-networks/caffe/lenet.prototxt
Original file line number Diff line number Diff line change
@@ -1,43 +1,49 @@
# LeNet
name: "LeNet"
layer {
name: "mnist"
name: "train-data"
type: "Data"
top: "data"
top: "scaled"
top: "label"
include {
phase: TRAIN
transform_param {
# 1/(standard deviation)
scale: 0.0125
}
data_param {
batch_size: 64
}
include { stage: "train" }
}
layer {
name: "mnist"
name: "val-data"
type: "Data"
top: "data"
top: "scaled"
top: "label"
include {
phase: TEST
transform_param {
# 1/(standard deviation)
scale: 0.0125
}
data_param {
batch_size: 100
batch_size: 32
}
include { stage: "val" }
}
layer {
# Use Power layer in deploy phase for input scaling
name: "scale"
bottom: "data"
top: "scale"
top: "scaled"
type: "Power"
power_param {
# 1/(standard deviation)
scale: 0.0125
}
include { stage: "deploy" }
}
layer {
name: "conv1"
type: "Convolution"
bottom: "scale"
bottom: "scaled"
top: "conv1"
param {
lr_mult: 1
Expand Down