# Create the imagenet leveldb inputs
# N.B. set the path to the imagenet train + val data dirs
-$TOOLS=../../build/tools
-$DATA=../../data/ilsvrc12
+TOOLS=../../build/tools
+DATA=../../data/ilsvrc12
echo "Creating leveldb..."
# Compute the mean image from the imagenet training leveldb
# N.B. this is available in data/ilsvrc12
-$TOOLS=../../build/tools
-$DATA=../../data/ilsvrc12
+TOOLS=../../build/tools
+DATA=../../data/ilsvrc12
$TOOLS/compute_image_mean.bin ilsvrc12_train_leveldb $DATA/imagenet_mean.binaryproto
#!/usr/bin/env sh
-$TOOLS=../../build/tools
+TOOLS=../../build/tools
GLOG_logtostderr=1 $TOOLS/train_net.bin \
imagenet_solver.prototxt caffe_imagenet_train_10000.solverstate
#!/usr/bin/env sh
-$TOOLS=../../build/tools
+TOOLS=../../build/tools
GLOG_logtostderr=1 $TOOLS/train_net.bin imagenet_solver.prototxt
#!/usr/bin/env sh
# This script converts the mnist data into leveldb format.
-$EXAMPLES=../../build/examples/lenet
-$DATA=../../data/mnist
+EXAMPLES=../../build/examples/lenet
+DATA=../../data/mnist
echo "Creating leveldb..."
#!/usr/bin/env sh
-$TOOLS=../../build/tools
+TOOLS=../../build/tools
GLOG_logtostderr=1 $TOOLS/train_net.bin lenet_solver.prototxt