那棵树看起来生气了
安装Caffe
05/30
sudo yum install protobuf-devel leveldb-devel snappy-devel opencv-devel boost-devel hdf5-devel
sudo yum install gflags-devel glog-devel lmdb-devel
sudo yum install openblas-devel
install caffe
donwload and checkout
git clone https://github.com/intel/caffe.git
cd caffe && git checkout 1.0.6
modify caffe source
- move
PATCH/caffe.patch
,PATCH/clip.patch
to caffe folder - run
git apply caffe.patch
to modify caffe
- move
install caffe and pycaffe
mkdir build && cd build && cmake -DCPU_ONLY=1 -DCMAKE_BUILD_TYPE=Release ..
mkdir build && cd build && cmake -DCPU_ONLY=1 -DUSE_MLSL=0 -DCMAKE_BUILD_TYPE=Release ..
make all -j$(nproc)
set caffe and pycaffe env
- change user to
root
CAFFE_ROOT=$(YOUR CAFFE FOLDER)
cd $CAFFE_ROOT
and run:
- change user to
for req in $(cat python/requirements.txt) pydot; do pip install $req; done
export PYCAFFE_ROOT=$CAFFE_ROOT/python
export PYTHONPATH=$PYCAFFE_ROOT:$PYTHONPATH
export PATH=$CAFFE_ROOT/build/tools:$PYCAFFE_ROOT:$PATH
三合一收款
下面三种方式都支持哦