caffe 根据训练输出的log 绘制accuracy loss 曲线时遇到 IndexError:list index out of range
2017-08-02 18:16
746 查看
/home/wcs/caffe/tools/extra/plot_training_log.py.example 6 train_loss_iters_60000.png ResNet152-2017-08-01-12-49-30.log
以上是我用caffe 自带的工具plot_training_log.py.example绘制曲线的命令行, 分别表示 工具所在/曲线类别/输出图像的名字/日志所在
运行后出现错误
Traceback (most recent call last):
File "/home/wcs/caffe/tools/extra/plot_training_log.py.example", line 184, in <module>
plot_chart(chart_type, path_to_png, path_to_logs)
File "/home/wcs/caffe/tools/extra/plot_training_log.py.example", line 117, in plot_chart
data = load_data(data_file, x, y)
File "/home/wcs/caffe/tools/extra/plot_training_log.py.example", line 88, in load_data
data[1].append(float(fields[field_idx1].strip()))
IndexError: list index out of range
这个错误的原因是因为最后一次迭代没有完全结束,我的log 是在没有训练完的情况下取出画图想查看效果的,所以才出了这个错误
打开你的日志,直接拉到最后一行,删除不完整的迭代记录,然后按照网上的画图教程重新来一遍就行了,记住是重新来,因为前面产生的log.test和log.train
文件中最后一行也可能不完整
以上是我用caffe 自带的工具plot_training_log.py.example绘制曲线的命令行, 分别表示 工具所在/曲线类别/输出图像的名字/日志所在
运行后出现错误
Traceback (most recent call last):
File "/home/wcs/caffe/tools/extra/plot_training_log.py.example", line 184, in <module>
plot_chart(chart_type, path_to_png, path_to_logs)
File "/home/wcs/caffe/tools/extra/plot_training_log.py.example", line 117, in plot_chart
data = load_data(data_file, x, y)
File "/home/wcs/caffe/tools/extra/plot_training_log.py.example", line 88, in load_data
data[1].append(float(fields[field_idx1].strip()))
IndexError: list index out of range
这个错误的原因是因为最后一次迭代没有完全结束,我的log 是在没有训练完的情况下取出画图想查看效果的,所以才出了这个错误
打开你的日志,直接拉到最后一行,删除不完整的迭代记录,然后按照网上的画图教程重新来一遍就行了,记住是重新来,因为前面产生的log.test和log.train
文件中最后一行也可能不完整
相关文章推荐
- caffe 绘制acceracy曲线 IndexError: list index out of range的解决方案
- caffe保存训练输出到log 并绘制accuracy loss曲线以及ssd画loss和accuracy曲线
- list不能修改不存在的项 IndexError: list assignment index out of range
- python IndexError: list assignment index out of range
- IndexError: list index out of range的错误原因
- IndexError: list index out of range的错误原因
- 《机器学习实战》笔记:IndexError: list index out of range
- IndexError: list index out of range列表索引超出范围
- IndexError: list index out of range
- Python:IndexError: list index out of range
- 【Bug-python】IndexError: list index out of range
- IndexError: list index out of range的错误原因 和python sorted函数以及operator.itemgetter函数
- python创建cocos2d-x出现list index out of range的问题解决方法
- list index out of range
- windows下输出训练caffemodel的log日志并画出accuracy和loss曲线
- IndexError: list index out of range的错误原因
- caffe在训练时遇到:Check failed: error == cudaSuccess (2 vs. 0) out of memory
- caffe保存训练输出到log 并绘制accuracy loss曲线
- 【caffe】在windows下输出训练caffemodel的log日志并画出accuracy和loss曲线
- python列表删除会出现一个错误 list index out of range