Giter Site home page Giter Site logo

caffe_install_for_macosx_elcapitan-sierra's Introduction

Caffe_Install_for MacOSX (El Capitan/Sierra)

CPU Only Mode.

Install CUDA for Mac OS X

https://developer.nvidia.com/cuda-downloads

Install dependency

brew install boost --with-python brew install boost-python

brew install protobuf brew install glog brew install gflags

brew install leveldb brew install lmdb

brew tap homebrew/science brew install homebrew/science/hdf5

pip install h5py

brew install numpy

Install Caffe Github

$ git clone https://github.com/BVLC/caffe.git

Makefile configuration

$ cp Makefile.config.example Makefile.config $ mcedit Makefile.config

  1. CPU_ONLY := 1

  2. CUDA_DIR := /usr/local/cuda

  3. CUDA_ARCH := -gencode arch=compute_20,code=sm_20
    -gencode arch=compute_20,code=sm_21
    -gencode arch=compute_30,code=sm_30
    -gencode arch=compute_35,code=sm_35
    -gencode arch=compute_50,code=sm_50
    -gencode arch=compute_50,code=compute_50

  4. BLAS := atlas

  5. PYTHON_INCLUDE := /usr/include/python2.7
    /usr/local/Cellar/numpy/1.9.2_1/lib/python2.7/site-packages/numpy/core/include

  6. PYTHON_LIB := /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/

Compile

$ sudo make clean -j4

$ sudo make all -j4

$ sudo make test -j4 $ sudo make runtest

$ sudo make pycaffe -j4

Test

$ python -c 'import caffe'

Enjoy the Caffe in Mac ~

caffe_install_for_macosx_elcapitan-sierra's People

Contributors

bemoregt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.