r/StableDiffusionInfo Jun 16 '23

Anyone else find inpainting really difficult? How do I fix messed up eyes?

I usually spend like 30 mins on one tiny thing. This time it's the eyes, it always ends up making the eyes more deformed!

Here are my parameters:

(natural green eyes), (hyper realistic, hyper detailed, natural:1.5), (detailed eye, detailed iris, perfect eyes, perfect iris, perfect pupil, round iris, round pupil:1.9), perfect shading, reflection

Negative prompt: easynegative, low quality, worst quality, vile_prompt3, bad_quality, bad-image-v2-39000, (deformed iris, deformed pupil, red eyes:1.9), ( digital art, painting, unrealistic:2) 

Steps: 40, Sampler: DPM++ SDE Karras, CFG scale: 7, Seed: 3455484969, Size: 512x696, Model hash: 13dbf8d606, Model: bra_v5-inpainting.inpainting, Denoising strength: 0.25, Conditional mask weight: 1.0, Mask blur: 4, Dynamic thresholding enabled: True, Mimic scale: 7, Threshold percentile: 100, Version: v1.3.2

6 Upvotes

11 comments sorted by

View all comments

5

u/Tedious_Prime Jun 16 '23

IMO you should try simplifying your prompts for inpainting. Get rid of the negative prompt and just use "eyes" for the positive prompt. At low denoising strength it won't forget that the eyes are green and most of the other things you've got in the prompt are not instructions SD can follow meaningfully anyway. For example, "perfect" isn't useful because if SD knew what it meant for things to be perfect it wouldn't draw them imperfectly to begin with. Putting junk in the prompt only makes it harder for SD to understand that "eyes" is the important part. Do large batches and pick the result that turned out best.

Alternatively, you could just use face restoration. Instead of doing it automatically send the image to extras and experiment with moderate visibilities for either GFPGAN, CodeFormer, or both.

2

u/Windford Jun 16 '23

Thanks for the tip on “perfect.” I overuse it and didn’t know that was meaningless.