зеркало из https://github.com/microsoft/caffe.git
Add "set -e" and $@ to example scripts
This commit is contained in:
Родитель
c2a1ecd4b2
Коммит
93d321227f
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env sh
|
||||
# This script converts the cifar data into leveldb format.
|
||||
set -e
|
||||
|
||||
EXAMPLE=examples/cifar10
|
||||
DATA=data/cifar10
|
||||
|
|
|
@ -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 $@
|
||||
|
|
|
@ -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 $@
|
||||
|
||||
|
|
|
@ -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 $@
|
||||
|
||||
|
|
|
@ -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 $@
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env sh
|
||||
# Create the imagenet lmdb inputs
|
||||
# N.B. set the path to the imagenet train + val data dirs
|
||||
set -e
|
||||
|
||||
EXAMPLE=examples/imagenet
|
||||
DATA=data/ilsvrc12
|
||||
|
|
|
@ -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 \
|
||||
$@
|
||||
|
|
|
@ -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 $@
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env sh
|
||||
# This script converts the mnist data into lmdb/leveldb format,
|
||||
# depending on the value assigned to $BACKEND.
|
||||
set -e
|
||||
|
||||
EXAMPLE=examples/mnist
|
||||
DATA=data/mnist
|
||||
|
|
|
@ -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 $@
|
||||
|
|
|
@ -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 $@
|
||||
|
|
|
@ -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 $@
|
||||
|
|
|
@ -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 $@
|
||||
|
|
|
@ -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 $@
|
||||
|
|
|
@ -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 $@
|
||||
|
|
|
@ -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 $@
|
||||
|
|
|
@ -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 $@
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env sh
|
||||
# This script converts the mnist data into leveldb format.
|
||||
set -e
|
||||
|
||||
EXAMPLES=./build/examples/siamese
|
||||
DATA=./data/mnist
|
||||
|
|
|
@ -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 $@
|
||||
|
|
Загрузка…
Ссылка в новой задаче