Files
aigc-home/docs/hel-892/offline/documents/94b034167a4e2483.json
T

1310 lines
36 KiB
JSON

{
"dependencies": {
"check_state": "unchecked",
"checked_at": null,
"missing": [],
"model_locations": "待目标机提供",
"models": [
"Krea-2-Turbo.safetensors",
"krea2\\Krea2-realism-V2.safetensors",
"qwen3vl_4b_fp8_scaled.safetensors",
"qwen_image_vae.safetensors"
],
"node_packs": [],
"node_types": [
"CLIPLoader",
"CLIPTextEncode",
"ComfySwitchNode",
"ConditioningZeroOut",
"EmptyLatentImage",
"KSampler",
"LoraLoaderModelOnly",
"PreviewAny",
"PrimitiveBoolean",
"PrimitiveStringMultiline",
"SaveImage",
"StringConcatenate",
"TextGenerate",
"UNETLoader",
"VAEDecode",
"VAEEncode",
"VAELoader"
],
"source": null
},
"draft": true,
"errors": [
{
"fix": "按具体节点补材料或提供原 ComfyUI API 导出。",
"symptom": "目标机节点和模型尚未核对"
}
],
"io": {
"inputs": [
{
"defaultValue": " ultra realistic landscape. A sprawling, vertical city of dark metal and concrete. Sleek towers are contrasted with grimy, overcrowded lower levels. Perpetual twilight is punctuated by neon propaganda and searchlights.",
"kind": "textarea",
"label": "Prompt",
"nodeId": "156",
"required": true,
"role": "prompt"
}
],
"outputs": [
{
"kind": "image",
"label": "Image Output",
"nodeId": "29",
"role": "image"
}
]
},
"materials": [],
"params": [
{
"advanced": false,
"default": "krea2/Assets",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "filename_prefix",
"max": null,
"min": null,
"name": "filename_prefix",
"node_id": "29",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": 1280,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "width",
"max": null,
"min": null,
"name": "width",
"node_id": "145",
"options": null,
"range_source": "unverified",
"type": "int",
"unit": null
},
{
"advanced": false,
"default": 720,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "height",
"max": null,
"min": null,
"name": "height",
"node_id": "145",
"options": null,
"range_source": "unverified",
"type": "int",
"unit": null
},
{
"advanced": false,
"default": 1,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "batch_size",
"max": null,
"min": null,
"name": "batch_size",
"node_id": "145",
"options": null,
"range_source": "unverified",
"type": "int",
"unit": null
},
{
"advanced": false,
"default": 875219259066635,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "seed",
"max": null,
"min": null,
"name": "seed",
"node_id": "146",
"options": null,
"range_source": "unverified",
"type": "int",
"unit": null
},
{
"advanced": false,
"default": 8,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "steps",
"max": null,
"min": null,
"name": "steps",
"node_id": "146",
"options": null,
"range_source": "unverified",
"type": "int",
"unit": null
},
{
"advanced": false,
"default": 1,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "cfg",
"max": null,
"min": null,
"name": "cfg",
"node_id": "146",
"options": null,
"range_source": "unverified",
"type": "int",
"unit": null
},
{
"advanced": false,
"default": "res_multistep",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "sampler_name",
"max": null,
"min": null,
"name": "sampler_name",
"node_id": "146",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": "beta",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "scheduler",
"max": null,
"min": null,
"name": "scheduler",
"node_id": "146",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": 1,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "denoise",
"max": null,
"min": null,
"name": "denoise",
"node_id": "146",
"options": null,
"range_source": "unverified",
"type": "int",
"unit": null
},
{
"advanced": false,
"default": "Krea-2-Turbo.safetensors",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "unet_name",
"max": null,
"min": null,
"name": "unet_name",
"node_id": "148",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": "default",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "weight_dtype",
"max": null,
"min": null,
"name": "weight_dtype",
"node_id": "148",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": "qwen3vl_4b_fp8_scaled.safetensors",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "clip_name",
"max": null,
"min": null,
"name": "clip_name",
"node_id": "149",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": "krea2",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "type",
"max": null,
"min": null,
"name": "type",
"node_id": "149",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": "default",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "device",
"max": null,
"min": null,
"name": "device",
"node_id": "149",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": "qwen_image_vae.safetensors",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "vae_name",
"max": null,
"min": null,
"name": "vae_name",
"node_id": "150",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": "krea2\\Krea2-realism-V2.safetensors",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "lora_name",
"max": null,
"min": null,
"name": "lora_name",
"node_id": "152",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": 1,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "strength_model",
"max": null,
"min": null,
"name": "strength_model",
"node_id": "152",
"options": null,
"range_source": "unverified",
"type": "int",
"unit": null
},
{
"advanced": false,
"default": " ultra realistic landscape. A sprawling, vertical city of dark metal and concrete. Sleek towers are contrasted with grimy, overcrowded lower levels. Perpetual twilight is punctuated by neon propaganda and searchlights.",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "value",
"max": null,
"min": null,
"name": "value",
"node_id": "156",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": false,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "value",
"max": null,
"min": null,
"name": "value",
"node_id": "160",
"options": null,
"range_source": "unverified",
"type": "bool",
"unit": null
},
{
"advanced": false,
"default": false,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "value",
"max": null,
"min": null,
"name": "value",
"node_id": "161",
"options": null,
"range_source": "unverified",
"type": "bool",
"unit": null
},
{
"advanced": false,
"default": 42,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "seed",
"max": null,
"min": null,
"name": "seed",
"node_id": "172",
"options": null,
"range_source": "unverified",
"type": "int",
"unit": null
},
{
"advanced": false,
"default": 6,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "steps",
"max": null,
"min": null,
"name": "steps",
"node_id": "172",
"options": null,
"range_source": "unverified",
"type": "int",
"unit": null
},
{
"advanced": false,
"default": 1,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "cfg",
"max": null,
"min": null,
"name": "cfg",
"node_id": "172",
"options": null,
"range_source": "unverified",
"type": "int",
"unit": null
},
{
"advanced": false,
"default": "euler",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "sampler_name",
"max": null,
"min": null,
"name": "sampler_name",
"node_id": "172",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": "simple",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "scheduler",
"max": null,
"min": null,
"name": "scheduler",
"node_id": "172",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": 0.15,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "denoise",
"max": null,
"min": null,
"name": "denoise",
"node_id": "172",
"options": null,
"range_source": "unverified",
"type": "float",
"unit": null
},
{
"advanced": false,
"default": "",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "delimiter",
"max": null,
"min": null,
"name": "delimiter",
"node_id": "171:154",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": 512,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "max_length",
"max": null,
"min": null,
"name": "max_length",
"node_id": "171:153",
"options": null,
"range_source": "unverified",
"type": "int",
"unit": null
},
{
"advanced": false,
"default": "on",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "sampling_mode",
"max": null,
"min": null,
"name": "sampling_mode",
"node_id": "171:153",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": 0.7,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "sampling_mode.temperature",
"max": null,
"min": null,
"name": "sampling_mode.temperature",
"node_id": "171:153",
"options": null,
"range_source": "unverified",
"type": "float",
"unit": null
},
{
"advanced": false,
"default": 64,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "sampling_mode.top_k",
"max": null,
"min": null,
"name": "sampling_mode.top_k",
"node_id": "171:153",
"options": null,
"range_source": "unverified",
"type": "int",
"unit": null
},
{
"advanced": false,
"default": 0.95,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "sampling_mode.top_p",
"max": null,
"min": null,
"name": "sampling_mode.top_p",
"node_id": "171:153",
"options": null,
"range_source": "unverified",
"type": "float",
"unit": null
},
{
"advanced": false,
"default": 0.05,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "sampling_mode.min_p",
"max": null,
"min": null,
"name": "sampling_mode.min_p",
"node_id": "171:153",
"options": null,
"range_source": "unverified",
"type": "float",
"unit": null
},
{
"advanced": false,
"default": 1.05,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "sampling_mode.repetition_penalty",
"max": null,
"min": null,
"name": "sampling_mode.repetition_penalty",
"node_id": "171:153",
"options": null,
"range_source": "unverified",
"type": "float",
"unit": null
},
{
"advanced": false,
"default": 0,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "sampling_mode.seed",
"max": null,
"min": null,
"name": "sampling_mode.seed",
"node_id": "171:153",
"options": null,
"range_source": "unverified",
"type": "int",
"unit": null
},
{
"advanced": false,
"default": 0,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "sampling_mode.presence_penalty",
"max": null,
"min": null,
"name": "sampling_mode.presence_penalty",
"node_id": "171:153",
"options": null,
"range_source": "unverified",
"type": "int",
"unit": null
},
{
"advanced": false,
"default": true,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "thinking",
"max": null,
"min": null,
"name": "thinking",
"node_id": "171:153",
"options": null,
"range_source": "unverified",
"type": "bool",
"unit": null
},
{
"advanced": false,
"default": true,
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "use_default_template",
"max": null,
"min": null,
"name": "use_default_template",
"node_id": "171:153",
"options": null,
"range_source": "unverified",
"type": "bool",
"unit": null
},
{
"advanced": false,
"default": "muted minimalist sketch style",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "string_b",
"max": null,
"min": null,
"name": "string_b",
"node_id": "171:162",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": ", ",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "delimiter",
"max": null,
"min": null,
"name": "delimiter",
"node_id": "171:162",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
},
{
"advanced": false,
"default": "You are an expert prompt engineer for text-to-image models. Your task is to expand the user's prompt into a highly effective image-generation prompt.\n\nThink step by step about the request before writing the answer:\n- What is the subject and mood?\n- What visual styles, mediums, and lighting options would fit? Consider two or three alternatives and pick the one that best serves the caption.\n- What composition, framing, and grounded details will help the text-to-image model?\n\nThen output a single expanded prompt paragraph.\n\nFollow these rules strictly:\n1. **Faithfulness First:** Preserve all original subjects, actions, colors, and spatial relationships. Do not add new objects, props, characters, or animals unless the user clearly implies them.\n2. **Practical T2I Structure:** Write a prompt that a text-to-image model can parse cleanly. Group subjects with their own attributes and actions. Use grounded phrasing for poses, interactions, and spatial layout.\n3. **Style Planning Stays Internal:** Use your internal reasoning to choose style, medium, framing, and lighting. Do not emit planning tags or wrappers in the visible answer body.\n4. **Text Rendering:** If the user requests visible text, quotes, labels, or typography, specify the exact text clearly and wrap requested words in quotes.\n5. **Avoid Over-Specification:** Do not invent highly specific clothing, colors, materials, or scene details unless the input supports them.\n6. **Structure:** Write one cohesive paragraph after the thinking block. No bullets, JSON, or markdown.\n7. **Respect Existing Detail:** If the user's prompt is already detailed, lightly polish and finalize rather than heavily expanding — preserve their phrasing and direction.\n8. **Respect the Human Form:** Treat depictions of people with dignity. Assume clothing covers genitals and intimate anatomy.\n9. **Preserve User Medium:** When the user explicitly requests a medium (e.g. \"photo of\", \"photograph of\", \"illustration of\", \"painting of\", \"sketch of\", \"3D render of\"), honor it. Do not pivot to a different medium to avoid difficulty — match the user's stated intent.\n\nUser's Input:\n\n",
"default_source": "source_file",
"effect": "待节点定义及人工核对",
"field": "value",
"max": null,
"min": null,
"name": "value",
"node_id": "171:155",
"options": null,
"range_source": "unverified",
"type": "str",
"unit": null
}
],
"purpose": "源目录:example_ComfyUI_workflows;工作流:Krea2_t2i_20260818_API。用途待逐节点复核。",
"snapshot_sha": "74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c019892f982b90b",
"source_links": [],
"source_nodes": [
{
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "krea2/Assets",
"images": [
"173",
0
]
},
"mode": 0,
"node_id": "29",
"source_values": {
"filename_prefix": "krea2/Assets",
"images": [
"173",
0
]
},
"title": "(output:image) Image Output"
},
{
"class_type": "CLIPTextEncode",
"inputs": {
"clip": [
"149",
0
],
"text": [
"171:163",
0
]
},
"mode": 0,
"node_id": "144",
"source_values": {
"clip": [
"149",
0
],
"text": [
"171:163",
0
]
},
"title": "CLIP Text Encode (Prompt)"
},
{
"class_type": "EmptyLatentImage",
"inputs": {
"batch_size": 1,
"height": 720,
"width": 1280
},
"mode": 0,
"node_id": "145",
"source_values": {
"batch_size": 1,
"height": 720,
"width": 1280
},
"title": "Empty Latent Image"
},
{
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"145",
0
],
"model": [
"159",
0
],
"negative": [
"151",
0
],
"positive": [
"144",
0
],
"sampler_name": "res_multistep",
"scheduler": "beta",
"seed": 875219259066635,
"steps": 8
},
"mode": 0,
"node_id": "146",
"source_values": {
"cfg": 1,
"denoise": 1,
"latent_image": [
"145",
0
],
"model": [
"159",
0
],
"negative": [
"151",
0
],
"positive": [
"144",
0
],
"sampler_name": "res_multistep",
"scheduler": "beta",
"seed": 875219259066635,
"steps": 8
},
"title": "KSampler"
},
{
"class_type": "UNETLoader",
"inputs": {
"unet_name": "Krea-2-Turbo.safetensors",
"weight_dtype": "default"
},
"mode": 0,
"node_id": "148",
"source_values": {
"unet_name": "Krea-2-Turbo.safetensors",
"weight_dtype": "default"
},
"title": "Load Diffusion Model"
},
{
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen3vl_4b_fp8_scaled.safetensors",
"device": "default",
"type": "krea2"
},
"mode": 0,
"node_id": "149",
"source_values": {
"clip_name": "qwen3vl_4b_fp8_scaled.safetensors",
"device": "default",
"type": "krea2"
},
"title": "Load CLIP"
},
{
"class_type": "VAELoader",
"inputs": {
"vae_name": "qwen_image_vae.safetensors"
},
"mode": 0,
"node_id": "150",
"source_values": {
"vae_name": "qwen_image_vae.safetensors"
},
"title": "Load VAE"
},
{
"class_type": "ConditioningZeroOut",
"inputs": {
"conditioning": [
"144",
0
]
},
"mode": 0,
"node_id": "151",
"source_values": {
"conditioning": [
"144",
0
]
},
"title": "Conditioning Zero Out"
},
{
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "krea2\\Krea2-realism-V2.safetensors",
"model": [
"148",
0
],
"strength_model": 1
},
"mode": 0,
"node_id": "152",
"source_values": {
"lora_name": "krea2\\Krea2-realism-V2.safetensors",
"model": [
"148",
0
],
"strength_model": 1
},
"title": "Load LoRA"
},
{
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": " ultra realistic landscape. A sprawling, vertical city of dark metal and concrete. Sleek towers are contrasted with grimy, overcrowded lower levels. Perpetual twilight is punctuated by neon propaganda and searchlights."
},
"mode": 0,
"node_id": "156",
"source_values": {
"value": " ultra realistic landscape. A sprawling, vertical city of dark metal and concrete. Sleek towers are contrasted with grimy, overcrowded lower levels. Perpetual twilight is punctuated by neon propaganda and searchlights."
},
"title": "(Input:prompt) Prompt"
},
{
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"148",
0
],
"on_true": [
"152",
0
],
"switch": [
"160",
0
]
},
"mode": 0,
"node_id": "159",
"source_values": {
"on_false": [
"148",
0
],
"on_true": [
"152",
0
],
"switch": [
"160",
0
]
},
"title": "Switch (Model)"
},
{
"class_type": "PrimitiveBoolean",
"inputs": {
"value": false
},
"mode": 0,
"node_id": "160",
"source_values": {
"value": false
},
"title": "Boolean (Enable LoRA?)"
},
{
"class_type": "PrimitiveBoolean",
"inputs": {
"value": false
},
"mode": 0,
"node_id": "161",
"source_values": {
"value": false
},
"title": "Boolean (Refine Prompt?)"
},
{
"class_type": "KSampler",
"inputs": {
"cfg": 1,
"denoise": 0.15,
"latent_image": [
"187",
0
],
"model": [
"152",
0
],
"negative": [
"151",
0
],
"positive": [
"144",
0
],
"sampler_name": "euler",
"scheduler": "simple",
"seed": 42,
"steps": 6
},
"mode": 0,
"node_id": "172",
"source_values": {
"cfg": 1,
"denoise": 0.15,
"latent_image": [
"187",
0
],
"model": [
"152",
0
],
"negative": [
"151",
0
],
"positive": [
"144",
0
],
"sampler_name": "euler",
"scheduler": "simple",
"seed": 42,
"steps": 6
},
"title": "KSampler"
},
{
"class_type": "VAEDecode",
"inputs": {
"samples": [
"172",
0
],
"vae": [
"150",
0
]
},
"mode": 0,
"node_id": "173",
"source_values": {
"samples": [
"172",
0
],
"vae": [
"150",
0
]
},
"title": "VAE Decode"
},
{
"class_type": "VAEEncode",
"inputs": {
"pixels": [
"188",
0
],
"vae": [
"150",
0
]
},
"mode": 0,
"node_id": "187",
"source_values": {
"pixels": [
"188",
0
],
"vae": [
"150",
0
]
},
"title": "VAE Encode"
},
{
"class_type": "VAEDecode",
"inputs": {
"samples": [
"146",
0
],
"vae": [
"150",
0
]
},
"mode": 0,
"node_id": "188",
"source_values": {
"samples": [
"146",
0
],
"vae": [
"150",
0
]
},
"title": "VAE Decode"
},
{
"class_type": "StringConcatenate",
"inputs": {
"delimiter": "",
"string_a": [
"171:155",
0
],
"string_b": [
"156",
0
]
},
"mode": 0,
"node_id": "171:154",
"source_values": {
"delimiter": "",
"string_a": [
"171:155",
0
],
"string_b": [
"156",
0
]
},
"title": "Concatenate Text"
},
{
"class_type": "TextGenerate",
"inputs": {
"clip": [
"149",
0
],
"max_length": 512,
"prompt": [
"171:154",
0
],
"sampling_mode": "on",
"sampling_mode.min_p": 0.05,
"sampling_mode.presence_penalty": 0,
"sampling_mode.repetition_penalty": 1.05,
"sampling_mode.seed": 0,
"sampling_mode.temperature": 0.7,
"sampling_mode.top_k": 64,
"sampling_mode.top_p": 0.95,
"thinking": true,
"use_default_template": true
},
"mode": 0,
"node_id": "171:153",
"source_values": {
"clip": [
"149",
0
],
"max_length": 512,
"prompt": [
"171:154",
0
],
"sampling_mode": "on",
"sampling_mode.min_p": 0.05,
"sampling_mode.presence_penalty": 0,
"sampling_mode.repetition_penalty": 1.05,
"sampling_mode.seed": 0,
"sampling_mode.temperature": 0.7,
"sampling_mode.top_k": 64,
"sampling_mode.top_p": 0.95,
"thinking": true,
"use_default_template": true
},
"title": "Generate Text"
},
{
"class_type": "PreviewAny",
"inputs": {
"source": [
"171:158",
0
]
},
"mode": 0,
"node_id": "171:157",
"source_values": {
"source": [
"171:158",
0
]
},
"title": "Preview as Text"
},
{
"class_type": "StringConcatenate",
"inputs": {
"delimiter": ", ",
"string_a": [
"171:157",
0
],
"string_b": "muted minimalist sketch style"
},
"mode": 0,
"node_id": "171:162",
"source_values": {
"delimiter": ", ",
"string_a": [
"171:157",
0
],
"string_b": "muted minimalist sketch style"
},
"title": "Concatenate Text (LoRA Trigger Word)"
},
{
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"171:157",
0
],
"on_true": [
"171:162",
0
],
"switch": [
"160",
0
]
},
"mode": 0,
"node_id": "171:163",
"source_values": {
"on_false": [
"171:157",
0
],
"on_true": [
"171:162",
0
],
"switch": [
"160",
0
]
},
"title": "If/Else Switch"
},
{
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"156",
0
],
"on_true": [
"171:153",
0
],
"switch": [
"161",
0
]
},
"mode": 0,
"node_id": "171:158",
"source_values": {
"on_false": [
"156",
0
],
"on_true": [
"171:153",
0
],
"switch": [
"161",
0
]
},
"title": "If/Else Switch"
},
{
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "You are an expert prompt engineer for text-to-image models. Your task is to expand the user's prompt into a highly effective image-generation prompt.\n\nThink step by step about the request before writing the answer:\n- What is the subject and mood?\n- What visual styles, mediums, and lighting options would fit? Consider two or three alternatives and pick the one that best serves the caption.\n- What composition, framing, and grounded details will help the text-to-image model?\n\nThen output a single expanded prompt paragraph.\n\nFollow these rules strictly:\n1. **Faithfulness First:** Preserve all original subjects, actions, colors, and spatial relationships. Do not add new objects, props, characters, or animals unless the user clearly implies them.\n2. **Practical T2I Structure:** Write a prompt that a text-to-image model can parse cleanly. Group subjects with their own attributes and actions. Use grounded phrasing for poses, interactions, and spatial layout.\n3. **Style Planning Stays Internal:** Use your internal reasoning to choose style, medium, framing, and lighting. Do not emit planning tags or wrappers in the visible answer body.\n4. **Text Rendering:** If the user requests visible text, quotes, labels, or typography, specify the exact text clearly and wrap requested words in quotes.\n5. **Avoid Over-Specification:** Do not invent highly specific clothing, colors, materials, or scene details unless the input supports them.\n6. **Structure:** Write one cohesive paragraph after the thinking block. No bullets, JSON, or markdown.\n7. **Respect Existing Detail:** If the user's prompt is already detailed, lightly polish and finalize rather than heavily expanding — preserve their phrasing and direction.\n8. **Respect the Human Form:** Treat depictions of people with dignity. Assume clothing covers genitals and intimate anatomy.\n9. **Preserve User Medium:** When the user explicitly requests a medium (e.g. \"photo of\", \"photograph of\", \"illustration of\", \"painting of\", \"sketch of\", \"3D render of\"), honor it. Do not pivot to a different medium to avoid difficulty — match the user's stated intent.\n\nUser's Input:\n\n"
},
"mode": 0,
"node_id": "171:155",
"source_values": {
"value": "You are an expert prompt engineer for text-to-image models. Your task is to expand the user's prompt into a highly effective image-generation prompt.\n\nThink step by step about the request before writing the answer:\n- What is the subject and mood?\n- What visual styles, mediums, and lighting options would fit? Consider two or three alternatives and pick the one that best serves the caption.\n- What composition, framing, and grounded details will help the text-to-image model?\n\nThen output a single expanded prompt paragraph.\n\nFollow these rules strictly:\n1. **Faithfulness First:** Preserve all original subjects, actions, colors, and spatial relationships. Do not add new objects, props, characters, or animals unless the user clearly implies them.\n2. **Practical T2I Structure:** Write a prompt that a text-to-image model can parse cleanly. Group subjects with their own attributes and actions. Use grounded phrasing for poses, interactions, and spatial layout.\n3. **Style Planning Stays Internal:** Use your internal reasoning to choose style, medium, framing, and lighting. Do not emit planning tags or wrappers in the visible answer body.\n4. **Text Rendering:** If the user requests visible text, quotes, labels, or typography, specify the exact text clearly and wrap requested words in quotes.\n5. **Avoid Over-Specification:** Do not invent highly specific clothing, colors, materials, or scene details unless the input supports them.\n6. **Structure:** Write one cohesive paragraph after the thinking block. No bullets, JSON, or markdown.\n7. **Respect Existing Detail:** If the user's prompt is already detailed, lightly polish and finalize rather than heavily expanding — preserve their phrasing and direction.\n8. **Respect the Human Form:** Treat depictions of people with dignity. Assume clothing covers genitals and intimate anatomy.\n9. **Preserve User Medium:** When the user explicitly requests a medium (e.g. \"photo of\", \"photograph of\", \"illustration of\", \"painting of\", \"sketch of\", \"3D render of\"), honor it. Do not pivot to a different medium to avoid difficulty — match the user's stated intent.\n\nUser's Input:\n\n"
},
"title": "Text String (System Prompt)"
}
],
"source_notes": [],
"source_path": "example_ComfyUI_workflows/Krea2_t2i_20260818_API.json",
"status": {
"doc_done": false,
"exec_verified": false,
"imported": true
},
"steps": [
"打开源工作流 example_ComfyUI_workflows/Krea2_t2i_20260818_API.json,逐项核对下列源节点与注释。",
"补齐节点定义、模型来源及所需素材;完成输入输出映射核对。",
"明确触发真实测试后核对产物;本批未提交生成任务。"
],
"title": "Krea2_t2i_20260818_API"
}