Caffe训练脚本中小注释

#!/usr/bin/env sh
set -eui

# set -e 是 Shell对调用命令返回值的处理方式。只要有一个不为零,就退出。ci

TOOLS=./build/toolsit

$TOOLS/caffe train \
  --solver=examples/cifar10/cifar10_quick_solver.prototxt $@tools

 

# $@ 是全部参数build

# 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 $@ps

相关文章
相关标签/搜索