caffe入门

安装依赖

1
2
yum install protobuf-devel leveldb-devel snappy-devel opencv-devel boost-devel hdf5-devel
yum install gflags-devel glog-devel lmdb-devel

使用git拉取caffe源码

1
git clone https://github.com/BVLC/caffe.git

安装caffe的python依赖

1
2
cd caffe/python/
for req in $(cat requirements.txt); do pip install $req; done

编辑caffe所需的Makefile文件

1
2
3
cd caffe
cp Makefile.config.example Makefile.config
vim Makefile.config

编译caffe

1
make

测试编译结果

1
2
make test
make runtest

编译pycaffe

1
make pycaffe

八宝粥 wechat
欢迎您扫一扫上面的微信公众号,订阅我的博客!