Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.1.427] New preprocessor depth_hand_refiner #2433

Closed
fireantsmore opened this issue Jan 8, 2024 Discussed in #2400 · 1 comment
Closed

[1.1.427] New preprocessor depth_hand_refiner #2433

fireantsmore opened this issue Jan 8, 2024 Discussed in #2400 · 1 comment

Comments

@fireantsmore
Copy link

Discussed in #2400

Originally posted by huchenlei January 4, 2024
Thanks Fannovel16 for his hard work extracting dependencies out for hand refiner in https://github.com/Fannovel16/comfyui_controlnet_aux/.

Previously users need to use extensions like https://github.com/jexom/sd-webui-depth-lib to pick a matching hand gesture and move it to a correct location. depth_hand_refiner preprocess now does this job automatically for you.

How to use

Now you can manually draw the inpaint mask on hands and use a depth ControlNet unit to fix hands with following steps:

Step 1: Generate an image with bad hand.

00009-603936670

Step 2: Switch to img2img inpaint. Draw inpaint mask on hands.

1704329180304

Step 3: Enable ControlNet unit and select depth_hand_refiner preprocessor.

1704329221720

Step 4: Generate

1704329401241

ADetailer usage example (Bing-su/adetailer#460):

You need to wait for ADetailer author to merge that PR or checkout the PR manually. This section is independent of previous img2img inpaint example. Here the generation is txt2img.

Image generated without ADetailer

00019-3875947387

Image generated with ADetailer

00020-3875947387adetailer

ADetailer setting

1704335057409

Make sure you adjust denoising strength so that depth map can take control of hand rendering.

Known issues

Hand refiner cannot handle complex hand gestures such as crossed fingers. Example: only 1 hand detected when finger are crossed:
1704390318094

@huchenlei
Copy link
Collaborator

Why copy/repost the discussion thread here?

@huchenlei huchenlei closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants