What is Qwen-Image-Layered?
It's a diffusion model that splits an input image into any number of layers.
Image editing is all the rage lately, but parts unrelated to your instruction sometimes change too. So why not split the image into layers, the way designers always have, and edit only the layer you want? That's the idea behind this task.
It's also notable as the first general-purpose method that handles transparent (RGBA) images. Earlier methods needed post-processing, or special handling just at decode time, but this one takes the more straightforward approach of simply treating them as RGBA images.
Model Download
-
diffusion_models
- qwen_image_layered_fp8mixed.safetensors (20.5 GB)
-
text_encoders
- qwen_2.5_vl_7b_fp8_scaled.safetensors (9.38 GB)
-
vae
- qwen_image_layered_vae.safetensors (254 MB)
-
gguf (Optional)
📂ComfyUI/
└── 📂models/
├── 📂diffusion_models/
│ └── qwen_image_layered_fp8mixed.safetensors
├── 📂text_encoders/
│ └── qwen_2.5_vl_7b_fp8_scaled.safetensors
├── 📂unet/
│ └── Qwen_Image_Layered-XXXX.gguf ← Only when using gguf
└── 📂vae/
└── qwen_image_layered_vae.safetensors
workflow

-
Resize the input image
- You can go up to 1024px, but it tends to get heavy as you add layers, so it's set to 0.5M pixels here.
-
🟩
Empty Qwen Image Layered Latentlayers: how many layers to split into- Raising this also costs more memory and time.
-
🟫
LatentCutToBatch- It's probably hard to tell what this is doing, but just think of it as "reshaping" the data for implementation reasons.
- As the name says, this model outputs multiple images as "layers", but the current
VAE Decodedoesn't really understand the idea of layers, so this node turns them into a plain batch of N images.
-
🟦 Composite the images back together (Optional)
- If you split into 2 layers, you get 3 RGBA images in total (the original image + the decomposed layers).
-
Stacking the 2nd and later images one after another with
ImageCompositeMaskedgets you back to the original single image.- However, this node only handles RGB images, so you need to convert each one into an RGB image + mask.
- cf. Mask and Alpha Channel
-
It's a hassle, I know, but node-based UIs and layer systems just don't get along, and not only in ComfyUI 😥