简介
Caffe,全称Convolutional Architecture for Fast Feature Embedding。是一种常用的深度学习框架,主要应用在视频、图像处理方面的应用上。
此次主要唠唠关于它的部署
安装依赖
1 | sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler |
在caffe-master/python下:1
for req in $(cat requirements.txt); do pip install $req; done
下载Caffe
git clone https://github.com/BVLC/caffe.git
贼卡,可以去github用其他工具下载。
解压:unzip -n caffe-master.zip -d ./
安装caffe
1 | cd caffe |
在Makefile.config文件中把CPU_ONLY := 1的注释给去掉
修改如下:1
2INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/hdf5/serial
计算能力 mkl > openlas >atlas,为了简便,默认atlas