r/StableDiffusion • u/J6j6 • 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
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?
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.
3
u/optimisticalish 1d ago
Klein 4B / 9B solved that problem long ago... https://github.com/supermansundies/comfyui-klein-edit-composite and https://github.com/Mozer/ComfyUI-PixelDriftFix
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/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/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.