Files
chat/backend/config/comfyui_workflow.json
2026-07-22 10:18:59 +08:00

266 lines
5.0 KiB
JSON
Raw Permalink 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.
{
"29": {
"inputs": {
"filename_prefix": "ZImage_T2I_",
"images": [
"30:8",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "保存图片到 output"
}
},
"49": {
"inputs": {
"aspect_ratio": "1:1 (Square)",
"megapixels": 1,
"multiple": 8
},
"class_type": "ResolutionSelector",
"_meta": {
"title": "分辨率选择器"
}
},
"30:10": {
"inputs": {
"unet_name": "z_image_turbo_bf16.safetensors",
"weight_dtype": "default",
"device": "cuda:0"
},
"class_type": "UNETLoaderMultiGPU",
"_meta": {
"title": "UNet · cuda:0"
}
},
"30:11": {
"inputs": {
"clip_name": "qwen_3_4b.safetensors",
"type": "lumina2",
"device": "cuda:1"
},
"class_type": "CLIPLoaderMultiGPU",
"_meta": {
"title": "CLIP · cuda:1"
}
},
"30:12": {
"inputs": {
"vae_name": "ae.safetensors",
"device": "cuda:1"
},
"class_type": "VAELoaderMultiGPU",
"_meta": {
"title": "VAE · cuda:1"
}
},
"30:14": {
"inputs": {
"shift": 5,
"model": [
"30:10",
0
]
},
"class_type": "ModelSamplingAuraFlow",
"_meta": {
"title": "采样算法(AuraFlow"
}
},
"30:6": {
"inputs": {
"text": [
"30:20",
0
],
"clip": [
"30:11",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码"
}
},
"30:13": {
"inputs": {
"conditioning": [
"30:6",
0
]
},
"class_type": "ConditioningZeroOut",
"_meta": {
"title": "条件零化"
}
},
"30:5": {
"inputs": {
"width": [
"49",
0
],
"height": [
"49",
1
],
"batch_size": 1
},
"class_type": "EmptySD3LatentImage",
"_meta": {
"title": "空Latent图像(SD3"
}
},
"30:3": {
"inputs": {
"seed": 133701729959619,
"steps": 8,
"cfg": 1,
"sampler_name": "res_multistep",
"scheduler": "simple",
"denoise": 1,
"model": [
"30:14",
0
],
"positive": [
"30:6",
0
],
"negative": [
"30:13",
0
],
"latent_image": [
"30:5",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "K采样器"
}
},
"30:8": {
"inputs": {
"samples": [
"30:3",
0
],
"vae": [
"30:12",
0
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE解码"
}
},
"30:18": {
"inputs": {
"value": "You are an expert prompt engineer for text-to-image models.\nExpand the user's short request (often Chinese) into ONE detailed English visual prompt.\nRules:\n- Preserve the user intent exactly (subject, action, brand/product names, style).\n- Add concrete visual details: composition, lighting, camera angle, materials, colors, atmosphere.\n- Keep it as a single paragraph of natural English tags/phrases suitable for image generation.\n- Do NOT ask questions. Do NOT output Chinese. Do NOT wrap in quotes or markdown.\n- If the request is an ad/poster, emphasize product focus, clean layout, and commercial photography quality."
},
"class_type": "PrimitiveStringMultiline",
"_meta": {
"title": "System Prompt"
}
},
"30:19": {
"inputs": {
"value": ""
},
"class_type": "PrimitiveStringMultiline",
"_meta": {
"title": "User Prompt"
}
},
"30:17": {
"inputs": {
"string_a": [
"30:18",
0
],
"string_b": [
"30:19",
0
],
"delimiter": ""
},
"class_type": "StringConcatenate",
"_meta": {
"title": "连接"
}
},
"30:16": {
"inputs": {
"prompt": [
"30:17",
0
],
"max_length": 128,
"sampling_mode": "on",
"sampling_mode.temperature": 0.25,
"sampling_mode.top_k": 32,
"sampling_mode.top_p": 0.88,
"sampling_mode.min_p": 0.02,
"sampling_mode.repetition_penalty": 1.08,
"sampling_mode.seed": 0,
"sampling_mode.presence_penalty": 0,
"thinking": false,
"use_default_template": true,
"clip": [
"30:11",
0
]
},
"class_type": "TextGenerate",
"_meta": {
"title": "TextGenerate"
}
},
"30:24": {
"inputs": {
"value": true
},
"class_type": "PrimitiveBoolean",
"_meta": {
"title": "Refine Prompt?"
}
},
"30:21": {
"inputs": {
"switch": [
"30:24",
0
],
"on_false": [
"30:19",
0
],
"on_true": [
"30:16",
0
]
},
"class_type": "ComfySwitchNode",
"_meta": {
"title": "切换"
}
},
"30:20": {
"inputs": {
"source": [
"30:21",
0
]
},
"class_type": "PreviewAny",
"_meta": {
"title": "预览任意"
}
}
}