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.
Add "set -e" and $@ to example scripts
- Loading branch information
1 parent
c2a1ecd
commit 93d3212
Showing
19 changed files
with
39 additions
and
18 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,16 +1,17 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
TOOLS=./build/tools | ||
|
||
$TOOLS/caffe train \ | ||
--solver=examples/cifar10/cifar10_full_solver.prototxt | ||
--solver=examples/cifar10/cifar10_full_solver.prototxt $@ | ||
|
||
# reduce learning rate by factor of 10 | ||
$TOOLS/caffe train \ | ||
--solver=examples/cifar10/cifar10_full_solver_lr1.prototxt \ | ||
--snapshot=examples/cifar10/cifar10_full_iter_60000.solverstate.h5 | ||
--snapshot=examples/cifar10/cifar10_full_iter_60000.solverstate.h5 $@ | ||
|
||
# reduce learning rate by factor of 10 | ||
$TOOLS/caffe train \ | ||
--solver=examples/cifar10/cifar10_full_solver_lr2.prototxt \ | ||
--snapshot=examples/cifar10/cifar10_full_iter_65000.solverstate.h5 | ||
--snapshot=examples/cifar10/cifar10_full_iter_65000.solverstate.h5 $@ |
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
TOOLS=./build/tools | ||
|
||
$TOOLS/caffe train \ | ||
--solver=examples/cifar10/cifar10_full_sigmoid_solver.prototxt | ||
--solver=examples/cifar10/cifar10_full_sigmoid_solver.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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
TOOLS=./build/tools | ||
|
||
$TOOLS/caffe train \ | ||
--solver=examples/cifar10/cifar10_full_sigmoid_solver_bn.prototxt | ||
--solver=examples/cifar10/cifar10_full_sigmoid_solver_bn.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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
TOOLS=./build/tools | ||
|
||
$TOOLS/caffe train \ | ||
--solver=examples/cifar10/cifar10_quick_solver.prototxt | ||
--solver=examples/cifar10/cifar10_quick_solver.prototxt $@ | ||
|
||
# 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.h5 | ||
--snapshot=examples/cifar10/cifar10_quick_iter_4000.solverstate.h5 $@ |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
./build/tools/caffe train \ | ||
--solver=models/bvlc_reference_caffenet/solver.prototxt \ | ||
--snapshot=models/bvlc_reference_caffenet/caffenet_train_10000.solverstate.h5 | ||
--snapshot=models/bvlc_reference_caffenet/caffenet_train_10000.solverstate.h5 \ | ||
$@ |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
./build/tools/caffe train \ | ||
--solver=models/bvlc_reference_caffenet/solver.prototxt | ||
--solver=models/bvlc_reference_caffenet/solver.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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
./build/tools/caffe train --solver=examples/mnist/lenet_solver.prototxt | ||
./build/tools/caffe train --solver=examples/mnist/lenet_solver.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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
./build/tools/caffe train --solver=examples/mnist/lenet_solver_adam.prototxt | ||
./build/tools/caffe train --solver=examples/mnist/lenet_solver_adam.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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
./build/tools/caffe train \ | ||
--solver=examples/mnist/lenet_consolidated_solver.prototxt | ||
--solver=examples/mnist/lenet_consolidated_solver.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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
./build/tools/caffe train --solver=examples/mnist/lenet_solver_rmsprop.prototxt | ||
./build/tools/caffe train \ | ||
--solver=examples/mnist/lenet_solver_rmsprop.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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
./build/tools/caffe train \ | ||
--solver=examples/mnist/mnist_autoencoder_solver.prototxt | ||
--solver=examples/mnist/mnist_autoencoder_solver.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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
./build/tools/caffe train \ | ||
--solver=examples/mnist/mnist_autoencoder_solver_adadelta.prototxt | ||
--solver=examples/mnist/mnist_autoencoder_solver_adadelta.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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
./build/tools/caffe train \ | ||
--solver=examples/mnist/mnist_autoencoder_solver_adagrad.prototxt | ||
--solver=examples/mnist/mnist_autoencoder_solver_adagrad.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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
./build/tools/caffe train \ | ||
--solver=examples/mnist/mnist_autoencoder_solver_nesterov.prototxt | ||
--solver=examples/mnist/mnist_autoencoder_solver_nesterov.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
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/usr/bin/env sh | ||
set -e | ||
|
||
TOOLS=./build/tools | ||
|
||
$TOOLS/caffe train --solver=examples/siamese/mnist_siamese_solver.prototxt | ||
$TOOLS/caffe train --solver=examples/siamese/mnist_siamese_solver.prototxt $@ |