r/StableDiffusion • • 1d 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

16 comments sorted by

1

u/OptimalReflection778 1d 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 20h 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

3

u/Attiary0145 1d 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.

1

u/_kaidu_ 1d 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 1d ago

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

0

u/YoohooCthulhu 1d 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_ 1d ago

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

-1

u/Formal-Exam-8767 1d 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.

3

u/Rizzlord 1d ago

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

1

u/ChemistryEnough5496 16h 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 1d 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 1d ago

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

1

u/dvztimes 21h 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.

1

u/sharktank123456 4h ago

Is Ideogram local? It's claim to fame is no pixels get changed except for what you want to alter.

-2

u/COMPLOGICGADH 1d 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.