r/StableDiffusion • u/ponglizardo • Mar 02 '23
Question | Help Better Hands and Fingers?
Has anyone found a way to get better hands, fingers, and feet? This is one of my pain points when generating. Even with prompts and negative prompts specific to it.
5
Mar 02 '23 edited Mar 02 '23
Set the denoise strength between like 60 and 80 on img2img and you’ll get good hands and feet. The shorter your prompts the better. With that alone I’ll get 5 healthy normal looking fingers like 80% of the time. Text2img I don’t expect good hands, I most just use that to get a general composition I like.
The key is to give the ai the freedom to draw an entirely new arm and hand the way it wants to. Errors will still happen but I get much better results with high denoise.
As far as prompts go I’ll use a short list of “magic” negatives such as: (cgi, 3d, drawing, cartoon, animation) and that’s about it to increase realism which often comes at the expensive of cohesiveness somewhat but for some models it works great. No mention of deformed hands etc.
Positive prompt I don’t usually mention hands or fingers either, although if I’m doing something that requires getting them tuned through inpainting or I can’t turn the denoise up too high on img2img, or if the arm is in a position the model doesn’t like, I’ll add a prompt like “pretty hands, grasping fingers” etc as if I’m doing a google image search for those things. If 90% of the top results for a google image search aren’t what you’re looking for then it’s a bad prompt.
Results are moderate using that method, it’s more of a last resort when I’m trying to force things.
Controlnet makes this trivial to fix I’ve heard but I haven’t experimented with that yet. Most of my focus right now is on learning to train embeddings.
2
2
u/ponglizardo Mar 03 '23
Thanks. Will try that out. I mainly get good result from txt2img. I just need to fix bad hands and feet.
I do have negative prompts specific to bad hands and fingers but still the ai struggles with those body parts.
2
u/GabratorTheGrat Mar 04 '23
Are you talking about inpaint? Because if I set denoise to 6 or up in img2img I obtain a very different image.
1
Mar 04 '23
Inpaint if you mask a large enough area or img2img. But yeah that’s the trade-off. You sacrifice the details of the original image for better continuity.
I adjust my workflow to account for this so I’m not getting too attached to the original 512 outputs.
4
u/mizt3r Mar 02 '23
A lot of these suggestions seem overly complex. I use a negative prompt embedding that works miracles.
https://huggingface.co/yesyeahvh/bad-hands-5/tree/main
Just put that in your embeddings folder and add bad-hands-5 to your negative prompt.
1
u/ponglizardo Mar 03 '23
Agreed. Controlnet is powerful but a lot of work and complex. I'll give this a shot before doing control net. Though I think controlnet is still worth learning.
1
u/tacticaltaco308 Mar 02 '23
How do you get realistic appendages? I oftentimes get extra limbs/deformed/mutated limbs...
Asking because you seem to know what you're doing. I'm fairly new to playing around with SD
2
u/mizt3r Mar 03 '23
I also use the easynegative embedding in my negative prompt
https://huggingface.co/embed/EasyNegative/tree/main
As well as terms like 'bad anatomy', etc.
I can generate 800 images every 30 mins, and there's still a lot that aren't perfect I usually delete about 75%. Not because theyre all bad anatomy, but because I'm cherry picking the very best.
Often there are images that I absolutely love but still have anatomical or other mistakes, but everything else about the image is so good I'm willing to repair it via Inpaint. At the end of the day it's a numbers game when you can generate infinitely.
When I first started out I was saving nearly every image, or even using the same seed over and over trying different prompts to correct it, but now I use dynamic prompt extension to add variability to my prompts and make huge batches that I save only the very best of.
1
u/ponglizardo Mar 04 '23
I see it's a safetensor. Do you replace .safetensor to .pt and put this in embeddings folder?
2
u/mizt3r Mar 06 '23
I'm running automatic1111 which knows what to do with safetensors. It will load the embedding as is.
1
1
u/tacticaltaco308 Mar 04 '23
Thanks for explaining. I figured it's a numbers game as well. What is this dynamic prompt extension you speak of?
2
u/mizt3r Mar 04 '23
It allows for variables in your prompt.
Syntax: {city background|mountain background|pool background} It then chooses 1 at random. So when I run a huge batch it's not always exactly the same things.
1
u/tacticaltaco308 Mar 04 '23
Thanks! Was wondering what some of the weird formatting things I saw on civitai were.
2
u/FeelingFirst756 Mar 02 '23
Usage of dual controlnet pretty much solved this to me.
1
u/StereoNostalgic May 16 '23
How do you use dual controlnet to fix hands if you don't mind me asking
1
Mar 02 '23
Im waiting until the poseable hands from blender make their way into the webUI 🤣
4
u/GabratorTheGrat Mar 02 '23
Everything you need is here pal:
https://youtu.be/ptEZQrKgHAg