简介:如何在ubuntu 14.04 下安装caffe深度学习框架。 注:安装caffe时一定要保持网络状态好,不然会遇到很多麻烦。例如下载不了,各种报错。 一、安装依赖包 $ sudo apt-get install git$ sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler $ sudo apt-get install --no-install-recommends libboost-all-dev$ sudo apt-get install libatlas-base-dev
$ sudo apt-get install
python-dev
$ sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev 二、下载caffe源码 $ git clone https:github.com/bvlc/caffe.git 三、开始编译
$ cd caffe/
$
mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release -DCPY_ONLY=ON ..
$ make all
$
make install
$ make runtest
参考:
http://caffe.berkeleyvision.org/install_apt.html
http://caffe.berkeleyvision.org/installation.html#compilation
时间: 2024-10-08 11:13:05