mac下caffe的安装
一、安装好brew和OpenCV(2.4.13)
可以google一下,网上很多。
二、安装一些第三方依赖的库
brew install -vd snappy leveldb gflags glog szip lmdb
brew install hdf5
brew install protobuf boost
三、下载caffe
git clone https://github.com/BVLC/caffe.git
四、编译及测试
cd caffe
cp Makefile.config.example Makefile.config
vi Makefile.config,去掉CPU_ONLY := 1的注释
make all
make test
make runtest
出现下图所示表示成功了(忽略中间的警告)
附:编译中的错误
No receipt for ‘com.apple.pkg.CLTools_Executables’ found at ‘/’.
./include/caffe/util/mkl_alternate.hpp:14:10: fatal error: ‘cblas.h’ file not found
见:http://blog.youkuaiyun.com/xx352890098/article/details/78526930