命令为
./build/tools/caffe train --solver examples/DPPN/solver_dct_pixel.prototxt 2>&1| tee mylog/caffe.log
首先cd进入caffe根目录
执行该命令,
examples/DPPN/solver_dct_pixel.prototxt 为执行文件路径
mylog/caffe.log为log存放路径
如果在训练时候需要拷贝权重,则命令如下
./build/tools/caffe train --solver examples/DPPN/solver_dct_pixel.prototxt -weights=examples/DPPN/pre_train.caffemodel -gpu=0 2>&1| tee mylog/log.txt
其中,-gpu 0指定了使用gpu的id,
-weigths指定了需要拷贝的预训练模型的路径,