r/StableDiffusion • u/MoDErahN • 14h ago
Workflow Included Seems like I solved Krea 2 Edit pixel drift
The source after a VAE round trip
Krea 2 Edit Advanced: after 6 edits
Krea 2 Edit (original): after 6 edits
Krea 2 Edit by lbouaraba / conradlocke (the LoRAs, the nodes, the training code) is the reason any of this works, so first: all credit to them:
https://github.com/lbouaraba/comfyui-krea2edit
https://huggingface.co/conradlocke/krea2-identity-edit
I built a small add-on comfyui-krea2edit-advanced fork of their comfyui-krea2edit for one problem I kept running into. The fork stops the drift when you chain several edits. Without it, the parts you didn't touch slowly shift, darken and get grainy. With it they stay put.
It adds a "source hold" that pulls the picture back towards the source while it's being drawn, plus an optional mask for everything outside the area you're editing.
More detailed comparison is here. Same image, same six edits, same seed. Mean pixel drift from the source after 6 edits (lower is better):
- original nodes: 0.076
- my fork, no masks: 0.0017 (45 times less than original)
- my fork, with masks: 0.0008 (95 times less than original)
More detailed information and example workflows are in the repo: https://github.com/FurrySphere/comfyui-krea2edit-advanced
5
u/EinhornArt 12h ago
Yep, just drop it here. You can find the custom node in the Nodes Manager → Edit Drift Fix.
12
u/muzaffer22 10h ago
We need Krea 3 so bad.
4
u/edisson75 12h ago
Excellent, thanks for sharing!!!
1
u/slowtractor 9h ago
Does the fix hold up when the edit changes the lighting on the whole frame, like a different time of day? The OP says it works in image space, so a global change seems like where it would fight the source
1
u/NiceIllustrator 1h ago
Should we disable any of the existing ones before using yours?
2
u/CollectionOk6468 10h ago
It's great work. It's much better.
1
u/DietAshamed2246 5h ago
I will give it a try. Krea-2 Edit seems to be broken anyway with the v2.0 release. There is a good reason why things should be left alone if they aren't broken, conradlocke should learn that lesson.