Debian9.8 安装 caffe:
下载caffe:
https://github.com/BVLC/caffe/releases
解压caffe-1.0.tar.gz:
tar xf caffe-1.0.tar.gz
cd caffe-1.0/
安装依赖库:
sudo apt build-dep caffe-cpu # dependencies for CPU-only version
sudo apt build-dep caffe-cuda # dependencies for CUDA version
sudo apt install -y libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
sudo apt install -y --no-install-recommends libboost-all-dev
sudo apt install -y libatlas-base-dev
编译:
mkdir build
cd build
cmake ..
make all
make install
make runtest
测试caffe:
cp -rf examples/ ./build/
sh data/mnist/get_mnist.sh
sh examples/mnist/create_mnist.sh