forked from NVIDIA/caffe
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[examples] sequence and revise notebooks
- combine classification + filter visualization - order by classification, learning LeNet, brewing logreg, and fine-tuning to flickr style - improve flow of content in classification + filter visualization - include solver needed for learning LeNet - edit notebook descriptions for site catalogue
- Loading branch information
Showing
19 changed files
with
22,296 additions
and
26,009 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
4,414 changes: 2,231 additions & 2,183 deletions
4,414
examples/python_solving.ipynb → examples/01-learning-lenet.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
layer { | ||
name: "data" | ||
type: "HDF5Data" | ||
top: "data" | ||
top: "label" | ||
hdf5_data_param { | ||
source: "examples/hdf5_classification/data/test.txt" | ||
batch_size: 10 | ||
} | ||
} | ||
layer { | ||
name: "ip1" | ||
type: "InnerProduct" | ||
bottom: "data" | ||
top: "ip1" | ||
inner_product_param { | ||
num_output: 40 | ||
weight_filler { | ||
type: "xavier" | ||
} | ||
} | ||
} | ||
layer { | ||
name: "relu1" | ||
type: "ReLU" | ||
bottom: "ip1" | ||
top: "ip1" | ||
} | ||
layer { | ||
name: "ip2" | ||
type: "InnerProduct" | ||
bottom: "ip1" | ||
top: "ip2" | ||
inner_product_param { | ||
num_output: 2 | ||
weight_filler { | ||
type: "xavier" | ||
} | ||
} | ||
} | ||
layer { | ||
name: "accuracy" | ||
type: "Accuracy" | ||
bottom: "ip2" | ||
bottom: "label" | ||
top: "accuracy" | ||
} | ||
layer { | ||
name: "loss" | ||
type: "SoftmaxWithLoss" | ||
bottom: "ip2" | ||
bottom: "label" | ||
top: "loss" | ||
} |
54 changes: 54 additions & 0 deletions
54
examples/hdf5_classification/nonlinear_auto_train.prototxt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
layer { | ||
name: "data" | ||
type: "HDF5Data" | ||
top: "data" | ||
top: "label" | ||
hdf5_data_param { | ||
source: "examples/hdf5_classification/data/train.txt" | ||
batch_size: 10 | ||
} | ||
} | ||
layer { | ||
name: "ip1" | ||
type: "InnerProduct" | ||
bottom: "data" | ||
top: "ip1" | ||
inner_product_param { | ||
num_output: 40 | ||
weight_filler { | ||
type: "xavier" | ||
} | ||
} | ||
} | ||
layer { | ||
name: "relu1" | ||
type: "ReLU" | ||
bottom: "ip1" | ||
top: "ip1" | ||
} | ||
layer { | ||
name: "ip2" | ||
type: "InnerProduct" | ||
bottom: "ip1" | ||
top: "ip2" | ||
inner_product_param { | ||
num_output: 2 | ||
weight_filler { | ||
type: "xavier" | ||
} | ||
} | ||
} | ||
layer { | ||
name: "accuracy" | ||
type: "Accuracy" | ||
bottom: "ip2" | ||
bottom: "label" | ||
top: "accuracy" | ||
} | ||
layer { | ||
name: "loss" | ||
type: "SoftmaxWithLoss" | ||
bottom: "ip2" | ||
bottom: "label" | ||
top: "loss" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
train_net: "examples/hdf5_classification/nonlinear_auto_train.prototxt" | ||
test_net: "examples/hdf5_classification/nonlinear_auto_test.prototxt" | ||
test_iter: 250 | ||
test_interval: 1000 | ||
base_lr: 0.01 | ||
lr_policy: "step" | ||
gamma: 0.1 | ||
stepsize: 5000 | ||
display: 1000 | ||
max_iter: 10000 | ||
momentum: 0.9 | ||
weight_decay: 0.0005 | ||
snapshot: 10000 | ||
snapshot_prefix: "examples/hdf5_classification/data/train" | ||
solver_mode: CPU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# The train/test net protocol buffer definition | ||
train_net: "examples/mnist/lenet_auto_train.prototxt" | ||
test_net: "examples/mnist/lenet_auto_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: "examples/mnist/lenet" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters