fix cifar10 paths so they can be run from caffe root
authorJeff Donahue <jeff.donahue@gmail.com>
Fri, 19 Sep 2014 19:38:39 +0000 (12:38 -0700)
committerJeff Donahue <jeff.donahue@gmail.com>
Sun, 21 Sep 2014 22:55:06 +0000 (15:55 -0700)
examples/cifar10/train_full.sh
examples/cifar10/train_quick.sh

index 9dd9ad7..4285a5d 100755 (executable)
@@ -1,15 +1,16 @@
 #!/usr/bin/env sh
 
-TOOLS=../../build/tools
+TOOLS=./build/tools
 
-$TOOLS/caffe train --solver=cifar10_full_solver.prototxt
+$TOOLS/caffe train \
+    --solver=examples/cifar10/cifar10_full_solver.prototxt
 
 # reduce learning rate by factor of 10
 $TOOLS/caffe train \
-    --solver=cifar10_full_solver_lr1.prototxt \
-    --snapshot=cifar10_full_iter_60000.solverstate
+    --solver=examples/cifar10/cifar10_full_solver_lr1.prototxt \
+    --snapshot=examples/cifar10/cifar10_full_iter_60000.solverstate
 
 # reduce learning rate by factor of 10
 $TOOLS/caffe train \
-    --solver=cifar10_full_solver_lr2.prototxt \
-    --snapshot=cifar10_full_iter_65000.solverstate
+    --solver=examples/cifar10/cifar10_full_solver_lr2.prototxt \
+    --snapshot=examples/cifar10/cifar10_full_iter_65000.solverstate
index e348e12..2830c40 100755 (executable)
@@ -1,10 +1,11 @@
 #!/usr/bin/env sh
 
-TOOLS=../../build/tools
+TOOLS=./build/tools
 
-$TOOLS/caffe.bin train --solver=cifar10_quick_solver.prototxt
+$TOOLS/caffe train \
+  --solver=examples/cifar10/cifar10_quick_solver.prototxt
 
-# reduce learning rate by fctor of 10 after 8 epochs
-$TOOLS/caffe.bin train \
-  --solver=cifar10_quick_solver_lr1.prototxt \
-  --snapshot=cifar10_quick_iter_4000.solverstate
+# reduce learning rate by factor of 10 after 8 epochs
+$TOOLS/caffe train \
+  --solver=examples/cifar10/cifar10_quick_solver_lr1.prototxt \
+  --snapshot=examples/cifar10/cifar10_quick_iter_4000.solverstate