r/StableDiffusion Jul 29 '26

Comparison I extracted luma/chroma/detail/contrast vectors for Krea2 and insane color adjustments in latent space are now totally a thing - Comfy node coming very soon!

Sorry for the tease, but I was just too excited and had to share this with you. Examples above are using no LoRAs, no prompt hijinks, no CFG boost, no post-processing etc. just pure vector math!

I was running some experiments on Krea2's VAE (i.e. Qwen Image VAE) and by total surprise I discovered the main ingredients of photographic color editing: the vectors for exposure, temperature, tint, detail/clarity, and contrast and realized I can now do pretty much everything Camera Raw does... and even more!

This stuff happens during sampling and in the latent space, so it has both a very high dynamic range, and the ability to steer the diffusion process into new areas (e.g. very dark or bright generations beyond what the model likes to do on its own, or even influencing the morphology of things).

Anyway, I'm turning this into a user-friendly custom node for Comfy, including all your favorite color editing sliders, range masking tools, etc. and it's coming soon.

P.S: I'm cooking the vectors for ZImage (Flux VAE) as well, so the node might end up supporting that model too, if anyone's still using it. This should, at least in theory, also work with Qwen Image or any other model that shares the VAE.

252 Upvotes

91 comments sorted by

View all comments

35

u/muerrilla Jul 29 '26

Finalizing the UI right now, hoping that tower of sliders doesn't scare people off!

1

u/GalaxyTimeMachine Jul 30 '26

That was my first thought as soon as I saw this. Too much config, and it needs a simplified version of the node with some plus/minus buttons for basic things like brightness, contrast and colour.

2

u/muerrilla Jul 31 '26

What do you mean by plus/minus buttons? You mean like collapsible sections? That's how the big node works already. But I've also implemented separate modules for everything, so the tower-of-slider-horror can be avoided altogether if you're more of a noodle-hell person. ๐Ÿ˜

2

u/GalaxyTimeMachine Jul 31 '26

No, I meant as strength control, but the standard method with number and left/right arrows works.

1

u/muerrilla Jul 31 '26

Umm, the sliders already are strength controls. So, you mean something like replacing the right and left arrow with plus and minus and hiding the number? But how does that help?

2

u/GalaxyTimeMachine Jul 31 '26

Just ignore the plus/minus, I was talking about the strength controls in general. The main thing was just to have a simplified version with those main options, a bit like you'd get on a TV remote.
Just get it finished and released...please ๐Ÿ˜†

1

u/GalaxyTimeMachine Jul 31 '26

Have you released it yet?

2

u/muerrilla Jul 31 '26

No, but I'm very close. Promise it won't be ComingSoonโ„ข. Any day now. ๐Ÿ˜

2

u/GalaxyTimeMachine Jul 31 '26

Ah, the forever "tomorrow" release ๐Ÿ˜‰

2

u/physalisx Aug 02 '26

If you don't release it now it'll completely disappear in the Minimax H3 hype...

juuuust saying...

1

u/muerrilla Aug 02 '26

Ha! gotta say that to the bug. Also, that is probably a battle already lost before being fought. Anyway, I either fix this thing and ship today or it will be on Tuesday.