caffe: command line brew
usage: caffe <command> <args>
commands:
train train or finetune a model 训练或者调整模型
test score a model 给一个模型打分
device_query show GPU diagnostic information 显示GPU的诊断信息
time benchmark model execution time 检测一个模型的运行时间
Flags from tools/caffe.cpp:
控制你用哪一个GPU,如果全用则-gpu all:
-gpu (Optional; run in GPU mode on given device IDs separated by ','.Use
'-gpu all' to run on all available GPUs. The effective training batch
size is multiplied by the number of devices.) type: string default: ""
设置你训练和测试的迭代次数
-iterations (The number of iterations to run.) type: int32 default: 50
-level (Optional; network level.) type: int32 default: 0
-model 后接 net.prototxt 文件,此文件设置了网络的结构
-model (The model definition protocol buffer text file.) type: string
default: ""
-phase (Optional; network phase (TRAIN or TEST). Only used for 'time'.)
type: string default: ""
-sighup_effect (Optional; action to take when a SIGHUP signal is received:
snapshot, stop or none.) type: string default: "snapshot"
-sigint_effect (Optional; action to take when a SIGINT signal is received:
snapshot, stop or none.) type: string default: "stop"
-snapshot (Optional; the snapshot solver state to resume training.)
type: string default: ""
-solver 后接你的solver.prototxt文件
-solver (The solver definition protocol buffer text file.) type: string
default: ""
-stage (Optional; network stages (not to be confused with phase), separated
by ','.) type: string default: ""
-weights 后接你之前训练好的 .caffemodel文件,存储的是之前得到的参数们。
-weights (Optional; the pretrained weights to initialize finetuning,
separated by ','. Cannot be set simultaneously with snapshot.)
type: string default: ""