前两天又在服务器上装了一遍caffe系统,遇到的错误。。。。真的想喷几口老血
决定将之后遇到的caffe训练过程中的错误记录下来,防止一遍一遍又一遍的百度,
1、 Check failed: top_shape[j] == bottom[i]->shape(j) (1 vs. 2) All inputs must have the same shape, except at concat_axis. Check failure stack trace:
很明显是网络上下层的shape不符合,解决方法是:查看输出日志,找到shape不一样的方法,然后修改其中一个
2、训练SSD出现 Train net output #0: mbox_loss = 0 (* 1 = 0 loss)
调整batch_size参数。
3、训练caffe模型出现./build/tools/caffe:命令未找到
解决命令:~/caffe$ sudo make all
原因:原来是有一次在caffe下使用过命令make clean
4、编译 pycaffe时报错:fatal error: numpy/arrayobject.h没有那个文件或目录
将Makefile.config中的:
PYTHON_INCLUDE := /usr/include/python2.7 \
/usr/lib/python2.7/dist-packages/numpy/core/include
改为
PYTHON_INCLUDE := /usr/include/python2.7 \
/usr/local/lib/python2.7/dist-packages/numpy/core/include