搭建caffe
1.先确定.bashrc中有miniconda的路径
export PATH=/home/xiang/miniconda3/bin:$PATH
2.新创沙盒环境
conda create --name caffe-xy python=2.7.15
3.下载caffe
cd ~/miniconda3/envs/caffe-xy/
git clone https://github.com/BVLC/caffe.git
4.为了编译openpose,需要当前的commit
为f019d0dfe86f49d1140961f8c7dec22130c83154
cd caffe/
git checkout f019d0dfe86f49d1140961f8c7d
5.安装依赖
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y build-essential cmake git pkg-config
sudo apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev protobuf-compiler
sudo apt-get install -y libatlas-base-dev
sudo apt-get install -y --no-install-recommends libboost-all-dev
sudo apt-get install -y libgflags-dev libgoogle-glog-dev liblmdb-dev
sudo apt-get install -y libopencv-dev libhdf5-serial-dev
sudo apt-get install -y build-essential cmake git libgtk2.0-dev pkg-config python-dev python-numpy libdc1394-22 libdc1394-22-dev libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libxine2-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev libtbb-dev libqt4-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils unzip
6.激活caffe沙盒环境安装opencv
source activate caffe-xy
conda install opencv
7.注释掉miniconda路径
#export PATH=/home/xiang/miniconda3/bin:$PATH
8.修改Makefile.