Caffe: Data layer prefetch queue empty
2016-09-18 09:11
609 查看
资源1
The problem was that the text files for training and test data were not shuffled, but sorted. Thus, test was done only on the images of same class, and parameters were learned from the images of that same class as well, leading to 100% accuracy very quickly.
资源2
So can you get the right result ( accuracy and loss) while finetune , in my result it seems only slow down the test process.
资源3
I think it is the problem of power supply, not the problem of Caffe.
总结:
原因:CPU数据读入慢于GPU计算,导致GPU处于空闲,使得计算速度下降,迭代时间间隔扩大。nvidia-smi显示为:GPU功率不断大幅度变化,GPU电压不稳定。
可能诱因:服务器同时在进行其他工作,如大规模读写数据(频繁使用IO),数据无法读入;CPU同时进行其他工作,负载极重,无法正常读取数据;CPU内存爆表,所有程序速度变慢。
解决办法:
1 使用lmdb替换txt文件,加快数据读取速度;
2 避免IO被频繁使用;
3 可以考虑不加入test.txt
The problem was that the text files for training and test data were not shuffled, but sorted. Thus, test was done only on the images of same class, and parameters were learned from the images of that same class as well, leading to 100% accuracy very quickly.
资源2
So can you get the right result ( accuracy and loss) while finetune , in my result it seems only slow down the test process.
资源3
I think it is the problem of power supply, not the problem of Caffe.
总结:
原因:CPU数据读入慢于GPU计算,导致GPU处于空闲,使得计算速度下降,迭代时间间隔扩大。nvidia-smi显示为:GPU功率不断大幅度变化,GPU电压不稳定。
可能诱因:服务器同时在进行其他工作,如大规模读写数据(频繁使用IO),数据无法读入;CPU同时进行其他工作,负载极重,无法正常读取数据;CPU内存爆表,所有程序速度变慢。
解决办法:
1 使用lmdb替换txt文件,加快数据读取速度;
2 避免IO被频繁使用;
3 可以考虑不加入test.txt
相关文章推荐
- Caffe: Data layer prefetch queue empty
- Caffe: Data layer prefetch queue empty
- caffe Data layer prefetch queue empty重启
- caffe源代码分析--data_layer.cpp
- Caffe源码解析4: Data_layer
- Caffe实现多标签输入,添加数据层(data layer)
- Caffe源码解析4: Data_layer
- Caffe源码解析4: Data_layer
- caffe源码分析--data_layer.cpp
- caffe源码解读(5)-image_data_layer.cpp
- 新版caffe(r3) imagedatalayer说明
- 将caffe中的data和label分别写在两个layer中
- Caffe源码解析4: Data_layer
- 关于caffe里面image_data_layer的使用
- 代码笔记:caffe-reid中reid_data_layer源码解析
- Caffe源码解析4: Data_layer
- 梳理caffe代码image_data_layer、data_layer、window_data_layer(七)
- Caffe 初学拾遗(十) Layer Catalogue (Data Layer)
- Caffe代码解读(二):base_data_layer.hpp
- Caffe源码解析3: Data_layer