Skip to main content
The Empty Qwen Image Layered Latent node prepares the blank canvas that the Qwen-Image-Layered model paints onto. Think of it as a stack of clean tracing sheets clipped together in order: the model fills the first sheet with the complete picture, and each sheet after it with one part of that picture. This node decides how big the sheets are and how many of them there are. It does not draw anything itself.

Inputs

Note: The width and height parameters are internally divided by 8 to determine the spatial dimensions of the output latent tensor.

Outputs

Why you get one more image than you asked for

Qwen-Image-Layered does not only take a picture apart. It also repaints the complete picture, on its own sheet, alongside the layers. That is why the stack is always one sheet taller than the number of layers you asked for.
  • The first image is the complete picture, not a layer. It is the same picture you already have, so throw it away when all you want are the layers.
  • Lay all the layers back on top of each other and you get the complete picture again. If they do not add back up to that first image, the separation did not work the way you wanted, so this is a quick way to check the result.
  • Keep the sheets in order. The stack is the only record of which layer sits on top of which. Nothing is written on the sheets themselves to say where they belong, so reordering or dropping images means reordering or losing layers.
  • The layers come out with transparency, so they can be stacked without the lower ones being hidden behind an opaque background.

Usage suggestions

Send the output to the sampler the way you would a normal empty latent, then put LatentCutToBatch with dim set to t before VAE Decode. That is the step that takes the stack apart into separate images, in order, starting with the complete picture. Start with the default of 3 layers. Asking for more means a longer generation and a finer separation, and it is not worth raising until you have seen what the model does with a small number.
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): fe97966663c534dd347aa49a908a8026f2c34716631f1d17be97d74eacc3574e