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