forked from milq/milq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-caffe.sh
46 lines (39 loc) · 1.27 KB
/
install-caffe.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# CAFFE INSTALLATION: http://caffe.berkeleyvision.org/installation.html
# Keep Ubuntu or Debian up to date
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo apt-get -y autoremove
# DEPENDENCIES
sudo apt-get install -y libopenblas-dev
sudo apt-get install -y libboost-all-dev
sudo apt-get install -y libprotobuf-dev protobuf-compiler
sudo apt-get install -y libgoogle-glog-dev
sudo apt-get install -y libgflags-dev
sudo apt-get install -y libhdf5-dev
# OPTIONAL DEPENDENCIES
# Install OpenCV (http://milq.github.io/install-opencv-ubuntu-debian).
sudo apt-get install -y liblmdb-dev
sudo apt-get install -y libleveldb-dev
sudo apt-get install -y libsnappy-dev
# INTERFACES (Python 3)
sudo apt-get install -y python3-dev python3-numpy libboost-python-dev
# CLONING AND COMPILING
git clone https://github.com/BVLC/caffe.git
cd caffe
# cp Makefile.config.example Makefile.config
# Adjust Makefile.config (for example, if using Anaconda Python)
# make all -j8
# make test -j8
# make runtest
#
# make all matcaffe
# make mattest
#
# PERSONAL NOTES AND PERSONAL CONFIGURATION
# CPU_ONLY := 1
# OPENCV_VERSION := 3
# BLAS := open
# BLAS_LIB := /usr/lib/openblas-base
# MATLAB_DIR := /opt/MATLAB/R2015a
# INSTALL OPENCV 3 with -DWITH_GDAL=OFF!!! Error OpenCV 3 with GDAL.