forked from intel/caffe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
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,14 @@ | ||
#!/usr/bin/env sh | ||
# This script converts the mnist data into leveldb format. | ||
|
||
cd ../data | ||
|
||
echo "Creating leveldb..." | ||
|
||
rm -rf mnist-train-leveldb | ||
rm -rf mnist-test-leveldb | ||
|
||
../build/examples/convert_mnist_data.bin train-images-idx3-ubyte train-labels-idx1-ubyte mnist-train-leveldb | ||
../build/examples/convert_mnist_data.bin t10k-images-idx3-ubyte t10k-labels-idx1-ubyte mnist-test-leveldb | ||
|
||
echo "Done." |
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,23 @@ | ||
#!/usr/bin/env sh | ||
# This scripts downloads the mnist data and unzips it. | ||
|
||
echo "Downloading data..." | ||
|
||
cd ../data | ||
|
||
wget -q http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz | ||
wget -q http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz | ||
wget -q http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz | ||
wget -q http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz | ||
|
||
echo "Unzipping..." | ||
|
||
gunzip train-images-idx3-ubyte.gz | ||
gunzip train-labels-idx1-ubyte.gz | ||
gunzip t10k-images-idx3-ubyte.gz | ||
gunzip t10k-labels-idx1-ubyte.gz | ||
|
||
# Creation is split out because leveldb sometimes causes segfault | ||
# and needs to be re-created. | ||
|
||
echo "Done." |
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
File renamed without changes.
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,3 @@ | ||
#!/usr/bin/env sh | ||
|
||
GLOG_logtostderr=1 ../build/tools/train_net.bin ../models/lenet_solver.prototxt |