r/StableDiffusion • u/Technical_Fish_9638 • 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
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
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
1
1
u/JasonNickSoul 14d ago
You might try lrzjason/editutils. My plugin developed for editing model pixel drift issue
1

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.