能找到这里估计你也是快被气吐血了
intel caffe针对cpu进行了优化,可以达到与gpu相同的性能(据说
然而intel caffe编译过程中,若是把CPU_ONLY=1一行注释掉(即使用cpu)
会出现无数莫名其妙的bug,
诸如
fatal error: caffe/proto/caffe.pb.h: No such file or directory
和
./include/caffe/data_transformer.hpp(82): error: identifier "nullptr" is undefined
1 error detected in the compilation of "/tmp/tmpxft_00001dde_00000000-13_hdf5_data_layer.compute_50.cpp1.ii".
Makefile:763: recipe for target '.build_release/cuda/src/caffe/layers/hdf5_data_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/hdf5_data_layer.o] Error 1
make: *** Waiting for unfinished jobs....
./include/caffe/data_transformer.hpp(82): error: identifier "nullptr" is undefined
还有找不到lhdf5_hl和lhdf5的错误 ,
以上三种似乎是intel caffe特有的bug,网上用这个的人寥寥无几,根本搜不到解决办法,故在这里给出完整的安装流程。
除此之外还有很多库找不到,之类的错误,不一一列举了,网上几乎都有解决办法
第一步:配置环境
我的电脑环境:
opencv2.4.10(强烈建议不要装opencv3,会死,虽然它写着支持opencv3但事实就是你有很大几率会崩
ubuntu16.0