michalfaber / keras_Realtime_Multi-Person_Pose_Estimation

Keras version of Realtime Multi-Person Pose Estimation project
Other
780 stars 372 forks source link

How can we use hand detector from OpenPose #1

Open seva100 opened 7 years ago

seva100 commented 7 years ago

@michalfaber, thank you for your awesome work. I am preparing a project that relies on pose estimation and requires hand landmarks. I was wondering if hand detector from OpenPose can also be used within your Keras version. Are you going to adapt it? May be, it is easy for me to adapt it myself?

michalfaber commented 7 years ago

Thanks @seva100 I’ve had a look at the hand detector from OpenPose. It uses different architecture - more vgg layers but fewer layers in total. Writing keras model based on proto file is the easiest part of the task. Probably more difficult would be to understand how actually this model was trained. Sure you can try to adapt it. Right now I focus on the training part in this keras version of the project.

seva100 commented 7 years ago

@michalfaber thank you, will keep you informed about any progress.

Zumbalamambo commented 7 years ago

@michalfaber how do I draw heatmap around the entire body only?

michalfaber commented 7 years ago

@Zumbalamambo You can use segmentation data for the entire body. In this project we use only keypoints.

Zumbalamambo commented 6 years ago

can you please tell me how can I use the segmentation data or can you point me in a direction where I can do segmentation?

michalfaber commented 6 years ago

@Zumbalamambo Here is an example how you can draw segmentation using coco api (downloadable from https://github.com/cocodataset/cocoapi). Have a look at the source code for coco.showAnns

%matplotlib inline
from pycocotools.coco import *
import cv2

coco = COCO("./dataset/annotations/person_keypoints_val2017.json")
ids = list(coco.imgs.keys())
img_id = ids[322]
ann_ids = coco.getAnnIds(imgIds=img_id)
img_anns = coco.loadAnns(ann_ids)

img = cv2.imread("./dataset/val2017/%012d.jpg" % img_id ) 
plt.imshow(img[:,:,[2,1,0]])
coco.showAnns([img_anns[0]])
Zumbalamambo commented 6 years ago

thank you ... May I know the dataset and files that I need to download from this so as to test it?

michalfaber commented 6 years ago

@Zumbalamambo Yes

oakkas commented 6 years ago

Any update on hand landmark estimation with keras?

JasOlean commented 6 years ago

I also would like to know about hand pose estimation with keras.