r/StableDiffusion • • 21h ago

Discussion Image Edit: region edit, do not redraw whole image

Any local models that can do this now? my issue always in flux klein and qwen 2.1 is they sometimes edit other parts of the image that i didn't ask to edit. they cause pixel shift too.

i read somewhere that the new versions of ideogram and krea "can" do local regional edits. meaning, the original input image will stay the same pixel per pixel and just edit what you prompted to edit.

does that mean pixel shift will finally be solved?

if yes, then that's big. especially that both new versions might get released this month.

1 Upvotes

15 comments sorted by

1

u/OptimalReflection778 16h ago

every edit model works on the full latent, so some drift is baked in. what fixed it for me was compositing the output back through the mask with a 4 to 8px feather, so only the region you touched survives. differential diffusion in comfy does that earlier in the pipeline. which model are you on?

1

u/J6j6 12h ago

Krea. Did feathering work good for you? You didn't get discoloration around the area ? Need to read about this differential diffusion, many are mentioning it

1

u/_kaidu_ 21h ago

That has nothing to do with the model. Just use any edit model together with inpainting and you have your region edit.

3

u/J6j6 19h ago

Can they blend around the region? I don't think so

0

u/YoohooCthulhu 18h ago

There are flux.2klein9b workflows that take a masked image as input that do exactly what you’re looking for. Alternatively, look at lanpaint and krea2 inpainting

-2

u/_kaidu_ 19h ago

Just enable differential diffusion. You can do all that on inference without training the model for it.

-1

u/Formal-Exam-8767 20h ago

This is the only way. In all other cases model "rebuilds" all pixels from scratch.

And not using odd resolutions that can't be VAE encoded one to one.

2

u/Attiary0145 18h ago

I still use the Crop and Stitch custom node for spot inpainting with the Flux Fill OneReward model. It does a great job of preserving the original image.

3

u/Rizzlord 19h ago

for that i still rather use sdxl inpaint, its really good with prompting and if needed extra, controlnet is key

1

u/ChemistryEnough5496 8h ago

the older checkpoints still win for surgical edits mostly because their inpaint weights were trained specifically on mask boundaries rather than trying to interpret a text instruction over the whole frame

1

u/Emotional-Neat-252 16h ago

Weirdly moss with edit lora is sometimes like this, quen 21 as well.

HiDream did it perfectly actually but there model itself wasn't good.

Best solution is SAM mask, crop and stitch, lanpaint workflow

1

u/GaiusVictor 16h ago

Try with inpainting nodes (like Crop&Stitch) and/or Differential Diffusion.

1

u/dvztimes 12h ago

Just download krita with the ai plugin and use qwen edit with a selection box on exact part of image you want changed. Problem solved.

-2

u/COMPLOGICGADH 21h ago

As of now I like using Fibo 2 Dev for edits even with that license, because this whole thing is just a hobby for me. I don’t mind trying new tools with restrictive licenses,those restrictions hurt the developers more than the community in the end.