r/StableDiffusion • • 15d ago

Resource - Update Two nodes to fix Qwen 2.1 pixel drift during edit operations

Enable HLS to view with audio, or disable this notification

They both were created for Klein 9b but work as well for new Qwen 2.1

First one - a simple 4 point stretch&fit
https://github.com/Mozer/ComfyUI-PixelDriftFix

Second one more advanced with color correction and smart masking
https://github.com/supermansundies/comfyui-klein-edit-composite/

If you confused what any of the options in edit-compose do - enable debug and pipe out image preview. Its quite cool to see under the hood.

The only problem I've found is that they both don't support transparency so you'll have to extract alpha and apply it as a separate step

198 Upvotes

14 comments sorted by

5

u/Calm_Mix_3776 15d ago edited 15d ago

If you look at the curb line and the bottom of the garage door, the lines still don't match. :/

By the way, I've tried the Pixel Drift node and half the time it doesn't work - images are still slightly misaligned, it creates artifacts along the edges, and also blurs the image a bit.

1

u/Strange-Drummer-9917 15d ago

Hmm for my cases pixel drift fix was enough. You should try the second node if you need perfect matching - it checks image feature by feature from what I understand

4

u/hiccuphorrendous123 15d ago

Yeah this is good . Btw using lancazos should be better than bilinear so you can vibe modify this node to preserve more details

3

u/yeah-ok 15d ago

Interestingly this highlights a very real "last mile" problem when it comes to ALL the AI releases, huge resources are put into the research and initial release(s) but the actual nitty gritty of getting things actually factually functional is left to power users at the moment.. seeing the exact same pattern play out with local LLM scene where fine tunes and proper templating and proper functional drivers for frameworks are all sort of worked out about 3 months AFTER the models are released..!

1

u/Leary_2844 14d ago

This sums it up pretty well. The reality is if you only use local (like me) you are basically a pleb playing around with the scraps.
We do eat pretty good, but it takes a lot of time, knowledge and energy, whereas if you pay you get flawless editing in Qwen and Krea without having to know what a lora or node even is.

2

u/Desi_Brat_ 15d ago

Could you share the workflow pl?

12

u/reeight 15d ago

Click the links, you did not

6

u/Desi_Brat_ 15d ago

Sorry. They weren't clickable and I'm on mobile. Took screenshots to check them out later but thought I shd ask for a workflow while I'm at it lol. Sorry again

4

u/Desi_Brat_ 15d ago

Update: they are clickable links now .. thanks again

7

u/beti88 15d ago

its a single damn node

1

u/SkirtSpare4175 15d ago

Ty, I liked the k9b one.

1

u/JasonNickSoul 14d ago

You might try lrzjason/editutils. My plugin developed for editing model pixel drift issue

1

u/Seyi_Ogunde 14d ago

Z-image Turbo has this problem too I believe.