64位Ubuntu+GTX960+CUDA8.0+OpenCV3.2+Caffe

1.安装依赖项

sudo apt-get install -y build-essential
sudo apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler
sudo apt-get install -y freeglut3-dev libx11-dev libxmu-dev libxi-dev  libglu1-mesa libglu1-mesa-dev

2.安装CUDA

3.安装atlas

sudo apt-get install -y libatlas-base-dev

4.安装OpenCV

5.Python

sudo apt-get install -y python-pip
sudo apt-get install -y python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose
pip install Cython\>=0.19.2
pip install numpy\>=1.7.1
pip install scipy\>=0.13.2
pip install scikit-image\>=0.9.3
pip install matplotlib\>=1.3.1
pip install ipython\>=3.0.0
pip install h5py\>=2.2.0
pip install leveldb\>=0.191
pip install networkx\>=1.8.1
pip install nose\>=1.3.0
pip install pandas\>=0.12.0
pip install python-dateutil\>=1.4,<2
pip install protobuf\>=2.5.0
pip install python-gflags\>=2.0
pip install pyyaml\>=3.10
pip install Pillow\>=2.3.0
pip install six\>=1.1.0

6.安装Caffe

git clone git@github.com:BVLC/caffe.git
cd caffe
cp Makefile.config.example Makefile.config
gedit Makefile.config 依照需要设置USE_CUDNN,PYTHON_INCLUDE等
make all -j8
make test -j8
make runtest -j8
make pycaffe -j8
gedit ~/.bashrc 添加 export PYTHONPATH=< path-to-caffe >/caffe/python
source ~/.bashrc 即可在Python中使用Caffe模块

相关文章

ubuntu退出redis的示例:指定配置文件方式启动源码redis:roo...
ubuntu中mysql改密码忘了的解决方法:1.在终端中切换到root权...
ubuntu安装mysql失败的解决方法原因:可能是原有的MySQL还有...
使用centos和ubuntu建站的区别有以下几点1.CentOS是Linux发行...
ubuntu图形界面和字符界面切换的方法:可以通过快捷键CTRL+A...
ubuntu中重启mysql失败的解决方法1.首先,在ubuntu命令行中,...