Openpose--学习记录

一、code

前向代码

https://github.com/CMU-Perceptual-Computing-Lab/openpose

https://github.com/ZheC/Realtime_Multi-Person_Pose_Estimation

二、编译安装Openpose Based on Ubuntu 16.04

  1. 根据openpose需求,下载caffemodel https://github.com/CMU-Perceptual-Computing-Lab/caffe,Sudo ./install_caffe_if_cuda8.sh 安装和编译caffe
  2. Sudo apt-get install libopencv-dev   安装Opencv
  3. Git clone openpose
  4. 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/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值