OpenPose的简单实现
这是一个linux caffe的实现版本
- 1.修改caffe的Makefile,CXXFLAGS += -std=c++11,使得支持c++11
- 2.新建目录caffe/examples/EasyOpenPose,并把easyOpenPose.cpp复制进去
- 3.编译caffe即可
base_width和base_height是输入网络时候的宽高度,直接影响效果和消耗的时间
bin imagefile gpuid[-1] base_width[656] base_height[368] [deploy] [caffemodel]
输出结果
../../.build_release/examples/openpose/main.bin test.jpg 3 500 500
image: test.jpg
deploy: pose_deploy_linevec.prototxt
caffemodel: pose_iter_440000.caffemodel
compute device GPU(3).
base size = width 500 x height 500
forward fee: 634.756 ms
finish. save result to 'test_openpose.jpg', people: 3
pose_iter_440000.caffemodel下载地址1-强烈建议
pose_iter_440000.caffemodel下载地址2-强烈不建议,因为很费流量,很费钱
https://github.com/dlunion/OpenPose
https://github.com/CMU-Perceptual-Computing-Lab/openpose
.build_debug/examples/EasyOpenPose25/easyOpenPose.bin /workdir/EasyOpenPose/test.jpg 0 400 279 /workdir/openpose/models/pose/body_25/pose_deploy.prototxt /body_25/pose_deploy.prototxt /workdir/openpose/models/pose/body_25/pose_iter_584000.caffemodel