sd-webui-controlnet icon indicating copy to clipboard operation
sd-webui-controlnet copied to clipboard

Hand Pose Estimation

Open edgartaor opened this issue 2 years ago • 9 comments

Is possible to include this model to generate images with good hands?

I think is already part of ControlNet, but it does not create a hand pose estimation in my experiments with this extension.

If anyone have more info, please comment. https://github.com/CMU-Perceptual-Computing-Lab/openpose image

https://github.com/Hzzone/pytorch-openpose#hand-pose-estimation image

image

edgartaor avatar Feb 14 '23 07:02 edgartaor

Hand Pose Estimation is disabled by default, you may need to enable it manually. https://github.com/Mikubill/sd-webui-controlnet/blob/fca33937af7bf45dac94616531643ce228c88d6b/scripts/processor.py#L69 (Maybe we should add a setting tab to configure such things)

Mikubill avatar Feb 14 '23 07:02 Mikubill

A toggle for it on the UI would be ideal, this is crazy good for assisting the AI with hands.

trihardseven avatar Feb 14 '23 12:02 trihardseven

However, it may not work if pos2model is trained with openpose images without hands. image

toyxyz avatar Feb 14 '23 13:02 toyxyz

Put those .pth files to annotetor/ckpts/ , and hand detection will work. https://huggingface.co/lllyasviel/ControlNet/tree/main/annotator/ckpts image

matsuvr avatar Feb 14 '23 14:02 matsuvr

Quick test! image image

toyxyz avatar Feb 14 '23 14:02 toyxyz

Don't know if I did the right thing but I downloaded the hand_pose_model.pth put it in the annotator folder, then chose the openpose_hand preprocessor then used control_any3_openpose model

test

YukiSakuma avatar Feb 14 '23 17:02 YukiSakuma

Quick test! image image

looks like hand model doesnt work and makes it worse

2blackbar avatar Feb 14 '23 19:02 2blackbar

I guess the models need to be retrained with hands in mind

trihardseven avatar Feb 14 '23 20:02 trihardseven

Put those .pth files to annotetor/ckpts/ , and hand detection will work. https://huggingface.co/lllyasviel/ControlNet/tree/main/annotator/ckpts image

not good

flufy3d avatar Feb 20 '23 16:02 flufy3d