$ cd /opt/caffe-master
#把原先输出到窗口的信息,记录到1.log文件里。
$ sudo time sh examples/cifar10/train_quick.sh >& examples/cifar10/1.log
#这种办法,屏幕上不再有显示,如果要想在屏幕上显示,可以用:
$ sudo time sh examples/cifar10/train_quick.sh |tee examples/cifar10/1.log
caffe提供了{caffe_root}/tools/extra/plot_training_log.py工具可视化loss和accurary曲线。
$ python tools/extra/plot_training_log.py 0 a.png examples/cifar10/1.log
$ python tools/extra/plot_training_log.py 2 l.png examples/cifar10/1.log