caffe画loss和accurary的曲线

需要用到的文件在 caffe/tools/extar/plot_training_log.py.example

还需要用到caffe/tools/extarparse_log.sh 和 caffe/tools/extarextract_seconds.py文件(如果不在当前目录执行记得都拷贝出来)

执行命令 python plot_training_log.py 0 save.png my.log

0为要画那种图,有测试的、训练的accurary等等

save.png是保存图像路径

my.log 是caffe输出日志,必须以.log结尾

 

需要注意:

1. 在文件extarextract_seconds.py中第56行代码elapsed_seconds = (dt - start_datetime).total_seconds(),

在python2.6下没有total_seconds属性,我把这句改为elapsed_seconds=1000

 

2. 数据比较多的情况,设置use_marker = False

 

3. 同样python2.6下 注释掉matplotlib.markers  #import matplotlib.markers as mks

 

4. 在没有图像界面的服务器上,使用 

import matplotlib
matplotlib.use('Agg')

 

5. 安装matlotlib

sudo apt-get install python-maplotlib

 

posted @ 2016-03-04 19:12  kisstea  阅读(1672)  评论(0编辑  收藏  举报