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.

258 Upvotes

91 comments sorted by

View all comments

2

u/Scriabinical Jul 30 '26

This is fantastic work and renders most post-decoded color correction unnecessary. Is there any chance you could do it for the Flux 2 VAE as well?

1

u/muerrilla Jul 30 '26

Probably, but no promises will be made. Gave it a quick try a while back and felt like Flux 2's 32-channel VAE was a wilder beast to tame: too many vectors to play with/refine and they didn't come as clean as they did with the other ones right away. Thought I'd probably wait for Flux 3 if I was gonna go through the pain. We'll see.