r/StableDiffusion • • 5d ago

Question - Help Best local workflows\models for refining images generated by other AI models?

I've been experimenting with locally enhancing and refining images generated with ChatGPT and Nano Banana, and I'm curious how others approach this.

Currently, I'm using FLUX.2 Klein 9B in ComfyUI, but the results are still far from perfect. It does a decent job at improving overall image quality and adding details, but it often struggles with small details like:

  • Distorted hands, fingers, toes, and anatomy.
  • Malformed jewelry, accessories, and small objects.
  • Inconsistent clothing details and strange geometry.
  • Random artifacts and details that need additional correction.

And I still have to spend a lot of time manually masking problematic areas and inpainting them individually.

What I'm trying to achieve is something closer to reference-guided reconstruction: using the original image as an anchor while allowing a local model to intelligently reconstruct details, fix mistakes, improve anatomy, and add realistic textures without completely changing the character, composition, pose, or overall aesthetic.

So: Is FLUX.2 Klein 9B a good choice for this, or are there better alternatives?

I'm not necessarily looking for a way to upscale images. The main goal is to correct imperfections and improve existing details while keeping the original image recognizable.

Thanks!

0 Upvotes

14 comments sorted by

2

u/DeepAnyMod 2d ago

What fixed most of the manual masking for me was doing the repair in small passes instead of one global enhance. Hands, jewelry and clothing details break because the model re-invents them everywhere at once. So first crop each problem area with a generous margin, then run a low-strength pass on just that crop with a short prompt describing what should be there ("five fingers, relaxed hand", "thin gold chain necklace"). Paste it back with a soft feathered edge. If the crop is small, upscale it 2x before the pass, since small details need pixels to come out right. For the rest of the image, a very gentle full-frame pass (strength around 0.2-0.3) adds texture without changing the character or pose. Doing it per region is quicker than it sounds once you reuse the same crop settings. Which problem comes up most for you, hands or accessories?

1

u/knuckle23 21h ago

Accessories mostly, Klein9b manages to fix some of them, but the results are pretty random.
I usually create quite a lot of images, and repairing each one manually takes time. I just thought it might be possible to fix everything in one go, but I see now that that's probably asking too much 😅

1

u/DeepAnyMod 5h ago

Not too much to ask, but I'd get there by automating the crops rather than hoping one global pass does it. Set up a batch graph that detects the problem areas (jewelry, belts, glasses, hands), crops each with some margin, enlarges it, repairs it with a prompt specific to that object type, and pastes it back with a feathered mask. Then queue the whole folder and let it run overnight. For the randomness, render 2-3 seeds per image and only pick between finished results in the morning; choosing takes seconds, masking takes minutes. Is it usually the same kind of accessory that breaks, like earrings or chains?

2

u/DelinquentTuna 5d ago

locally enhancing and refining images generated with ChatGPT and Nano Banana [...] using FLUX.2 Klein 9B

Something doesn't seem quite right here. You're getting bad anatomy out of commercial AI?

What I'm trying to achieve is something closer to reference-guided reconstruction

EG, an edit model. I feel like your whole post could be encapsulated as, "what's the best edit model?" There are so few worth considering that you should try each of Klein 9b, Qwen-Image-Edit, Qwen Image 2.1, and Flux.3 Klein. TBH, I have not looked at h3 image yet because their license is so fucking unworkable.

That said, getting mangled hands and stuff from Klein 9b (in editing) is pretty hard to do and I would've imagined impossible from GPT and Nano Banana. So I have to believe that you're either doing something very wrong or you are not describing your scenario very well.

1

u/knuckle23 5d ago

chatgpt messes up anatomy pretty bad sometimes, and in full-height pics hands often get distorted, so as small elements like jewellery and clothing details.
I usually pass chatgpt images through klein9b model, it enhances them quite well, but a lot of those small details remain messed up

1

u/DelinquentTuna 5d ago

chatgpt messes up anatomy pretty bad sometimes

I'm absolutely floored to hear that. Bad hands sounds like a mostly solved problem these days at a local level, let alone a commercial one. If you've got examples of mangled anatomy from gpt and nano banana, I'd like to see them along w/ your workflows etc.

a lot of those small details remain messed up

Latent space has a much coarser pixel density than image space. Something just a few pixels across in image space is effectively below the floor threshold for most vae encoders on local models. You may have to snip and zoom before editing. But even barring low-detail bits, you're not going to be able to feed an image into an edit model and expect it to identify and repair everything without specific instruction. Your description sounds like you think you can just feed an image in with instructions to "enhance!", with the model figuring out what's worthy of improvement. That's more of a refinement pass than an editing one, and it's the opposite of what you asked for w/ "reference-guided reconstruction" because you'll have to manually balance between fidelity and adherence to the input.

1

u/knuckle23 21h ago

some of recent examples from gpt images

1

u/djenrique 5d ago

You can VAE encode any image and use its latent and further process the image using your model of choice so long as the sampler adds noise and you set denoise lower than 1. Ask GPT he’ll tell you how.

1

u/knuckle23 5d ago

I already do it with klein9b, I just wonder if there is an optimal\best workflow\model for that

3

u/Ill_Resolve8424 5d ago

Here is how I do it.

I make sure the image size is around 3-4.000 pixels, if not I upscale using seedvr2 or kadinsky (the new kid).

You need pixels to make good edits.

Than I use krita or Layershop now , to make the edits. Depending on the thing I want I use Qwen 2.1 or H3 or if I want something very specific I do a rough sketch and I use the "restyle" option in edit and use moss or krea2 with lowered strength. Working with people I prefer moss. I use selections with 20-30 feather, and edit the layer mask at will after. I use layershop since I am familiar with photoshop.

2

u/purelawan 5d ago

For hands, jewelry and small objects the thing that helped me most was not a better model but working at a bigger scale: crop the problem area (the Inpaint Crop and Stitch nodes do this), let the model redraw that crop at around 1 MP with a mask and denoise around 0.35 to 0.5, then stitch it back. A hand that is 120 px wide in a full image becomes 900 px in the crop, and even Klein fixes fingers fine at that size. For the "keep everything, just repair" pass, an edit model with a very literal instruction ("same image, only fix the left hand") tends to drift less than img2img on the whole frame.

2

u/SnooHamsters7479 5d ago

Since you're already masking problem areas, I'd try inpainting just those regions at a higher working resolution (crop and scale the masked area up, fix it, then paste back) with a low denoise around 0.3 to 0.45. That keeps the pose and composition anchored while giving small details like hands and jewelry enough pixels to come out clean.

2

u/Ill-Ant-9489 4d ago

What finally worked for me was scale, not a fancier refiner. Upscale the full image to about 3k first with seedvr2, then redo hands and jewelry as separate masked passes at that size, denoise around 0.4 so the pose holds. A blind low denoise over the whole frame just smears the small stuff, which is probably what klein 9b is doing now.

I folded that upscale plus a klein detail re-render into a local app I made on top of comfyui, LoRA Dataset Studio. The re-render takes an instruction, so you say what the ring or the fingers should be instead of hoping a blind pass sorts it. heads up, klein can shift color a bit.

is the bad anatomy mostly on your full body gens, or on close crops too?

2

u/flavioj 5d ago

Currently, I primarily use Layershop, with Qwen 2.1 for corrections. Previously, I also used Inpainting (I use the Forgeneo UI) whenever the model had editing capabilities. As for proprietary models, I would stitch together pieces of artwork and have Gemini correct them, then resize the result. ChatGPT, by contrast, would usually alter the image's colors when attempting the same task—even when explicitly instructed not to.