Pages

星期五, 10月 21, 2016

[Caffe] 安裝Caffe

1. Installation

https://github.com/BVLC/caffe 下載原始碼。產生Makefile.config並根據需求跟改裡面的設定:


cp Makefile.config.example Makefile.config


然後再make


make all
make test
make runtest


2. 安裝python介面

  1. 檢視requirements:在caffe/python/requirements.txt中,安裝缺少的函式庫
  2. make pycaffe
  3. 在~/.bashrc中加入export PYTHONPATH=<caffe-home>/python:$PYTHONPATH