-
Notifications
You must be signed in to change notification settings - Fork 0
/
CPU only Caffe installation steps
45 lines (27 loc) · 1.36 KB
/
CPU only Caffe installation steps
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
### CPU only Caffe installation steps on OS X 10.9 without using libstdc++ standard
### If you are currently using macports
### run "nano .profile" and change export PATH=bin:/opt/local... to export PATH=/usr/local/bin:$PATH first
1. Install homebrew - (run in Terminal) - ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
run brew doctor ### Ignore warnings :-) Close your eyes and run the rest of the commands!
2. brew tap homebrew/science
# Prep system
brew install gcc
brew install swig
# Python
brew install python
# Scientific packages for Python
brew tap homebrew/science
brew install suite-sparse
# Dependencies
brew install --with-python protobuf
for x in snappy leveldb gflags glog szip lmdb hdf5; do brew install $x; done
brew install opencv --with-tbb --with-eigen --with-python
3. Download zip - https://github.com/BVLC/caffe/tree/dev
4. Unzip and cd to caffe-dev/python/
5. pip install -r requirements.txt
6. Place the modified "Makefile.config" in the caffe-dev dir.
6.1. Overwrite the original with the modified "gtest.h" in /Users/yourname/path-to/caffe-dev/src/gtest
7. cd back to caffe-dev/ and run "make all -j4"
8. Then, "make pycaffe"
9. Copy and place the "python/Caffe" folder in /usr/local/lib/python2.7/site-packages/
10. Try importing caffe by "import caffe"