1. 安装Cmake-gui
Sudo apt-get install cmake-qt-gui
2. 安装CUDA9.0、Cudnn7.3.1
参考:https://blog.csdn.net/weixin_41977337/article/details/105250016
3. Opencv安装
参考:https://blog.csdn.net/cocoaqin/article/details/78163171
亲测3.4.0好用,中间有一些warning不用担心
4. Openpose and Caffe下载
下载openpose:
git clone https://github.com/CMU-Perceptual-Comuting-Lab/openpose.git
下载CMU提供的caffe:
git clone https://github.com/CMU-Perceptual-Computing-Lab/caffe.git
将openpose/3rdparty中空白的caffe删除,并将下载好的caffe移送到该文件夹下。
安装依赖库:sudo apt-get install libopenblas-dev liblapack-dev libatlas-base-dev
5. openpose编译准备
下载完之后在openpose目录下打开cmake:
cmake-gui
新建build文件夹:
mkdir build
填写openpose目录:
点击configure,选择Unix Makefile和Use default native compilers,点击finish。点击generate,有一些红色的可配置项。
最后点击generate,然后关闭cmake
6. Openpose编译
进入openpose/build文件夹下,并在命令行输入:
Make -j’nproc’
如果出错,就试试
Make -j
7. 测试
./build/examples/openpose/openpose.bin --video examples/media/video.avi