Qwen Image Layer Decomp for Illustration v1
Workflow example for using Qwen Image layer decomposition tools to help separate layers in a scene.
简介
Qwen Image Layer Decomp for Illustration v1 is a guided layer-separation workflow for turning a flat illustration into editable layers and masks. It routes a loaded image through ImageScaleToMaxDimension to a recommended working size (640 px for speed, 1024 px for detail), then drives a custom Qwen-based decomposition stage that predicts per-element mattes you can save as PNGs. A PrimitiveStringMultiline node provides an optional, high-level text prompt so you can nudge the model toward the objects you want isolated (for example: "character, foreground props, midground buildings, sky").
你需要提供
- 正在读取工作流
在 ComfyUI 中运行。 此工作流无法在本页面运行。你可以在 Comfy Cloud 中打开(已预先加载所需内容),或下载后在自己的 ComfyUI 中使用。
在 Cloud 中试用常见问答
This workflow relies on custom Qwen image layer decomposition nodes. Install the node repo as instructed by its README and place the required model weights in the paths it specifies (typically under ComfyUI/models or a subfolder the node creates). Then restart ComfyUI so the nodes detect the weights.
Reduce Steps (e.g., from 50 to 30–40), lower the working size to 640 px in ImageScaleToMaxDimension, and keep CFG around 3.5–4.0. These changes noticeably cut runtime with modest quality tradeoffs. For the final pass, switch back to 1024 px and a few more steps.
No—the PrimitiveStringMultiline prompt is optional. However, short, concrete descriptions of the elements you want (e.g., "character, cape, sword, sky") often produce more accurate and neatly separated layers than running with defaults.
Use a larger input (1024 px), increase Steps slightly (e.g., +10), and avoid very high CFG values. After decomposition, use the refinement/selection node to clean transitions. If needed, lightly feather or contract the mask in your compositor for final polish.