用caffe如何画loss曲线呢?
Step1、记录训练的Log
—其实就是输出重定向;将我们在屏幕看到的训练过程保存为txt
#!/usr/bin/env sh
TOOLS=./build/tools
GLOG_logtostderr=0 GLOG_log_dir=/home/bin.wang/imageRetrieval/caffe-hash/hashExample/LOG \ #记录log
$TOOLS/caffe train --solver=hashExample/solver.prototxt \
-weights=hashExample/VGG_CNN_F.caffemodel -gpu 0
—为了方便,将以下3个将用到的文件拷贝到LOG目录,即${GLOG_log_dir}
tools/extra/parse_log.sh
tools/extra/extract_seconds.py
tools/extra/plot_training_log.py.example
#---------------拷贝完成是这样的-------------#
-bash-4.2$ tree LOG
.
├── extract_seconds.py
├── parse_log.sh
└── plot_training_log.py.example
0 directories, 3