$ ./build/tools/caffe.bin
caffe.bin: command line brew
usage: caffe <command><aegs>
commands:
train 训练或微调一个模型
test 对一个模型打分
device_query 显示GPU诊断信息
time 评估模型执行时间
Glags from tools/caffe.cpp:
-gpu (可选参数,给定时运行在GPU模式,‘-gpu all‘ 则表示运行在所有可用GPU设备上,此时真正训练大小是N*B,N为指定的GPU设备数目)
-iterations (循环迭代次数,默认为50)
-model (指定模型定义文本文件名,*.prototxt)
-sighup_effect (当收到SIGHUP信号时要采取的动作,可选项:snapshot、stop、或none,默认为snapshot,即打快照)
-sigint_effect (当收到SIGINT信号时要采取的动作,可选项同上,默认为stop)
-snapshot (恢复训练时需要指定上次终止的快照,*.solverstate)
-solver (指定求解器文本文件名,*.prototxt)
-weights (指定用于微调的预训练权值,*.caffemodel,不可与snapshot同时出现)
原文:https://www.cnblogs.com/juluwangshier/p/12116259.html