Skip to content

Instantly share code, notes, and snippets.

@dnola
Created November 21, 2016 04:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnola/f98ce117eeb99b27133bc5a75a02f4f2 to your computer and use it in GitHub Desktop.
Save dnola/f98ce117eeb99b27133bc5a75a02f4f2 to your computer and use it in GitHub Desktop.
net: "cifar10_quick_train_test.prototxt"
test_iter: 100
test_interval: 500
base_lr: 0.00001
momentum: 0
lr_policy: "fixed"
display: 500
max_iter: 12000
solver_mode: GPU
name: "CIFAR10_quick"
layer {
name: "cifar"
type: "Data"
top: "data"
top: "label"
include {
phase: TRAIN
}
data_param {
source: "cifar10_train_lmdb"
batch_size: 100
backend: LMDB
}
}
layer {
name: "cifar"
type: "Data"
top: "data"
top: "label"
include {
phase: TEST
}
data_param {
source: "cifar10_test_lmdb"
batch_size: 100
backend: LMDB
}
}
layer {
name: "ip1"
type: "InnerProduct"
bottom: "data"
top: "ip1"
inner_product_param {
num_output: 128
weight_filler {
type: "gaussian"
std: 0.1
}
bias_filler {
type: "constant"
}
}
}
layer {
name: "ip2"
type: "InnerProduct"
bottom: "ip1"
top: "ip2"
inner_product_param {
num_output: 128
weight_filler {
type: "gaussian"
std: 0.1
}
bias_filler {
type: "constant"
}
}
}
layer {
name: "ip3"
type: "InnerProduct"
bottom: "ip2"
top: "ip3"
inner_product_param {
num_output: 10
weight_filler {
type: "gaussian"
std: 0.1
}
bias_filler {
type: "constant"
}
}
}
layer {
name: "softmax"
type: "Softmax"
bottom: "ip3"
top: "softmax"
}
layer {
name: "accuracy"
type: "Accuracy"
bottom: "softmax"
bottom: "label"
top: "accuracy"
include {
phase: TEST
}
}
layer {
name: "loss"
type: "MultinomialLogisticLoss"
bottom: "softmax"
bottom: "label"
top: "loss"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment