系统:ubuntu16.04
已经安装了cuda8.0,cudnn5.1,自己编译的opencv3
安装atlas
sudo apt-get install libatlas-base-dev
git clone
git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose
安装caffe 和openpose
openpose目录下
./ubuntu/install_caffe_and_openpose_if_cuda8.sh
编译过程遇到的问题
- 关于opencv的问题
.build_release/lib/libcaffe.so: undefined reference to `cv::imdecode
使用自己的opencv3需要修改makefile.config相关文件,要修改/openpose/3rdparty/caffe/Makefile.config.Ubuntu16_cuda8.example文件,将其中OPENCV_VERSION := 3这一行的注释取消。
# Uncomment if you're using OpenCV 3
OPENCV_VERSION := 3
还有/openpose/ubuntu/Makefile.config.Ubuntu16_cuda8.example文件,做同样修改。
- libpng16.so.16:对‘inflateValidate@ZLIB_1.2.9’未定义的引用
在/openpose/3rdparty/caffe/Makefile.config.Ubuntu16_cuda8.example文件中,添加
LINKFLAGS := -Wl,-rpath,$(HOME)/anaconda3/lib
- 关于gtk的问题
sudo apt-get install libgtk2.0-0
找不到prototxt的问题
很诡异的问题,运行demo的时候,要在openpose根目录下(不要进入下几级目录),使用跟链接中同样的命令
https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/quick_start.md#quick-start