05_Caffe_CPU安装配置

阿里云2000元红包!本站用户参与享受九折优惠!

sudo apt-get update sudo apt-get upgrade sudo apt-get install -y libopencv-dev sudo apt-get install -y build-essential cmake git pkg-config sudo apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler sudo apt-get install -y liblapack-dev sudo apt-get install -y libatlas-base-dev sudo apt-get install -y --no-install-recommends libboost-all-dev sudo apt-get install -y libgflags-dev libgoogle-glog-dev liblmdb-dev
sudo apt-get install -y python-pip sudo apt-get install -y python-dev sudo apt-get install -y python-numpy python-scipy sudo apt-get install -y python3-dev sudo apt-get install -y python3-numpy python3-scipy
sudo apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev
sudo apt-get install -y protobuf-compiler libatlas-base-dev libhdf5-serial-dev libboost-all-dev libboost-all-dev
sudo apt-get install -y python-pip
sudo apt-get install -y git
git clone https://github.com/BVLC/caffe.git
cd caffe/python/
sudo apt-get install python-pip
for req in $(cat requirements.txt); do pip install $req; done
cp Makefile.config.example Makefile.config
sudo gedit Makefile.config
1.将
#CPU_ONLY := 1
改为
CPU_ONLY := 1
2.修改重要的一项 将# Whatever else you find you need goes here.下面的 
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib 
修改为: 
INCLUDE_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
sudo make all -j4
sudo make test
sudo make runtest

https://www.jianshu.com/p/4859cdb3fa34

「点点赞赏,手留余香」

    还没有人赞赏,快来当第一个赞赏的人吧!
0 条回复 A 作者 M 管理员
    所有的伟大,都源于一个勇敢的开始!
欢迎您,新朋友,感谢参与互动!欢迎您 {{author}},您在本站有{{commentsCount}}条评论