Created
April 8, 2017 08:27
-
-
Save codeAshu/0d51b9a7bb2b827da6e01d67a2ffc1fe to your computer and use it in GitHub Desktop.
Commands to run to install caffe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#dependencies | |
sudo apt-get install -y build-essential libgoogle-glog-dev libgflags-dev libeigen3-dev\ | |
libopencv-dev libcppnetlib-dev libboost-dev libcurlpp-dev libcurl4-openssl-dev protobuf-compiler\ | |
libopenblas-dev libhdf5-dev libprotobuf-dev\ | |
libleveldb-dev libsnappy-dev liblmdb-dev libutfcpp-dev cmake | |
# few more | |
sudo apt-get install -y build-essential autoconf libtool pkg-config python-opengl python-imaging\ | |
python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4\ | |
libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl \ | |
libgle3 python-dev libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev libblas-dev liblapack-dev\ | |
libatlas-base-dev gfortran libxslt1-dev libxslt1.1 libxml2-dev libxml2 libssl-dev libboost-all-dev | |
#clone caffe | |
https://github.com/BVLC/caffe.git | |
# switch to caffe | |
#create a makefile | |
cp Makefile.config.example Makefile.config | |
#for CPU only | |
// uncomment CPU_ONLY := 1 in Makefile.config | |
# add python path | |
/home/ashu.trv/.env/vision/ | |
#make caffe | |
make all -j20 | |
#where -j<n> n is the number of core in the machine | |
#for python, once you have added python paths in Makefile.config | |
make pycaffe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment