summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorEvan Shelhamer <shelhamer@imaginarynumber.net>2014-02-25 06:22:30 (GMT)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>2014-02-26 20:37:44 (GMT)
commit650b7b16dbbf0ee7b3a7362fce0821315d608d54 (patch)
tree8ae6b083e37dbbedb4c50b32abd40183675ce82c /data
parentb09adf7858d7cc401d7e42ef369efe74a45ecc0c (diff)
downloadcaffeonacl-650b7b16dbbf0ee7b3a7362fce0821315d608d54.zip
caffeonacl-650b7b16dbbf0ee7b3a7362fce0821315d608d54.tar.gz
caffeonacl-650b7b16dbbf0ee7b3a7362fce0821315d608d54.tar.bz2
file mnist
Diffstat (limited to 'data')
-rw-r--r--data/lenet.prototxt122
-rw-r--r--data/lenet_solver.prototxt27
-rw-r--r--data/lenet_test.prototxt123
-rwxr-xr-xdata/train_mnist.sh3
4 files changed, 0 insertions, 275 deletions
diff --git a/data/lenet.prototxt b/data/lenet.prototxt
deleted file mode 100644
index f5877ae..0000000
--- a/data/lenet.prototxt
+++ /dev/null
@@ -1,122 +0,0 @@
-name: "LeNet"
-layers {
- layer {
- name: "mnist"
- type: "data"
- source: "mnist-train-leveldb"
- batchsize: 64
- scale: 0.00390625
- }
- top: "data"
- top: "label"
-}
-layers {
- layer {
- name: "conv1"
- type: "conv"
- num_output: 20
- kernelsize: 5
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- blobs_lr: 1.
- blobs_lr: 2.
- }
- bottom: "data"
- top: "conv1"
-}
-layers {
- layer {
- name: "pool1"
- type: "pool"
- kernelsize: 2
- stride: 2
- pool: MAX
- }
- bottom: "conv1"
- top: "pool1"
-}
-layers {
- layer {
- name: "conv2"
- type: "conv"
- num_output: 50
- kernelsize: 5
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- blobs_lr: 1.
- blobs_lr: 2.
- }
- bottom: "pool1"
- top: "conv2"
-}
-layers {
- layer {
- name: "pool2"
- type: "pool"
- kernelsize: 2
- stride: 2
- pool: MAX
- }
- bottom: "conv2"
- top: "pool2"
-}
-layers {
- layer {
- name: "ip1"
- type: "innerproduct"
- num_output: 500
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- blobs_lr: 1.
- blobs_lr: 2.
- }
- bottom: "pool2"
- top: "ip1"
-}
-layers {
- layer {
- name: "relu1"
- type: "relu"
- }
- bottom: "ip1"
- top: "ip1"
-}
-layers {
- layer {
- name: "ip2"
- type: "innerproduct"
- num_output: 10
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- blobs_lr: 1.
- blobs_lr: 2.
- }
- bottom: "ip1"
- top: "ip2"
-}
-layers {
- layer {
- name: "loss"
- type: "softmax_loss"
- }
- bottom: "ip2"
- bottom: "label"
-}
diff --git a/data/lenet_solver.prototxt b/data/lenet_solver.prototxt
deleted file mode 100644
index d0edc0f..0000000
--- a/data/lenet_solver.prototxt
+++ /dev/null
@@ -1,27 +0,0 @@
-# The training protocol buffer definition
-train_net: "lenet.prototxt"
-# The testing protocol buffer definition
-test_net: "lenet_test.prototxt"
-# test_iter specifies how many forward passes the test should carry out.
-# In the case of MNIST, we have test batch size 100 and 100 test iterations,
-# covering the full 10,000 testing images.
-test_iter: 100
-# Carry out testing every 500 training iterations.
-test_interval: 500
-# The base learning rate, momentum and the weight decay of the network.
-base_lr: 0.01
-momentum: 0.9
-weight_decay: 0.0005
-# The learning rate policy
-lr_policy: "inv"
-gamma: 0.0001
-power: 0.75
-# Display every 100 iterations
-display: 100
-# The maximum number of iterations
-max_iter: 10000
-# snapshot intermediate results
-snapshot: 5000
-snapshot_prefix: "lenet"
-# solver mode: 0 for CPU and 1 for GPU
-solver_mode: 1
diff --git a/data/lenet_test.prototxt b/data/lenet_test.prototxt
deleted file mode 100644
index 676a2a6..0000000
--- a/data/lenet_test.prototxt
+++ /dev/null
@@ -1,123 +0,0 @@
-name: "LeNet-test"
-layers {
- layer {
- name: "mnist"
- type: "data"
- source: "mnist-test-leveldb"
- batchsize: 100
- scale: 0.00390625
- }
- top: "data"
- top: "label"
-}
-layers {
- layer {
- name: "conv1"
- type: "conv"
- num_output: 20
- kernelsize: 5
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- }
- bottom: "data"
- top: "conv1"
-}
-layers {
- layer {
- name: "pool1"
- type: "pool"
- kernelsize: 2
- stride: 2
- pool: MAX
- }
- bottom: "conv1"
- top: "pool1"
-}
-layers {
- layer {
- name: "conv2"
- type: "conv"
- num_output: 50
- kernelsize: 5
- stride: 1
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- }
- bottom: "pool1"
- top: "conv2"
-}
-layers {
- layer {
- name: "pool2"
- type: "pool"
- kernelsize: 2
- stride: 2
- pool: MAX
- }
- bottom: "conv2"
- top: "pool2"
-}
-layers {
- layer {
- name: "ip1"
- type: "innerproduct"
- num_output: 500
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- }
- bottom: "pool2"
- top: "ip1"
-}
-layers {
- layer {
- name: "relu1"
- type: "relu"
- }
- bottom: "ip1"
- top: "ip1"
-}
-layers {
- layer {
- name: "ip2"
- type: "innerproduct"
- num_output: 10
- weight_filler {
- type: "xavier"
- }
- bias_filler {
- type: "constant"
- }
- }
- bottom: "ip1"
- top: "ip2"
-}
-layers {
- layer {
- name: "prob"
- type: "softmax"
- }
- bottom: "ip2"
- top: "prob"
-}
-layers {
- layer {
- name: "accuracy"
- type: "accuracy"
- }
- bottom: "prob"
- bottom: "label"
- top: "accuracy"
-}
diff --git a/data/train_mnist.sh b/data/train_mnist.sh
deleted file mode 100755
index f110e0b..0000000
--- a/data/train_mnist.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/env sh
-
-GLOG_logtostderr=1 ../build/examples/train_net.bin lenet_solver.prototxt