一、code
前向代码
https://github.com/CMU-Perceptual-Computing-Lab/openpose
- Training code included in the original CVPR 2017 GitHub repository.
https://github.com/ZheC/Realtime_Multi-Person_Pose_Estimation
二、编译安装Openpose Based on Ubuntu 16.04
- 根据openpose需求,下载caffemodel https://github.com/CMU-Perceptual-Computing-Lab/caffe,Sudo ./install_caffe_if_cuda8.sh 安装和编译caffe
- Sudo apt-get install libopencv-dev 安装Opencv
- Git clone openpose
- Cd openpose
Mkdir build/
Cd build
cmake -DCaffe_INCLUDE_DIRS=/home/huang/work/alg-work/2019/03-w/action/openpose/caffe/caffe-master/include -DCaffe_LIBS=/home/huang/work/alg-work/2019/03-w/action/openpose/caffe/caffe-master/build/lib/libcaffe.so -DBUILD_CAFFE=OFF ..
cd ..
Openpose-master/CMakeLists.txt中设置
set(CUDA_USE_STATIC_CUDA_RUNTIME OFF)
ln -s /usr/local/cuda8-0/lib64/libcudart.so /usr/local/lib/
ln -s /usr/local/cuda8-0/lib64/libcudart.a /usr/local/lib/
5.cd build/
make -j`nproc` make -j 8
6.test
# Ubuntu
./build/examples/openpose/openpose.bin --video examples/media/video.avi
Error1: fatal error: caffe/proto/caffe.pb.h: No such file or directory #inlude “caffe/proto/caffe.pb.h”
解决方法:将caffe/build/src/caffe/proto中的caffe.pb.h拷贝到caffe/include/cafffe/proto
Error2 canot find -lopencv_dep_cudart
Openpose-master/CMakeLists.txt中设置
set(CUDA_USE_STATIC_CUDA_RUNTIME OFF)
ln -s /usr/local/cuda8-0/lib64/libcudart.so /usr/local/lib/
ln -s /usr/local/cuda8-0/lib64/libcudart.a /usr/local/lib/