{ "dependencies": { "check_state": "unchecked", "checked_at": null, "missing": [], "model_locations": "待目标机提供", "models": [ "Qwen-Image\\qwen_image_2.1_bf16.safetensors", "qwen3vl_8b_int8_convrot.safetensors", "qwen_image_2.1_int8_convrot.safetensors", "qwen_image_2.1_vae_bf16.safetensors" ], "node_packs": [], "node_types": [ "CLIPLoader", "ComfySwitchNode", "EmptyLatentImage", "ImageCompare", "KSampler", "LoadImage", "MarkdownNote", "Note", "QwenImage21Cache", "SaveImageAdvanced", "TextEncodeQwenImage21", "UNETLoader", "VAEDecode", "VAELoader", "bc1c967a-7f6a-4be9-a372-dad16e4f28e3" ], "source": null }, "draft": true, "errors": [ { "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", "symptom": "包含子图:需原 ComfyUI API 导出及差分核对" }, { "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", "symptom": "待提供目标机节点定义:ImageCompare" }, { "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", "symptom": "待提供目标机节点定义:LoadImage" }, { "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", "symptom": "待提供目标机节点定义:bc1c967a-7f6a-4be9-a372-dad16e4f28e3" }, { "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", "symptom": "待提供目标机节点定义:SaveImageAdvanced" }, { "fix": "按具体节点补材料或提供原 ComfyUI API 导出。", "symptom": "未得到可执行节点" } ], "io": { "inputs": [], "outputs": [] }, "materials": [], "params": [], "purpose": "Qwen Image2.1 背景移除预设通过图像编辑模型处理,含 ImageCompare 与 SaveImageAdvanced。", "snapshot_sha": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b", "source_links": [ { "link": [ 707, 470, 0, 472, 0, "IMAGE" ], "scope": "" }, { "link": [ 708, 461, 0, 472, 1, "IMAGE" ], "scope": "" }, { "link": [ 738, 470, 0, 459, 14, "IMAGE" ], "scope": "" }, { "link": [ 672, 459, 0, 461, 0, "IMAGE" ], "scope": "" }, { "link": { "id": 649, "origin_id": 454, "origin_slot": 0, "target_id": 457, "target_slot": 1, "type": "VAE" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 650, "origin_id": 457, "origin_slot": 0, "target_id": -20, "target_slot": 0, "type": "IMAGE" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 651, "origin_id": 458, "origin_slot": 0, "target_id": 457, "target_slot": 0, "type": "LATENT" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 682, "origin_id": 468, "origin_slot": 0, "target_id": 458, "target_slot": 3, "type": "LATENT" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 684, "origin_id": 456, "origin_slot": 0, "target_id": 468, "target_slot": 1, "type": "LATENT" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 688, "origin_id": 451, "origin_slot": 0, "target_id": 469, "target_slot": 0, "type": "MODEL" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 689, "origin_id": 469, "origin_slot": 0, "target_id": 458, "target_slot": 0, "type": "MODEL" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 722, "origin_id": 474, "origin_slot": 0, "target_id": 458, "target_slot": 1, "type": "CONDITIONING" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 723, "origin_id": 474, "origin_slot": 1, "target_id": 458, "target_slot": 2, "type": "CONDITIONING" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 724, "origin_id": 474, "origin_slot": 2, "target_id": 468, "target_slot": 0, "type": "LATENT" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 658, "origin_id": -10, "origin_slot": 3, "target_id": 458, "target_slot": 6, "type": "FLOAT" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 659, "origin_id": -10, "origin_slot": 4, "target_id": 458, "target_slot": 5, "type": "INT" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 703, "origin_id": -10, "origin_slot": 5, "target_id": 468, "target_slot": 2, "type": "BOOLEAN" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 660, "origin_id": -10, "origin_slot": 6, "target_id": 456, "target_slot": 0, "type": "INT" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 661, "origin_id": -10, "origin_slot": 7, "target_id": 456, "target_slot": 1, "type": "INT" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 662, "origin_id": -10, "origin_slot": 8, "target_id": 458, "target_slot": 7, "type": "COMBO" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 668, "origin_id": -10, "origin_slot": 9, "target_id": 458, "target_slot": 8, "type": "COMBO" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 667, "origin_id": -10, "origin_slot": 10, "target_id": 458, "target_slot": 4, "type": "INT" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 663, "origin_id": -10, "origin_slot": 11, "target_id": 451, "target_slot": 0, "type": "COMBO" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 664, "origin_id": -10, "origin_slot": 12, "target_id": 453, "target_slot": 0, "type": "COMBO" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 665, "origin_id": -10, "origin_slot": 13, "target_id": 454, "target_slot": 0, "type": "COMBO" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 730, "origin_id": -10, "origin_slot": 24, "target_id": 469, "target_slot": 1, "type": "COMBO" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 731, "origin_id": -10, "origin_slot": 25, "target_id": 469, "target_slot": 2, "type": "COMBO" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 721, "origin_id": 453, "origin_slot": 0, "target_id": 474, "target_slot": 0, "type": "CLIP" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 710, "origin_id": -10, "origin_slot": 14, "target_id": 474, "target_slot": 1, "type": "IMAGE" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 720, "origin_id": 454, "origin_slot": 0, "target_id": 474, "target_slot": 2, "type": "VAE" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 726, "origin_id": -10, "origin_slot": 1, "target_id": 474, "target_slot": 3, "type": "STRING" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 727, "origin_id": -10, "origin_slot": 2, "target_id": 474, "target_slot": 4, "type": "STRING" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 725, "origin_id": -10, "origin_slot": 0, "target_id": 474, "target_slot": 5, "type": "INT" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 716, "origin_id": -10, "origin_slot": 20, "target_id": 474, "target_slot": 7, "type": "IMAGE" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 717, "origin_id": -10, "origin_slot": 21, "target_id": 474, "target_slot": 8, "type": "IMAGE" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 718, "origin_id": -10, "origin_slot": 22, "target_id": 474, "target_slot": 9, "type": "IMAGE" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 719, "origin_id": -10, "origin_slot": 23, "target_id": 474, "target_slot": 10, "type": "IMAGE" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 711, "origin_id": -10, "origin_slot": 15, "target_id": 474, "target_slot": 12, "type": "IMAGE" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 712, "origin_id": -10, "origin_slot": 16, "target_id": 474, "target_slot": 13, "type": "IMAGE" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 713, "origin_id": -10, "origin_slot": 17, "target_id": 474, "target_slot": 14, "type": "IMAGE" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 714, "origin_id": -10, "origin_slot": 18, "target_id": 474, "target_slot": 15, "type": "IMAGE" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" }, { "link": { "id": 715, "origin_id": -10, "origin_slot": 19, "target_id": 474, "target_slot": 16, "type": "IMAGE" }, "scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/" } ], "source_nodes": [ { "class_type": "MarkdownNote", "inputs": [], "mode": 0, "node_id": "463", "source_values": [ "## Size\nQwen Image 2.1 has native 2K (2048*2048) support for direct output.\n\n- resolution is a total pixel budget (not width or height). Aspect ratio is preserved.\n- Official default is 1024. The model supports up to 2048.\n- This template starts at 0: no resize beyond a multiple of 32.\n- Output follows image_1. Extra refs can differ in size or aspect.\n- custom_size off: canvas comes from the encode latent (image_1).\n- custom_size on: use ResolutionSelector width/height. Keep it close to the resized image_1 size, or the edit can shift.\n\n## Reference images\n- Up to 10 reference images (image_1 to image_10).\n- Mention them in the prompt as ``, ``, ...\n- image_1 is the edit target. The rest are references.\n\n## Custom settings\nIf you need custom settings, enter or unpack the subgraph to edit it. See the [Subgraph](https://docs.comfy.org/interface/features/subgraph) guide.\n\n## Parameters\n- prompt: edit instruction. Use `` ... ``.\n- negative_prompt: unused while cfg is 1.\n- cfg: keep 1 for the Qwen Image 2.1 official path. Raise it only if you use a negative prompt.\n- steps: Qwen Image 2.1 official pipeline uses about 40-50 with euler. This template starts at 25. More advanced samplers need fewer steps." ], "title": "Note: Usage" }, { "class_type": "ImageCompare", "inputs": [ { "link": 707, "localized_name": "image_a", "name": "image_a", "shape": 7, "type": "IMAGE" }, { "link": 708, "localized_name": "image_b", "name": "image_b", "shape": 7, "type": "IMAGE" }, { "link": null, "localized_name": "compare_view", "name": "compare_view", "type": "IMAGECOMPARE", "widget": { "name": "compare_view" } } ], "mode": 0, "node_id": "472", "source_values": [], "title": null }, { "class_type": "MarkdownNote", "inputs": [], "mode": 0, "node_id": "476", "source_values": [ "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Input Assets\n\n- [angry_broccoli.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/angry_broccoli.png)\n\n\n## Model Links\n\n- [Hugging Face:Comfy-Org/Qwen-Image-2.1](https://huggingface.co/Comfy-Org/Qwen-Image-2.1)\n- [ModelScope:Comfy-Org/Qwen-Image-2.1](https://modelscope.cn/models/Comfy-Org/Qwen-Image-2.1)\n\n**diffusion_models**\n\n- [qwen_image_2.1_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_bf16.safetensors)\n- [qwen_image_2.1_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors)\n\n**text_encoders**\n\n- [qwen3vl_8b_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_bf16.safetensors)\n- [qwen3vl_8b_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors) \n\n**vae**\n\n- [qwen_image_2.1_vae_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 diffusion_models/\n│ │ ├── qwen_image_2.1_bf16.safetensors\n│ │ └── qwen_image_2.1_int8_convrot.safetensors\n│ ├── 📂 text_encoders/\n│ │ ├── qwen3vl_8b_bf16.safetensors\n│ │ └── qwen3vl_8b_int8_convrot.safetensors\n│ └── 📂 vae/\n│ └── qwen_image_2.1_vae_bf16.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n" ], "title": "Note: Model links" }, { "class_type": "LoadImage", "inputs": [ { "link": null, "localized_name": "图像", "name": "image", "type": "COMBO", "widget": { "name": "image" } }, { "link": null, "localized_name": "选择文件上传", "name": "upload", "type": "IMAGEUPLOAD", "widget": { "name": "upload" } } ], "mode": 0, "node_id": "470", "source_values": [ "1785940240400.jpg", "image" ], "title": null }, { "class_type": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3", "inputs": [ { "link": null, "name": "resolution", "type": "INT", "widget": { "name": "resolution" } }, { "label": "positive_prompt", "link": null, "localized_name": "prompt", "name": "prompt", "type": "STRING", "widget": { "name": "prompt" } }, { "link": null, "name": "negative_prompt", "type": "STRING", "widget": { "name": "negative_prompt" } }, { "link": null, "name": "cfg", "type": "FLOAT", "widget": { "name": "cfg" } }, { "label": "steps", "link": null, "name": "steps", "type": "INT", "widget": { "name": "steps" } }, { "label": "custom_size", "link": null, "name": "switch", "type": "BOOLEAN", "widget": { "name": "switch" } }, { "link": null, "localized_name": "width", "name": "width", "type": "INT", "widget": { "name": "width" } }, { "link": null, "localized_name": "height", "name": "height", "type": "INT", "widget": { "name": "height" } }, { "label": "sampler", "link": null, "name": "scheduler", "type": "COMBO", "widget": { "name": "scheduler" } }, { "label": "scheduler", "link": null, "name": "scheduler_1", "type": "COMBO", "widget": { "name": "scheduler_1" } }, { "link": null, "name": "seed", "type": "INT", "widget": { "name": "seed" } }, { "link": null, "name": "unet_name", "type": "COMBO", "widget": { "name": "unet_name" } }, { "link": null, "name": "clip_name", "type": "COMBO", "widget": { "name": "clip_name" } }, { "link": null, "name": "vae_name", "type": "COMBO", "widget": { "name": "vae_name" } }, { "label": "image_1", "link": 738, "name": "images.image_1", "shape": 7, "type": "IMAGE" }, { "label": "image_2", "link": null, "name": "images.image_2", "shape": 7, "type": "IMAGE" }, { "label": "image_3", "link": null, "name": "images.image_3", "shape": 7, "type": "IMAGE" }, { "label": "image_4", "link": null, "name": "images.image_4", "shape": 7, "type": "IMAGE" }, { "label": "image_5", "link": null, "name": "images.image_5_1", "shape": 7, "type": "IMAGE" }, { "label": "image_6", "link": null, "name": "images.image_6", "shape": 7, "type": "IMAGE" }, { "label": "image_7", "link": null, "name": "images.image_7", "shape": 7, "type": "IMAGE" }, { "label": "image_8", "link": null, "name": "images.image_8", "shape": 7, "type": "IMAGE" }, { "label": "image_9", "link": null, "name": "images.image_9", "shape": 7, "type": "IMAGE" }, { "label": "image_10", "link": null, "name": "images.image_10", "shape": 7, "type": "IMAGE" }, { "label": "cache_device", "link": null, "name": "device", "type": "COMBO", "widget": { "name": "device" } }, { "link": null, "name": "dtype", "type": "COMBO", "widget": { "name": "dtype" } } ], "mode": 0, "node_id": "459", "source_values": [ 0, "Remove the background, and output a PNG image", "", 1, 25, false, 1024, 1024, "euler", "simple", 121465604207346, "Qwen-Image\\qwen_image_2.1_bf16.safetensors", "qwen3vl_8b_int8_convrot.safetensors", "qwen_image_2.1_vae_bf16.safetensors", "auto", "default" ], "title": null }, { "class_type": "Note", "inputs": [], "mode": 0, "node_id": "479", "source_values": [ "Qwen Image 2.1 原生支持 2K(2048*2048)直接输出。\n\n默认情况下(custom_size 关闭):输出遵循 image_1 的宽高比,缩放至约 resolution*resolution(默认 1024,32 的倍数)。这并非 image_1 的原始像素尺寸。\n\n将 resolution 设置为 0 以保留原始尺寸(四舍五入至 32)。\n\n开启 custom_size 以使用 “分辨率选择器”的宽/高作为画布。请保持其接近缩放后的 image_1 尺寸,否则编辑可能会发生偏移。\n" ], "title": "Note: size" }, { "class_type": "SaveImageAdvanced", "inputs": [ { "link": 672, "localized_name": "图像", "name": "images", "type": "IMAGE" }, { "link": null, "localized_name": "文件名前缀", "name": "filename_prefix", "type": "STRING", "widget": { "name": "filename_prefix" } }, { "link": null, "localized_name": "格式", "name": "format", "type": "COMFY_DYNAMICCOMBO_V3", "widget": { "name": "format" } }, { "link": null, "localized_name": "位深度", "name": "format.bit_depth", "type": "COMBO", "widget": { "name": "format.bit_depth" } }, { "link": null, "localized_name": "输入色彩空间", "name": "format.input_color_space", "type": "COMBO", "widget": { "name": "format.input_color_space" } } ], "mode": 0, "node_id": "461", "source_values": [ "image/Qwen_image_2.1", "png", "8-bit", "sRGB" ], "title": null }, { "class_type": "Note", "inputs": [], "mode": 0, "node_id": "480", "source_values": [ "setps 步数25-50" ], "title": null }, { "class_type": "UNETLoader", "inputs": [ { "link": 663, "localized_name": "UNet名称", "name": "unet_name", "type": "COMBO", "widget": { "name": "unet_name" } }, { "link": null, "localized_name": "数据类型", "name": "weight_dtype", "type": "COMBO", "widget": { "name": "weight_dtype" } } ], "mode": 0, "node_id": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/451", "source_values": [ "qwen_image_2.1_int8_convrot.safetensors", "default" ], "title": null }, { "class_type": "CLIPLoader", "inputs": [ { "link": 664, "localized_name": "CLIP名称", "name": "clip_name", "type": "COMBO", "widget": { "name": "clip_name" } }, { "link": null, "localized_name": "类型", "name": "type", "type": "COMBO", "widget": { "name": "type" } }, { "link": null, "localized_name": "设备", "name": "device", "shape": 7, "type": "COMBO", "widget": { "name": "device" } } ], "mode": 0, "node_id": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/453", "source_values": [ "qwen3vl_8b_int8_convrot.safetensors", "qwen_image", "default" ], "title": null }, { "class_type": "VAELoader", "inputs": [ { "link": 665, "localized_name": "vae名称", "name": "vae_name", "type": "COMBO", "widget": { "name": "vae_name" } } ], "mode": 0, "node_id": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/454", "source_values": [ "qwen_image_2.1_vae_bf16.safetensors" ], "title": null }, { "class_type": "EmptyLatentImage", "inputs": [ { "link": 660, "localized_name": "宽度", "name": "width", "type": "INT", "widget": { "name": "width" } }, { "link": 661, "localized_name": "高度", "name": "height", "type": "INT", "widget": { "name": "height" } }, { "link": null, "localized_name": "批量大小", "name": "batch_size", "type": "INT", "widget": { "name": "batch_size" } } ], "mode": 0, "node_id": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/456", "source_values": [ 1024, 1024, 1 ], "title": null }, { "class_type": "VAEDecode", "inputs": [ { "link": 651, "localized_name": "Latent", "name": "samples", "type": "LATENT" }, { "link": 649, "localized_name": "vae", "name": "vae", "type": "VAE" } ], "mode": 0, "node_id": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/457", "source_values": [], "title": null }, { "class_type": "ComfySwitchNode", "inputs": [ { "link": 724, "localized_name": "为假时", "name": "on_false", "shape": 7, "type": "LATENT" }, { "link": 684, "localized_name": "为真时", "name": "on_true", "shape": 7, "type": "LATENT" }, { "link": 703, "localized_name": "切换", "name": "switch", "type": "BOOLEAN", "widget": { "name": "switch" } } ], "mode": 0, "node_id": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/468", "source_values": [ false ], "title": null }, { "class_type": "QwenImage21Cache", "inputs": [ { "link": 688, "localized_name": "model", "name": "model", "type": "MODEL" }, { "link": 730, "localized_name": "device", "name": "device", "type": "COMBO", "widget": { "name": "device" } }, { "link": 731, "localized_name": "dtype", "name": "dtype", "type": "COMBO", "widget": { "name": "dtype" } } ], "mode": 0, "node_id": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/469", "source_values": [ "auto", "default" ], "title": null }, { "class_type": "TextEncodeQwenImage21", "inputs": [ { "link": 721, "localized_name": "clip", "name": "clip", "type": "CLIP" }, { "link": 710, "localized_name": "image_1", "name": "images.image_1", "shape": 7, "type": "IMAGE" }, { "link": 720, "localized_name": "vae", "name": "vae", "shape": 7, "type": "VAE" }, { "link": 726, "localized_name": "prompt", "name": "prompt", "type": "STRING", "widget": { "name": "prompt" } }, { "link": 727, "localized_name": "negative_prompt", "name": "negative_prompt", "type": "STRING", "widget": { "name": "negative_prompt" } }, { "link": 725, "localized_name": "resolution", "name": "resolution", "type": "INT", "widget": { "name": "resolution" } }, { "link": null, "localized_name": "image_12", "name": "images.image_12", "shape": 7, "type": "IMAGE" }, { "link": 716, "localized_name": "image_7", "name": "images.image_7", "shape": 7, "type": "IMAGE" }, { "link": 717, "localized_name": "image_8", "name": "images.image_8", "shape": 7, "type": "IMAGE" }, { "link": 718, "localized_name": "image_9", "name": "images.image_9", "shape": 7, "type": "IMAGE" }, { "link": 719, "localized_name": "image_10", "name": "images.image_10", "shape": 7, "type": "IMAGE" }, { "link": null, "localized_name": "image_11", "name": "images.image_11", "shape": 7, "type": "IMAGE" }, { "link": 711, "localized_name": "image_2", "name": "images.image_2", "shape": 7, "type": "IMAGE" }, { "link": 712, "localized_name": "image_3", "name": "images.image_3", "shape": 7, "type": "IMAGE" }, { "link": 713, "localized_name": "image_4", "name": "images.image_4", "shape": 7, "type": "IMAGE" }, { "link": 714, "localized_name": "image_5", "name": "images.image_5", "shape": 7, "type": "IMAGE" }, { "link": 715, "localized_name": "image_6", "name": "images.image_6", "shape": 7, "type": "IMAGE" } ], "mode": 0, "node_id": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/474", "source_values": [ "", "", 1024 ], "title": null }, { "class_type": "KSampler", "inputs": [ { "link": 689, "localized_name": "模型", "name": "model", "type": "MODEL" }, { "link": 722, "localized_name": "正面条件", "name": "positive", "type": "CONDITIONING" }, { "link": 723, "localized_name": "负面条件", "name": "negative", "type": "CONDITIONING" }, { "link": 682, "localized_name": "Latent图像", "name": "latent_image", "type": "LATENT" }, { "link": 667, "localized_name": "种子", "name": "seed", "type": "INT", "widget": { "name": "seed" } }, { "link": 659, "localized_name": "步数", "name": "steps", "type": "INT", "widget": { "name": "steps" } }, { "link": 658, "localized_name": "cfg", "name": "cfg", "type": "FLOAT", "widget": { "name": "cfg" } }, { "link": 662, "localized_name": "采样器名称", "name": "sampler_name", "type": "COMBO", "widget": { "name": "sampler_name" } }, { "link": 668, "localized_name": "调度器", "name": "scheduler", "type": "COMBO", "widget": { "name": "scheduler" } }, { "link": null, "localized_name": "降噪", "name": "denoise", "type": "FLOAT", "widget": { "name": "denoise" } } ], "mode": 0, "node_id": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/458", "source_values": [ 0, "randomize", 25, 1, "euler", "simple", 1 ], "title": null } ], "source_notes": [ { "content": [ "## Size\nQwen Image 2.1 has native 2K (2048*2048) support for direct output.\n\n- resolution is a total pixel budget (not width or height). Aspect ratio is preserved.\n- Official default is 1024. The model supports up to 2048.\n- This template starts at 0: no resize beyond a multiple of 32.\n- Output follows image_1. Extra refs can differ in size or aspect.\n- custom_size off: canvas comes from the encode latent (image_1).\n- custom_size on: use ResolutionSelector width/height. Keep it close to the resized image_1 size, or the edit can shift.\n\n## Reference images\n- Up to 10 reference images (image_1 to image_10).\n- Mention them in the prompt as ``, ``, ...\n- image_1 is the edit target. The rest are references.\n\n## Custom settings\nIf you need custom settings, enter or unpack the subgraph to edit it. See the [Subgraph](https://docs.comfy.org/interface/features/subgraph) guide.\n\n## Parameters\n- prompt: edit instruction. Use `` ... ``.\n- negative_prompt: unused while cfg is 1.\n- cfg: keep 1 for the Qwen Image 2.1 official path. Raise it only if you use a negative prompt.\n- steps: Qwen Image 2.1 official pipeline uses about 40-50 with euler. This template starts at 25. More advanced samplers need fewer steps." ], "node_id": "463" }, { "content": [ "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Input Assets\n\n- [angry_broccoli.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/angry_broccoli.png)\n\n\n## Model Links\n\n- [Hugging Face:Comfy-Org/Qwen-Image-2.1](https://huggingface.co/Comfy-Org/Qwen-Image-2.1)\n- [ModelScope:Comfy-Org/Qwen-Image-2.1](https://modelscope.cn/models/Comfy-Org/Qwen-Image-2.1)\n\n**diffusion_models**\n\n- [qwen_image_2.1_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_bf16.safetensors)\n- [qwen_image_2.1_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors)\n\n**text_encoders**\n\n- [qwen3vl_8b_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_bf16.safetensors)\n- [qwen3vl_8b_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors) \n\n**vae**\n\n- [qwen_image_2.1_vae_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 diffusion_models/\n│ │ ├── qwen_image_2.1_bf16.safetensors\n│ │ └── qwen_image_2.1_int8_convrot.safetensors\n│ ├── 📂 text_encoders/\n│ │ ├── qwen3vl_8b_bf16.safetensors\n│ │ └── qwen3vl_8b_int8_convrot.safetensors\n│ └── 📂 vae/\n│ └── qwen_image_2.1_vae_bf16.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n" ], "node_id": "476" }, { "content": [ "Qwen Image 2.1 原生支持 2K(2048*2048)直接输出。\n\n默认情况下(custom_size 关闭):输出遵循 image_1 的宽高比,缩放至约 resolution*resolution(默认 1024,32 的倍数)。这并非 image_1 的原始像素尺寸。\n\n将 resolution 设置为 0 以保留原始尺寸(四舍五入至 32)。\n\n开启 custom_size 以使用 “分辨率选择器”的宽/高作为画布。请保持其接近缩放后的 image_1 尺寸,否则编辑可能会发生偏移。\n" ], "node_id": "479" }, { "content": [ "setps 步数25-50" ], "node_id": "480" } ], "source_path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_背景移除.json", "source_review": { "complete": false, "evidence": { "link_count": 42, "model_references": [ "Qwen-Image\\qwen_image_2.1_bf16.safetensors", "qwen3vl_8b_int8_convrot.safetensors", "qwen_image_2.1_int8_convrot.safetensors", "qwen_image_2.1_vae_bf16.safetensors" ], "named_value_count": 0, "node_count": 17, "note_node_ids": [ "463", "476", "479", "480" ], "unnamed_widget_node_ids": [ "470", "459", "461", "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/451", "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/453", "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/454", "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/456", "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/468", "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/469", "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/474", "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/458" ] }, "instruction": "检查 TextEncodeQwenImage21 的编辑指令及图像输入;此图不能套用 BiRefNet 的遮罩语义。", "purpose": "Qwen Image2.1 背景移除预设通过图像编辑模型处理,含 ImageCompare 与 SaveImageAdvanced。", "reviewed_named_fields": [], "scope": [ "结构及用途局部审校", "源具名参数/注释/连线/素材模型用途人工语义局部审校" ], "semantic_review": { "batch": "HEL-892-third", "conclusions": [ "470同时送472原图端和459参考槽14,459结果保存461后接472另一侧", "这是编辑模型按提示移除背景,未见独立分割MASK输出链。479解释分辨率0与custom_size,480给步数建议", "先验证保存PNG是否真的有alpha,不能把透明背景文字或png扩展名当透明证据。" ], "evidence_refs": { "nodes": [ { "node_id": "472", "pointer": "/source_nodes/1" }, { "node_id": "470", "pointer": "/source_nodes/3" }, { "node_id": "459", "pointer": "/source_nodes/4" }, { "node_id": "479", "pointer": "/source_nodes/5" }, { "node_id": "461", "pointer": "/source_nodes/6" }, { "node_id": "480", "pointer": "/source_nodes/7" } ], "notes": [ { "node_id": "479", "pointer": "/source_notes/2" }, { "node_id": "480", "pointer": "/source_notes/3" } ], "source_graph": "/source_links(按scope区分主图与子图;连线ID仅在各自scope内有效)" }, "mechanical_inventory": { "link_count": 42, "named_value_count": 0, "note_count": 4, "position_widget_node_count": 11 }, "named_parameter_finding": "未发现可由源文件确认的具名参数", "operation_check": "470同时送472原图端和459参考槽14,459结果保存461后接472另一侧;这是编辑模型按提示移除背景,未见独立分割MASK输出链。479解释分辨率0与custom_size,480给步数建议;先验证保存PNG是否真的有alpha,不能把透明背景文字或png扩展名当透明证据。", "unknowns": [ "位置数组未按位置具名,具名字段单位/合法范围/调整效果未获定义验证", "注释中的效果、性能、版本支持为源作者陈述,未作外部或环境验证", "静音/旁路、虚拟节点、子图、开关与连线覆盖的实际执行结果待原前端API导出", "模型/素材引用只表示源文件出现,实际安装、位置、可用性和输出编码待真实环境核对" ] }, "source_sha": "eb437a2278334949bbec3040f659b95e12257dc2", "unconfirmed": [ "逐参数语义、单位、范围和调整效果未定稿", "UI 位置控件未具名,含子图和旁路的实际执行路径待黄金导出", "模型/节点包位置、素材可用性及实际输出未在目标环境核对" ] }, "source_review_sha": "7fabca7868815653b286a37d794403b7d991c166a1eb3d615cc8652fa70ce108", "status": { "doc_done": false, "exec_verified": false, "imported": true }, "steps": [ "检查 TextEncodeQwenImage21 的编辑指令及图像输入;此图不能套用 BiRefNet 的遮罩语义。", "470同时送472原图端和459参考槽14,459结果保存461后接472另一侧;这是编辑模型按提示移除背景,未见独立分割MASK输出链。479解释分辨率0与custom_size,480给步数建议;先验证保存PNG是否真的有alpha,不能把透明背景文字或png扩展名当透明证据。", "打开源工作流 example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_背景移除.json,逐项核对下列源节点与注释。", "补齐节点定义、模型来源及所需素材;完成输入输出映射核对。", "明确触发真实测试后核对产物;本批未提交生成任务。" ], "title": "Qwen_image2.1_图像编辑_背景移除" }