Nodes/ComfyUI-JakeUpgrade/Empty Latent Color JK๐Ÿ‰
ComfyUI Node

Empty Latent Color JK๐Ÿ‰

Empty Latent Color JK

By jakechaiยทCreated 2 years agoยทUpdated 3 months agoยท 146
Empty Latent Color JK๐Ÿ‰
    • SD15
    • SDXL
    • SD3
    • FLUX

    Here's an honest one: Empty Latent Color JK is deprecated, and you should probably not build anything new on it. But if you've loaded an older JakeUpgrade workflow and found a node with no inputs that spits out four integers named SD15, SDXL, SD3, and FLUX, this is what it is - a lookup table for the "empty latent color" of each model family.

    The concept is older than ComfyUI. A VAE encodes an image into latent space, but a flat, neutral color does not encode to a zero latent - it lands on some non-zero point that bakes a faint tint into everything decoded from it. People used this trick to seed img2img and inpainting from a colored base instead of noise, or to compute the right "empty" color to subtract. The four values this node returns are those per-architecture constants, packed as RGB integers:

    • SD15 - 8548961 (โ‰ˆ RGB 130,114,97, a warm gray)
    • SDXL - 9077127 (โ‰ˆ RGB 138,129,135, a gray-violet)
    • SD3 - 9214099 (โ‰ˆ RGB 140,152,147, a gray-green)
    • FLUX - 8618319 (โ‰ˆ RGB 131,129,79, an olive)

    Different numbers because different VAEs map their "neutral" latent point to different pixels. The outputs are plain INTs, so you'd historically feed one into a node that turns an RGB int into an image or into latent arithmetic.

    Why it's deprecated: the workflows that needed this - the old noise-free/color-seeded starts - fell out of practice, and Jake marked it deprecated in the v2.x cleanup. Modern pipelines start from proper noise or use dedicated latent manipulation nodes; hard-coding a color for a model you might swap later is exactly the kind of brittle magic this node represents. If you're curious, keep it; if you're building, skip it.

    Install (if you must): it's in ComfyUI-JakeUpgrade:

    cd ComfyUI/custom_nodes
    git clone https://github.com/jakechai/ComfyUI-JakeUpgrade
    cd ComfyUI-JakeUpgrade
    pip install -r requirements.txt
    

    Or ComfyUI Manager โ†’ "JakeUpgrade". Windows portable: install.bat or ../../../python_embeded/python.exe -s -m pip install -r requirements.txt. Restart.

    Gotchas: the deprecated-flag dance applies to the extreme here. If a workflow references this node and it's missing from your node list, it's not one of the config-hidden deprecated set - this one still loads - so the more likely cause is you trimmed modules in config.ini (keep latent enabled). And the README's standing advice: disable ComfyUI MultiGPU on current ComfyUI to avoid CUDA errors. If a shared workflow is old enough to use this node, it may also expect the legacy frontend versions Jake maintains - check the pack's README notes on frontend versions before chasing bugs.

    Category๐Ÿ‰ JK/๐Ÿฆฅ Latent

    Inputs (0)

    No inputs

    Outputs (4)

    NameTypeDescription
    SD15INTโ€”
    SDXLINTโ€”
    SD3INTโ€”
    FLUXINTโ€”