2015年8月29日 星期六

Install Caffe on Ubuntu 14.04

Ubuntu 14.04 Installation

相依函式庫:
#CUDA(GPU模式) 7.0 version and the latest driver version are recommended
$sudo apt-get install cuda

#BLAS via ATLAS
$sudo apt-get install libatlas-base-dev

#OpenCV >= 2.4 including 3.0
$sudo apt-get install libopencv-dev

#Boost >= 1.55
$sudo apt-get install --no-install-recommends libboost-all-dev

#protobuf, glog, gflags
$sudo apt-get install libprotobuf-dev libgflags-dev libgoogle-glog-dev

#IO libraries hdf5, leveldb, snappy, lmdb
$sudo apt-get install libhdf5-serial-dev libleveldb-dev libsnappy-dev liblmdb-dev


解壓縮完Caffe資料夾後,建立一個build資料夾
$mkdir build
$cd build
$cmake ..

cmake後,結果如下圖:

確定相依資料庫後開始build
$make all
$make runtest



參考來源:
http://caffe.berkeleyvision.org/install_apt.html
http://caffe.berkeleyvision.org/installation.html

0 意見:

張貼留言