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

前端之家收集整理的这篇文章主要介绍了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/352696.html

猜你在找的Ubuntu相关文章