Monday, April 6, 2015

Installing Caffe on Mac OSX 10.10

Here are the instructions I followed for installing Caffe on Mac OSX 10.10


Clone the repository from here:
git clone https://github.com/BVLC/caffe
cp Makefile.config.example Makefile.config


Inside Makefile.config make the following changes:
PYTHON_LIB := $(ANACONDA_HOME)/lib
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /opt/local/include /usr/local/cuda/cudnn
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /opt/local/lib /usr/local/cuda/cudnn

Check the requirements.txt file:
Cython>=0.19.2
numpy>=1.7.1
scipy>=0.13.2
scikit-image>=0.9.3
matplotlib>=1.3.1
ipython>=1.1.0
h5py>=2.2.0
leveldb>=0.191
networkx>=1.8.1
nose>=1.3.0
pandas>=0.12.0
python-dateutil>=1.4,<2 protobuf="">=2.5.0
python-gflags>=2.0
pyyaml>=3.10
Pillow>=2.3.0

If you are using Anaconda:
$ for req in $(cat requirements.txt); do conda install $req; done
Compile and build:
$ make all
$ make py
$ make test
$ make runtest

$ export CAFFE_HOME=${HOME}/caffe

No comments:

Post a Comment