ubuntu安装caffe
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler -y sudo apt-get install --no-install-recommends libboost-all-dev -y sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev -y sudo apt-get install python-dev -y 下载caffe源码 git clone https://github.com/BVLC/caffe.git 修改编译配置文件: cd caffe 复制示例文件为编译配置文件: nano Makefile.config GPU版:将#USE_CUDNN := 1 修改成: USE_CUDNN := 1 将# Whatever else you find you need goes here.下面的 INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib 修改为: