1、下载caffe,如:
'''
cd /work/caffe
mkdir segnet
git clone https://github.com/alexgkendall/caffe-segnet.git
'''
目录结构如下所示:
2、建立build文件夹:
cd segnet/caffe-segnet
cmake-gui
source code 路径设置为/work/caffe/segnet/caffe-segnet
build 路径设置为/work/caffe/segnet/caffe-segnet/build
点击configure
报错:
原因:opencv路径没有配
指定opencv路径,点击configure,没报错,通过
再点击generate
进入build目录:
cd build
make install
编译成功