caffe入门学习(一)mac下caffe的安装

来源:互联网 发布:form表单上传文件 php 编辑:程序博客网 时间:2024/06/06 09:29

刚刚接触深度学习这块,在这里做个笔记加深印象。

1、提前装好brew和OpenCV(2.4.13),可以google一下。

2、安装一些第三方依赖的库
brew install -vd snappy leveldb gflags glog szip lmdb
brew install hdf5
brew install protobuf boost

3、下载caffe
git clone https://github.com/BVLC/caffe.git

4、编译
cd caffe
cp Makefile.config.example Makefile.config
vi Makefile.config,去掉CPU_ONLY := 1的注释
make all
make test
make runtest
出现下图所示表示成功了(忽略中间的警告)
这里写图片描述

5、编译中的错误
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.csdn.net/xx352890098/article/details/78526930

原创粉丝点击