Skip to content

Commit

Permalink
fix cifar10 paths so they can be run from caffe root
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdonahue committed Sep 21, 2014
1 parent e5cc609 commit 315ce1d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
13 changes: 7 additions & 6 deletions examples/cifar10/train_full.sh
Original file line number Diff line number Diff line change
@@ -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
13 changes: 7 additions & 6 deletions examples/cifar10/train_quick.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 315ce1d

Please sign in to comment.