Caffe訓練指令碼中小注釋
阿新 • • 發佈:2019-03-05
#!/usr/bin/env sh
set -e
# set -e 是 Shell對呼叫命令返回值的處理方式。只要有一個不為零,就退出。
TOOLS=./build/tools
$TOOLS/caffe train \
--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.solverst