Files
aigc-home/docs/hel-892/offline/documents/744330ef77898b89.json
T

2048 lines
72 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"dependencies": {
"check_state": "unchecked",
"checked_at": null,
"missing": [],
"model_locations": "待目标机提供",
"models": [
"Qwen-Image\\qwen3.5_qwen_image_2.1_pe_i2i.int8_convrot.safetensors",
"Qwen-Image\\qwen_image_2.1_bf16.safetensors",
"qwen3vl_8b_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",
"GH_ImageVideoComparer",
"KSampler",
"LoadImage",
"MarkdownNote",
"Note",
"PreviewAny",
"PrimitiveStringMultiline",
"QwenImage21Cache",
"ResolutionSelector",
"SaveImageAdvanced",
"StringConcatenate",
"TextEncodeQwenImage21",
"TextGenerate",
"UNETLoader",
"VAEDecode",
"VAELoader",
"bc1c967a-7f6a-4be9-a372-dad16e4f28e3",
"忽略多组孤海"
],
"source": null
},
"draft": true,
"errors": [
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "包含子图:需原 ComfyUI API 导出及差分核对"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:GH_ImageVideoComparer"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:CLIPLoader"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:PreviewAny"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:PrimitiveStringMultiline"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:StringConcatenate"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:LoadImage"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:TextGenerate"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:bc1c967a-7f6a-4be9-a372-dad16e4f28e3"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:忽略多组孤海"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:ResolutionSelector"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:PrimitiveStringMultiline"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "待提供目标机节点定义:SaveImageAdvanced"
},
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "未得到可执行节点"
}
],
"io": {
"inputs": [],
"outputs": []
},
"materials": [],
"params": [],
"purpose": "Qwen Image2.1 四视图编辑含 StringConcatenate、TextGenerate、图像比较与子图。",
"snapshot_sha": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b",
"source_links": [
{
"link": [
670,
13,
0,
459,
6,
"INT"
],
"scope": ""
},
{
"link": [
671,
13,
1,
459,
7,
"INT"
],
"scope": ""
},
{
"link": [
704,
470,
0,
459,
14,
"IMAGE"
],
"scope": ""
},
{
"link": [
729,
461,
0,
476,
1,
"IMAGE"
],
"scope": ""
},
{
"link": [
730,
470,
0,
476,
0,
"IMAGE"
],
"scope": ""
},
{
"link": [
736,
478,
0,
459,
1,
"STRING"
],
"scope": ""
},
{
"link": [
737,
478,
0,
484,
0,
"STRING"
],
"scope": ""
},
{
"link": [
738,
486,
0,
485,
0,
"STRING"
],
"scope": ""
},
{
"link": [
732,
480,
0,
478,
0,
"CLIP"
],
"scope": ""
},
{
"link": [
734,
470,
0,
478,
1,
"IMAGE"
],
"scope": ""
},
{
"link": [
733,
481,
0,
478,
4,
"STRING"
],
"scope": ""
},
{
"link": [
739,
485,
0,
478,
5,
"STRING"
],
"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": 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": 744,
"origin_id": 490,
"origin_slot": 0,
"target_id": 469,
"target_slot": 0,
"type": "MODEL"
},
"scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/"
},
{
"link": {
"id": 745,
"origin_id": 451,
"origin_slot": 0,
"target_id": 490,
"target_slot": 0,
"type": "MODEL"
},
"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": 719,
"origin_id": -10,
"origin_slot": 23,
"target_id": 474,
"target_slot": 7,
"type": "IMAGE"
},
"scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/"
},
{
"link": {
"id": 711,
"origin_id": -10,
"origin_slot": 15,
"target_id": 474,
"target_slot": 9,
"type": "IMAGE"
},
"scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/"
},
{
"link": {
"id": 712,
"origin_id": -10,
"origin_slot": 16,
"target_id": 474,
"target_slot": 10,
"type": "IMAGE"
},
"scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/"
},
{
"link": {
"id": 713,
"origin_id": -10,
"origin_slot": 17,
"target_id": 474,
"target_slot": 11,
"type": "IMAGE"
},
"scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/"
},
{
"link": {
"id": 714,
"origin_id": -10,
"origin_slot": 18,
"target_id": 474,
"target_slot": 12,
"type": "IMAGE"
},
"scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/"
},
{
"link": {
"id": 715,
"origin_id": -10,
"origin_slot": 19,
"target_id": 474,
"target_slot": 13,
"type": "IMAGE"
},
"scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/"
},
{
"link": {
"id": 716,
"origin_id": -10,
"origin_slot": 20,
"target_id": 474,
"target_slot": 14,
"type": "IMAGE"
},
"scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/"
},
{
"link": {
"id": 717,
"origin_id": -10,
"origin_slot": 21,
"target_id": 474,
"target_slot": 15,
"type": "IMAGE"
},
"scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/"
},
{
"link": {
"id": 718,
"origin_id": -10,
"origin_slot": 22,
"target_id": 474,
"target_slot": 16,
"type": "IMAGE"
},
"scope": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/"
}
],
"source_nodes": [
{
"class_type": "Note",
"inputs": [],
"mode": 0,
"node_id": "477",
"source_values": [
"setps 步数25-50"
],
"title": null
},
{
"class_type": "MarkdownNote",
"inputs": [],
"mode": 0,
"node_id": "463",
"source_values": [
"Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Input Assets\n\n- [portrait_model_denim.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/portrait_model_denim.png)\n- [clothing_light_blue_denim_shirt.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/clothing_light_blue_denim_shirt.png)\n\n\n## Model Links\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\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│ └── 📂 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": "GH_ImageVideoComparer",
"inputs": [
{
"label": "图像 a",
"link": 730,
"localized_name": "media_a",
"name": "media_a",
"shape": 7,
"type": "IMAGE"
},
{
"label": "图像 b",
"link": 729,
"localized_name": "media_b",
"name": "media_b",
"shape": 7,
"type": "IMAGE"
}
],
"mode": 0,
"node_id": "476",
"source_values": [
""
],
"title": null
},
{
"class_type": "CLIPLoader",
"inputs": [
{
"link": null,
"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": "480",
"source_values": [
"Qwen-Image\\qwen3.5_qwen_image_2.1_pe_i2i.int8_convrot.safetensors",
"stable_diffusion",
"default"
],
"title": null
},
{
"class_type": "PreviewAny",
"inputs": [
{
"link": 737,
"localized_name": "源",
"name": "source",
"type": "*"
}
],
"mode": 0,
"node_id": "484",
"source_values": [],
"title": null
},
{
"class_type": "PrimitiveStringMultiline",
"inputs": [
{
"link": null,
"localized_name": "值",
"name": "value",
"type": "STRING",
"widget": {
"name": "value"
}
}
],
"mode": 0,
"node_id": "481",
"source_values": [
"# Edit Prompt Enhancer — General (v2, 精简版)\n\n**FIRST — there are TWO separate language decisions. Do NOT conflate them.**\n\n**(A) Language of the rewritten prompt's DESCRIPTIVE prose — every word OUTSIDE double quotes (the description you write for the diffusion model, NOT the text painted into the image). This decision is final and non-negotiable:**\n- User instruction is in Chinese → write the description in Chinese.\n- User instruction is in English → write the description in English.\n- User instruction is in ANY other language (Japanese, Korean, French, Spanish, Thai, etc.) → write the description in English.\n\n**(B) Language of the TEXT THAT WILL BE RENDERED INTO THE OUTPUT IMAGE — the content INSIDE double quotes. Decide it in this strict priority order:**\n1. If the user's instruction gives the exact text to write, OR names a target language for the text (e.g. \"改成'夏日特惠'\", \"把标题写成英文\", \"add a Japanese title\", \"write the caption in Thai\") → render exactly that text / in exactly that specified language.\n2. Otherwise, if the input image already contains text → render in the DOMINANT language of the image's existing text — even when the instruction is written in a different language.\n3. Otherwise (the image contains no text AND the instruction names no target language) → render in the language of the user's instruction itself — including Japanese, Korean, Thai, Arabic, French, etc. Do NOT force it to English.\nWorked example: image is mostly Thai, instruction is in English asking to add/redesign a title without giving the exact words or a language → the rendered (quoted) text must be **Thai** (the image's dominant language), while the surrounding description (A) is still written in English.\n\nTwo reinforcements on decision (B): all rendered (quoted) text must be **monolingual** — do not mix Chinese and English inside the quotes and do not emit a bilingual pair unless the user explicitly asks for one. And **genre never overrides input language**: a \"spec sheet / cinematic data-document / storyboard / technical parameter\" look is achieved through layout and typography, NOT by switching rendered labels to English — every header, label, and caption stays in the decided language (standardized units and user-given proper nouns may remain Latin).\n\nYou are an expert at clarifying image editing instructions. Given a user's vague or ambiguous edit instruction and the input image(s), rewrite it into a precise, unambiguous, actionable editing directive. An input image is ALWAYS present — this is always an image-editing task, never text-to-image from nothing.\n\n## Core Objective\n\nRewrite the instruction so a downstream image-editing model can execute it without guessing — anchored on what the input image(s) actually show, faithful to the user's intent, inventing nothing.\n\n**How much you build is intent-branched.** When the user wants *this picture changed* (a local object/attribute/background edit, a text or UI edit, a quality or style change, a viewpoint/canvas transform), clarify and constrain: say exactly what changes, and let everything else stand. When the user wants *a new picture of this subject* (placing a subject in a new scene, compositing across images, a photo-shoot or poster or infographic built from a reference), construct actively: design the scene, lighting, composition and layout to a professional standard. Scale the elaboration to what was asked — a plain placement stays restrained, a styled shoot or a publication-grade poster is built out fully.\n\n## The Governing Principle — Attribute Disentanglement at Full Strength\n\n**Edit exactly the attribute(s) the user named, push each to a strong and unmistakable degree, and hold everything else at input fidelity.**\n\nBoth halves matter, and the two failure modes are symmetric:\n\n- **Leakage** — touching what the user did not name (a sharpen that re-grades color, an upscale that reframes, a style change that drifts a face, an outfit swap that drops an accessory, a background change that \"helpfully\" cleans up something unmentioned).\n- **Under-editing** — an output a viewer could mistake for the unedited input, because the requested change was applied faintly.\n\nPreservation locks **content, never edit strength**. Recognizability is bought by naming what stays fixed, not by holding the effect back.\n\n## What to Anchor, What to Decide\n\n**Anchor on the image.** Every spatial, tonal and contextual claim comes from what is visibly there. If you are unsure a detail exists, leave it out — a preserved element described at a higher level of abstraction is always safer than an invented specific.\n\n**Say what stays, without repainting it.** Name the untargeted content by type, position and role rather than describing its appearance, and prefer one blanket preservation clause over walking the frame. A preservation description reads to the model as a generation instruction: the more concretely you describe something you meant to keep, the more likely it drifts. Describe appearance concretely only for what you are actually changing, or when it is the only way to disambiguate between similar objects.\n\n**Identity is the hardest invariant.** A person's facial identity and the personal accessories that make them recognizable; a product's exact design, markings and count; and the input's rendering medium (photograph, anime, illustration, sketch, 3D render, painting) all survive every edit unless the user explicitly targets them. When identity comes from a reference image, point at that image rather than describing features in words — verbal descriptions make the model regenerate and degrade the likeness.\n\n**Resolve ambiguity, then commit.** Turn vague intent, imprecise spatial reference and unparameterized style words into something concrete and observable. Translate abstract quality language into the visual properties it implies. Where the instruction offers alternatives or contradicts itself, pick the most reasonable reading and state it as a decision. Keep the user's own action verb, spatial relations and described state intact, and treat anything they asked to preserve as absolute. Preserve creative or physically impossible intent rather than correcting it.\n\n**Only what was asked.** Do not add operations the user did not request, and do not clean up unmentioned defects, overlays or clutter however prominent they look. When an edit removes, moves or reveals something, say enough about the newly exposed region that the result stays physically coherent.\n\n**Text in the image is literal.** Whenever readable text will appear in the output, commit to the exact characters — every element, quoted, nothing summarized or abbreviated away. Text you cannot commit to should not be added at all. Match the typography and language the input establishes unless the user asks otherwise. When the operation extends the canvas outward, name it as outpainting explicitly.\n\n**Write it as an instruction.** Lead with the operation, not a description of the finished picture, and write from the perspective of someone holding only the input image(s).\n\n## Thinking Process\n\nBefore emitting JSON, reason through: what the image(s) actually contain (including a complete reading of any text present); what the user is asking for and which attributes that names; what must therefore stay fixed; the output size; and finally the composed directive. Close with a check that every visible element is either the target of the edit or covered by what stays fixed, that the requested change is unmistakable, that nothing outside the target was touched, and that every quoted string obeys language decision (B).\n\n## Image Reference Rules\n\nFor Multi-Image Input (N >= 2), the rewritten instruction MUST use `<image1>`, `<image2>`, ... to refer to each input image. Do not use natural language references like \"图1\", \"第一张图\", \"the first image\", or \"image A\". This tagging format is mandatory and non-negotiable. For single-image input (N = 1), do NOT use tags — refer to the image naturally (\"图像\", \"图片中\", \"the image\").\n\nState each image's role explicitly — which one is the canvas whose composition and untargeted content survive, and which supply material to transfer — and say what is taken from each. For scene generation with no canvas (合影/合照 and the like), all images serve as identity sources. Describe every referenced image individually; never compress several into a range or a group to avoid describing them one by one.\n\n## Output Size Determination\n\nYou must determine two output fields: `wh_ratio` and `ratio_follow`. These two fields are mutually exclusive — when one has a value, the other must be empty string \"\".\n\n### Step 1: Check if the user explicitly specified a size or aspect ratio\n\nLook for any of the following in the user's edit instruction:\n- Exact pixel dimensions: \"1920x1080\", \"800×600\", \"1080p\"\n- Aspect ratios: \"16:9\", \"4:3\", \"3:2\", \"9:16\", \"1:1\"\n- Descriptive terms mapped to aspect ratios:\n - \"正方形\" / \"square\" / \"头像\" / \"avatar\" / \"profile picture\" / \"专辑封面\" / \"album cover\" → \"1:1\"\n - \"横版\" / \"landscape\" / \"横屏\" / \"电脑壁纸\" / \"desktop wallpaper\" / \"宽屏\" / \"widescreen\" / \"视频封面\" / \"video thumbnail\" / \"PPT\" / \"幻灯片\" / \"slide\" / \"演示文稿\" → \"16:9\"\n - \"竖版\" / \"portrait\" / \"竖屏\" / \"手机壁纸\" / \"phone wallpaper\" / \"手机屏幕\" / \"Instagram story\" / \"Stories\" / \"Reels\" / \"短视频封面\" → \"9:16\"\n - \"手机全面屏\" / \"全面屏\" / \"iPhone屏幕\" / \"iPhone screen\" → \"18:39\"\n - \"安卓全面屏\" / \"Android screen\" → \"9:20\"\n - \"超宽\" / \"ultrawide\" / \"带鱼屏\" → \"7:3\"\n - \"电影画面\" / \"cinematic\" / \"电影比例\" / \"宽银幕\" / \"cinemascope\" → \"21:9\"\n - \"海报\" / \"poster\" → \"2:3\"\n - \"证件照\" / \"ID photo\" / \"passport photo\" / \"小红书\" / \"Xiaohongshu\" → \"3:4\"\n - \"iPad屏幕\" / \"tablet\" / \"平板屏幕\" → \"4:3\"\n - \"全景图\" / \"panoramic\" / \"panorama\" → \"2:1\"\n - \"名片\" / \"business card\" → \"9:5\"\n - \"A4\" → \"5:7\"(竖向)or \"7:5\"(横向)\n - \"1080p\" / \"720p\" → \"16:9\"\n\n**High-resolution keywords (\"2K\", \"4K\", \"8K\") are quality descriptors, NOT aspect ratio indicators.** When the user mentions \"2K\", \"4K\", or \"8K\", these only express a desire for high image quality. They must NOT be used to infer or determine the aspect ratio. The aspect ratio should still be determined by other explicit cues or by the input image's ratio. For output resolution, always use 2K-level resolution regardless of whether the user says \"2K\", \"4K\", or \"8K\".\n\nIf the user specified a size or ratio:\n→ `wh_ratio` = the corresponding ratio (e.g., \"16:9\", \"1:1\", \"3:2\")\n→ `ratio_follow` = \"\"\n\nIf the user specified exact pixel dimensions (e.g., \"1920x1080\"), convert to the simplest integer ratio (1920:1080 = 16:9).\n\n### Step 2: If the user did NOT specify any size or ratio\n\n#### Single-image editing (1 input image):\nThe output should follow the input image's resolution.\n→ `wh_ratio` = \"\"\n→ `ratio_follow` = \"<image1>\"\n\n**Exception — Single-image scene generation**: If the task generates a new scene from scratch using the input image only as an identity reference (e.g., \"拍一套写真\", \"cosplay成X\", \"穿越到古代\"), do NOT follow the input image's ratio — the output is a new composition, not an edit of the existing image. Instead, choose `wh_ratio` by scene semantics:\n\n| Scene type | wh_ratio |\n|---|---|\n| Portrait / 写真 / half-body | \"2:3\" |\n| Full-body scene / outdoor activity | \"3:4\" |\n| Landscape-oriented scene | \"3:2\" |\n| No clear orientation hint | Follow the input image's ratio (set `ratio_follow` to `<image1>`, `wh_ratio` to \"\") |\n\n#### Multi-image editing (N ≥ 2 input images):\nYou must identify the **canvas image** (the image whose composition and framing the output should follow), then set `ratio_follow` to that image's tag.\n\n| Edit type | Canvas | ratio_follow |\n|---|---|---|\n| Compositing — transfer subject into a scene (\"把A P到B中\", \"放到\", \"加入到\") | The target scene image | \"<imageX>\" (scene image number) |\n| Face/head swap (\"换脸\", \"换头\") | The body image | \"<imageX>\" (body image number) |\n| Clothing swap (\"换衣服\", \"换装\") | The person image | \"<imageX>\" (person image number) |\n| Style transfer (\"画成X的风格\", \"风格迁移\") | The content image (not the style reference) | \"<imageX>\" (content image number) |\n| Background replacement | The foreground subject image | \"<imageX>\" (subject image number) |\n| Local object replacement | The original image being edited | \"<imageX>\" (original image number) |\n| Scene generation — no canvas (\"合影\", \"合照\", \"一起变老\", \"让他们X\") | No canvas — you must choose a ratio | See below |\n\nFor **scene generation tasks with no canvas** (合影, 合照, 一起吃饭, etc.), set `ratio_follow` = \"\" and choose `wh_ratio` by scene semantics:\n\n| Scene type | wh_ratio |\n|---|---|\n| Group photo / 合影 / 合照 | \"3:2\" |\n| Portrait / 写真 | \"2:3\" |\n| Poster / 海报 | \"2:3\" |\n| Desktop wallpaper | \"16:9\" |\n| Phone wallpaper | \"9:16\" |\n| No clear orientation hint | Follow the last input image's ratio (set `ratio_follow` to the last image, `wh_ratio` to \"\") |\n\n#### Outpainting (扩图 / 延伸画面):\n\nFor outpainting tasks where the user did NOT specify a target aspect ratio, do NOT simply follow the input image's ratio — outpainting changes the image's proportions by definition. Instead, infer the new ratio from the extension direction:\n\n- Extend **right only** or **left only**: widen the ratio. E.g., a 1:1 input → \"3:2\"; a 3:4 input → \"1:1\" or \"4:3\".\n- Extend **both left and right**: widen more aggressively. E.g., a 1:1 input → \"16:9\" or \"2:1\".\n- Extend **down only** or **up only**: make the ratio taller. E.g., a 1:1 input → \"2:3\"; a 16:9 input → \"4:3\" or \"1:1\".\n- Extend **both up and down**: make the ratio significantly taller. E.g., a 1:1 input → \"9:16\".\n- Extend **all sides**: keep the original ratio (the image grows uniformly).\n\nAs a general rule, estimate the extended area as roughly 30%–50% additional space in the specified direction(s), then compute the new W:H ratio accordingly. Set `ratio_follow` = \"\" and `wh_ratio` = the inferred ratio.\n\n#### Panoramic generation (全景 / panorama):\n\n| Panoramic type | wh_ratio |\n|---|---|\n| Standard panorama / 全景 | \"2:1\" |\n| Wide panorama / 超宽全景 | \"3:1\" |\n| 360° / VR panorama | \"2:1\" |\n| User specified a different ratio | Use the user's specified ratio |\n\nSet `ratio_follow` = \"\".\n\n#### Three-view drawings and multi-grid generation (三视图 / 多宫格):\n\nFor three-view or multi-panel grid generation where the user did NOT specify an aspect ratio, do NOT use a fixed default. Determine it adaptively from:\n\n1. **Subject shape proportion**: a tall standing person is vertically oriented, a car is horizontally oriented, a round object roughly square.\n2. **Panel layout arrangement**: how the panels are arranged (1×3 horizontal, 3×1 vertical, 2×2) and the shape of each panel.\n3. **Combined ratio**: (single panel W × columns) : (single panel H × rows), choosing the ratio that best fits the content without excessive empty space or cropping.\n\nExamples:\n- Three side-by-side views of a standing person (each panel ~1:3, portrait) → overall ratio = \"1:1\" — do NOT over-widen to \"2:1\" or \"3:1\", which would squash each portrait panel (use \"3:1\" only when each panel is itself landscape, e.g., a car)\n- Three side-by-side views of a car (each panel ~3:2) → overall ratio = \"3:1\" or \"9:2\"\n- 2×2 grid of a square object → overall ratio = \"1:1\"\n- 3×3 grid of square panels → overall ratio = \"1:1\"\n\nSet `ratio_follow` = \"\" and `wh_ratio` = the adaptively determined ratio.\n\n## Output Format\nOutput a valid JSON object with exactly three fields:\n```json\n{\n \"rewritten_prompt\": \"<the rewritten editing instruction>\",\n \"wh_ratio\": \"<aspect ratio like '16:9', or empty string>\",\n \"ratio_follow\": \"<'<image1>' / '<image2>' / ... / ''>\"\n}\n```\n\n`rewritten_prompt` formatting rules:\n- The entire rewritten prompt must be a single continuous paragraph with NO line breaks or newline characters (`\\n`).\n- All text that should appear as visible, readable content in the output image must be enclosed in double quotes (\"\"). Descriptive or structural language that does not appear as rendered text should NOT be quoted.\n- **Never include any resolution or aspect ratio information in `rewritten_prompt`** (e.g., \"2:3\", \"16:9\", \"1920x1080\", \"2K\", \"4K\"). Resolution and aspect ratio are conveyed exclusively through the `wh_ratio` and `ratio_follow` fields.\n- Write it out in full — no ellipsis, no truncation.\n- State requirements affirmatively (\"保持背景与输入图完全一致\") rather than as prohibitions (\"禁止改变背景\"). Standard preservation phrasing \"保持/保留[X]不变\" is fine.\n- Be precise and decisive: no hedging, no unresolved alternatives, no vague degree words left unresolved.\n- **Language-purge self-check (do this last)**: re-scan every double-quoted string — the text that will be RENDERED in the image — and enforce language decision (B). No quoted string may mix Chinese and English, form a bilingual pair, or carry a parenthetical translation gloss unless the user explicitly asked. Standardized units and user-given proper nouns may remain Latin.\n\nRules for each field:\n- `rewritten_prompt`: The rewritten editing instruction. The descriptive prose (outside double quotes) follows language decision (A); the text rendered inside the image (inside double quotes) follows language decision (B). Retain proper nouns and domain-specific terms in their original language, placed in English double quotes.\n- `wh_ratio`: The target aspect ratio as \"W:H\". Set to \"\" when the output resolution should follow an input image instead.\n- `ratio_follow`: Which input image's resolution the output should follow (\"<image1>\", \"<image2>\", …). Set to \"\" when a specific aspect ratio is provided in `wh_ratio`.\n\nMutual exclusivity rule:\n- If `wh_ratio` has a value → `ratio_follow` must be \"\"\n- If `ratio_follow` is \"<imageX>\" → `wh_ratio` must be \"\"\n\nDo not include any text outside the JSON object — no greetings, no explanations, no markdown code fences.\n\nThe user's edit instruction to rewrite is:\n"
],
"title": "I2I系统提示词模板"
},
{
"class_type": "StringConcatenate",
"inputs": [
{
"link": 738,
"localized_name": "字符串A",
"name": "string_a",
"type": "STRING",
"widget": {
"name": "string_a"
}
},
{
"link": null,
"localized_name": "字符串B",
"name": "string_b",
"type": "STRING",
"widget": {
"name": "string_b"
}
},
{
"label": "分隔符",
"link": null,
"localized_name": "分隔符",
"name": "delimiter",
"type": "STRING",
"widget": {
"name": "delimiter"
}
}
],
"mode": 0,
"node_id": "485",
"source_values": [
"photorealistic style",
"角色参考图,左右分割布局:左侧三分之一区域为胸部以上特写正面肖像(肩部以上构图,极高的面部细节清晰度,柔和自然的表情,明亮的眼睛直视镜头,真实的皮肤纹理,毛孔可见且带有细微瑕疵,精致妆容);右侧三分之二区域为横向排列的三幅全身视图,从左至右依次为:全身正面站姿(手臂自然下垂,双脚并拢,完整的正面服装与身体比例),全身侧面视图(重心略微偏移,腰臀曲线与轮廓清晰可见,完整的侧面服装与鞋履),全身背面视图(完整的背面领口,背面的发型,背部服装细节)。正面与侧面视图头部使用椭圆遮罩遮挡不显示脸部。所有面板均采用一致的正面偏上方光照,柔和的漫射光质感,浅暖灰色背景色F0EDE8,主体与背景柔和融合,边缘过渡自然,无硬边,无白色光晕,无漏光,所有面板中的角色设计、服装、发型与配饰完全一致,边缘干净,比例准确,材质纹理从各角度均清晰可见,图像任何位置绝对不可出现数字、文字、标签、帧计数器、角标或注释。",
"/n"
],
"title": "四视图格式限定"
},
{
"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": [
"1.png",
"image"
],
"title": null
},
{
"class_type": "TextGenerate",
"inputs": [
{
"link": 732,
"localized_name": "clip",
"name": "clip",
"type": "CLIP"
},
{
"link": 734,
"localized_name": "图像",
"name": "image",
"shape": 7,
"type": "IMAGE"
},
{
"link": null,
"localized_name": "视频",
"name": "video",
"shape": 7,
"type": "IMAGE"
},
{
"link": null,
"localized_name": "音频",
"name": "audio",
"shape": 7,
"type": "AUDIO"
},
{
"link": 733,
"localized_name": "system_prompt",
"name": "system_prompt",
"shape": 7,
"type": "STRING"
},
{
"link": 739,
"localized_name": "提示词",
"name": "prompt",
"type": "STRING",
"widget": {
"name": "prompt"
}
},
{
"link": null,
"localized_name": "最大长度",
"name": "max_length",
"type": "INT",
"widget": {
"name": "max_length"
}
},
{
"link": null,
"localized_name": "采样模式",
"name": "sampling_mode",
"type": "COMFY_DYNAMICCOMBO_V3",
"widget": {
"name": "sampling_mode"
}
},
{
"link": null,
"localized_name": "温度",
"name": "sampling_mode.temperature",
"type": "FLOAT",
"widget": {
"name": "sampling_mode.temperature"
}
},
{
"link": null,
"localized_name": "Top K",
"name": "sampling_mode.top_k",
"type": "INT",
"widget": {
"name": "sampling_mode.top_k"
}
},
{
"link": null,
"localized_name": "Top P",
"name": "sampling_mode.top_p",
"type": "FLOAT",
"widget": {
"name": "sampling_mode.top_p"
}
},
{
"link": null,
"localized_name": "最小概率",
"name": "sampling_mode.min_p",
"type": "FLOAT",
"widget": {
"name": "sampling_mode.min_p"
}
},
{
"link": null,
"localized_name": "重复惩罚",
"name": "sampling_mode.repetition_penalty",
"type": "FLOAT",
"widget": {
"name": "sampling_mode.repetition_penalty"
}
},
{
"link": null,
"localized_name": "种子",
"name": "sampling_mode.seed",
"type": "INT",
"widget": {
"name": "sampling_mode.seed"
}
},
{
"link": null,
"localized_name": "presence_penalty",
"name": "sampling_mode.presence_penalty",
"shape": 7,
"type": "FLOAT",
"widget": {
"name": "sampling_mode.presence_penalty"
}
},
{
"link": null,
"localized_name": "思考模式",
"name": "thinking",
"shape": 7,
"type": "BOOLEAN",
"widget": {
"name": "thinking"
}
},
{
"link": null,
"localized_name": "use_default_template",
"name": "use_default_template",
"shape": 7,
"type": "BOOLEAN",
"widget": {
"name": "use_default_template"
}
},
{
"link": null,
"localized_name": "mtp",
"name": "mtp",
"shape": 7,
"type": "COMBO",
"widget": {
"name": "mtp"
}
}
],
"mode": 0,
"node_id": "478",
"source_values": [
"",
4096,
"on",
0.7,
64,
0.95,
0.05,
1.05,
0,
0,
false,
true,
"auto"
],
"title": null
},
{
"class_type": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3",
"inputs": [
{
"link": null,
"name": "resolution",
"type": "INT",
"widget": {
"name": "resolution"
}
},
{
"label": "positive_prompt",
"link": 736,
"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": 670,
"localized_name": "width",
"name": "width",
"type": "INT",
"widget": {
"name": "width"
}
},
{
"link": 671,
"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": 704,
"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"
}
],
"mode": 0,
"node_id": "459",
"source_values": [
0,
"保持<image1>中的角色和姿势不变,将<image2>中的这件浅蓝色牛仔衬衫穿在角色身上,保留原始的面部特征、头发、体型和姿势,牛仔衬衫自然地贴合身体,真实的牛仔面料纹理,自然的衣服褶皱,保持原始背景和原始光影,高级时尚杂志摄影,细节清晰。",
"",
1,
25,
true,
1024,
1024,
"euler",
"simple",
473747024882653,
"Qwen-Image\\qwen_image_2.1_bf16.safetensors",
"qwen3vl_8b_int8_convrot.safetensors",
"qwen_image_2.1_vae_bf16.safetensors"
],
"title": null
},
{
"class_type": "忽略多组孤海",
"inputs": [],
"mode": 0,
"node_id": "491",
"source_values": [
""
],
"title": null
},
{
"class_type": "ResolutionSelector",
"inputs": [
{
"link": null,
"localized_name": "宽高比",
"name": "aspect_ratio",
"type": "COMBO",
"widget": {
"name": "aspect_ratio"
}
},
{
"link": null,
"localized_name": "百万像素",
"name": "megapixels",
"type": "FLOAT",
"widget": {
"name": "megapixels"
}
},
{
"link": null,
"localized_name": "倍数",
"name": "multiple",
"type": "INT",
"widget": {
"name": "multiple"
}
},
{
"link": null,
"localized_name": "preview",
"name": "preview",
"shape": 7,
"type": "RESOLUTION_PREVIEW",
"widget": {
"name": "preview"
}
}
],
"mode": 0,
"node_id": "13",
"source_values": [
"4:3 (Standard)",
1.5,
32
],
"title": null
},
{
"class_type": "Note",
"inputs": [],
"mode": 0,
"node_id": "464",
"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": "PrimitiveStringMultiline",
"inputs": [
{
"link": null,
"localized_name": "值",
"name": "value",
"type": "STRING",
"widget": {
"name": "value"
}
}
],
"mode": 0,
"node_id": "486",
"source_values": [
"保持图1人物一致性,生成人物的四视图。"
],
"title": "提示词(角色基本描述)"
},
{
"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": "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_bf16.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": "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
},
{
"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": 744,
"localized_name": "model",
"name": "model",
"type": "MODEL"
},
{
"link": null,
"localized_name": "device",
"name": "device",
"type": "COMBO",
"widget": {
"name": "device"
}
},
{
"link": null,
"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": 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"
},
{
"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"
}
],
"mode": 0,
"node_id": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/474",
"source_values": [
"",
"",
1024
],
"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": "QwenImage21Cache",
"inputs": [
{
"link": 745,
"localized_name": "model",
"name": "model",
"type": "MODEL"
},
{
"link": null,
"localized_name": "device",
"name": "device",
"type": "COMBO",
"widget": {
"name": "device"
}
},
{
"link": null,
"localized_name": "dtype",
"name": "dtype",
"type": "COMBO",
"widget": {
"name": "dtype"
}
}
],
"mode": 0,
"node_id": "bc1c967a-7f6a-4be9-a372-dad16e4f28e3/490",
"source_values": [
"auto",
"default"
],
"title": null
}
],
"source_notes": [
{
"content": [
"setps 步数25-50"
],
"node_id": "477"
},
{
"content": [
"Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Input Assets\n\n- [portrait_model_denim.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/portrait_model_denim.png)\n- [clothing_light_blue_denim_shirt.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/clothing_light_blue_denim_shirt.png)\n\n\n## Model Links\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\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│ └── 📂 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": "463"
},
{
"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": "464"
}
],
"source_path": "example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色表四视图.json",
"source_review": {
"complete": false,
"evidence": {
"link_count": 50,
"model_references": [
"Qwen-Image\\qwen3.5_qwen_image_2.1_pe_i2i.int8_convrot.safetensors",
"Qwen-Image\\qwen_image_2.1_bf16.safetensors",
"qwen3vl_8b_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": 25,
"note_node_ids": [
"477",
"463",
"464"
],
"unnamed_widget_node_ids": [
"476",
"480",
"481",
"485",
"470",
"478",
"459",
"491",
"13",
"486",
"461",
"bc1c967a-7f6a-4be9-a372-dad16e4f28e3/453",
"bc1c967a-7f6a-4be9-a372-dad16e4f28e3/454",
"bc1c967a-7f6a-4be9-a372-dad16e4f28e3/456",
"bc1c967a-7f6a-4be9-a372-dad16e4f28e3/458",
"bc1c967a-7f6a-4be9-a372-dad16e4f28e3/468",
"bc1c967a-7f6a-4be9-a372-dad16e4f28e3/469",
"bc1c967a-7f6a-4be9-a372-dad16e4f28e3/474",
"bc1c967a-7f6a-4be9-a372-dad16e4f28e3/451",
"bc1c967a-7f6a-4be9-a372-dad16e4f28e3/490"
]
},
"instruction": "核对四视图指令的拼接顺序和参考图流向;图像排版与角色一致性尚未实测。",
"purpose": "Qwen Image2.1 四视图编辑含 StringConcatenate、TextGenerate、图像比较与子图。",
"reviewed_named_fields": [],
"scope": [
"结构及用途局部审校",
"源具名参数/注释/连线/素材模型用途人工语义局部审校"
],
"semantic_review": {
"batch": "HEL-892-third",
"conclusions": [
"470图像经704进459槽14,461与470分送476两侧",
"485拼接四视图布局文本,486另给人物一致性要求,478为提示词增强。477的25-50和464尺寸文字都只属注释,先核对实际采用哪路文本及459旧服装提示是否被连线覆盖,避免把缓存默认当生效输入。"
],
"evidence_refs": {
"nodes": [
{
"node_id": "477",
"pointer": "/source_nodes/0"
},
{
"node_id": "476",
"pointer": "/source_nodes/2"
},
{
"node_id": "485",
"pointer": "/source_nodes/6"
},
{
"node_id": "470",
"pointer": "/source_nodes/7"
},
{
"node_id": "478",
"pointer": "/source_nodes/8"
},
{
"node_id": "459",
"pointer": "/source_nodes/9"
},
{
"node_id": "464",
"pointer": "/source_nodes/12"
},
{
"node_id": "486",
"pointer": "/source_nodes/13"
},
{
"node_id": "461",
"pointer": "/source_nodes/14"
}
],
"notes": [
{
"node_id": "477",
"pointer": "/source_notes/0"
},
{
"node_id": "464",
"pointer": "/source_notes/2"
}
],
"source_graph": "/source_links(按scope区分主图与子图;连线ID仅在各自scope内有效)"
},
"mechanical_inventory": {
"link_count": 50,
"named_value_count": 0,
"note_count": 3,
"position_widget_node_count": 20
},
"named_parameter_finding": "未发现可由源文件确认的具名参数",
"operation_check": "470图像经704进459槽14,461与470分送476两侧;485拼接四视图布局文本,486另给人物一致性要求,478为提示词增强。477的25-50和464尺寸文字都只属注释,先核对实际采用哪路文本及459旧服装提示是否被连线覆盖,避免把缓存默认当生效输入。",
"unknowns": [
"位置数组未按位置具名,具名字段单位/合法范围/调整效果未获定义验证",
"注释中的效果、性能、版本支持为源作者陈述,未作外部或环境验证",
"静音/旁路、虚拟节点、子图、开关与连线覆盖的实际执行结果待原前端API导出",
"模型/素材引用只表示源文件出现,实际安装、位置、可用性和输出编码待真实环境核对"
]
},
"source_sha": "89d55d2efa1f2042fb3595964a4909fd6ef94724",
"unconfirmed": [
"逐参数语义、单位、范围和调整效果未定稿",
"UI 位置控件未具名,含子图和旁路的实际执行路径待黄金导出",
"模型/节点包位置、素材可用性及实际输出未在目标环境核对"
]
},
"source_review_sha": "ea6580b5f9b7475cb25e1233941cdc2decb05be8cf1cd1148d4a1eec15be61a6",
"status": {
"doc_done": false,
"exec_verified": false,
"imported": true
},
"steps": [
"核对四视图指令的拼接顺序和参考图流向;图像排版与角色一致性尚未实测。",
"470图像经704进459槽14,461与470分送476两侧;485拼接四视图布局文本,486另给人物一致性要求,478为提示词增强。477的25-50和464尺寸文字都只属注释,先核对实际采用哪路文本及459旧服装提示是否被连线覆盖,避免把缓存默认当生效输入。",
"打开源工作流 example_ComfyUI_workflows/3-图像生成/Qwen-Image-2.1/Qwen_image2.1_图像编辑_角色表四视图.json,逐项核对下列源节点与注释。",
"补齐节点定义、模型来源及所需素材;完成输入输出映射核对。",
"明确触发真实测试后核对产物;本批未提交生成任务。"
],
"title": "Qwen_image2.1_图像编辑_角色表四视图"
}