Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.7 KB

README.md

File metadata and controls

44 lines (35 loc) · 1.7 KB

EasyOpenPose

OpenPose的简单实现

Usage:

这是一个linux caffe的实现版本

  • 1.修改caffe的Makefile,CXXFLAGS += -std=c++11,使得支持c++11
  • 2.新建目录caffe/examples/EasyOpenPose,并把easyOpenPose.cpp复制进去
  • 3.编译caffe即可

效果

test.jpg test_openpose.jpg

使用方法

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-强烈不建议,因为很费流量,很费钱

Windows的实现

https://github.com/dlunion/OpenPose

引用

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

add BODY25 support

.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