You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Step 2: Switch to img2img inpaint. Draw inpaint mask on hands.
Step 3: Enable ControlNet unit and select depth_hand_refiner preprocessor.
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
Image generated with ADetailer
ADetailer setting
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:
The text was updated successfully, but these errors were encountered:
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.
Step 2: Switch to img2img inpaint. Draw inpaint mask on hands.
Step 3: Enable ControlNet unit and select
depth_hand_refiner
preprocessor.Step 4: Generate
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
Image generated with ADetailer
ADetailer setting
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](https://private-user-images.githubusercontent.com/20929282/294257983-3097c33d-f0ec-43e0-83f2-05a33040a00d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3MDczMzYsIm5iZiI6MTcxODcwNzAzNiwicGF0aCI6Ii8yMDkyOTI4Mi8yOTQyNTc5ODMtMzA5N2MzM2QtZjBlYy00M2UwLTgzZjItMDVhMzMwNDBhMDBkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE4VDEwMzcxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU5Y2IzZmJjMDkwOWQ1MDRjMjRiZDQ5MjlkZTI0MTU0NDI0YzY1YjM0YjU5YzUzY2QwOTI5Zjg4MTQ0YTc1YzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.fTUKmmpKtkcPFDKN41GER90Jo6f9Aqo4DQ9-jY02inM)
The text was updated successfully, but these errors were encountered: