Here are the instructions I followed for installing Caffe on Mac OSX 10.10
Clone the repository from here:
Inside Makefile.config make the following changes:
Check the requirements.txt file:
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
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.02>
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