NVIDIA/DIGITS build Caffe

参考:https://github.com/NVIDIA/DIGITS/blob/digits-5.0/docs/BuildCaffe.md#dependencies

Building Caffe

DIGITS requires a build of Caffe. We officially only support recent releases from NVIDIA/caffe (NVcaffe), but any recent build of BVLC/caffe will probably work too.

Dependencies

For best performance, you'll want:

Install some dependencies with Deb packages:

sudo apt-get install --no-install-recommends build-essential cmake git gfortran libatlas-base-dev libboost-all-dev libgflags-dev libgoogle-glog-dev libhdf5-serial-dev libleveldb-dev liblmdb-dev libopencv-dev libprotobuf-dev libsnappy-dev protobuf-compiler python-all-dev python-dev python-h5py python-matplotlib python-numpy python-opencv python-pil python-pip python-protobuf python-scipy python-skimage python-sklearn

Download source

# example location - can be customized
export CAFFE_ROOT=~/caffe
git clone https://github.com/NVIDIA/caffe.git $CAFFE_ROOT

Setting the CAFFE_ROOT environment variable will help DIGITS automatically detect your Caffe installation, but this is optional.

Python packages

Several PyPI packages need to be installed:

sudo pip install -r $CAFFE_ROOT/python/requirements.txt

If you hit some errors about missing imports, then use this command to install the packages in order (see discussion here):

cat $CAFFE_ROOT/python/requirements.txt | xargs -n1 sudo pip install

Build

We recommend using CMake to configure Caffe rather than the raw Makefile build for automatic dependency detection:

cd $CAFFE_ROOT
mkdir build
cd build
cmake ..
make --jobs=4
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值