ComfyUI/user/default/workflows/contents) create image with LoRA.json
2025-01-15 15:24:05 +09:00

1333 lines
25 KiB
JSON

{
"last_node_id": 48,
"last_link_id": 54,
"nodes": [
{
"id": 2,
"type": "DualCLIPLoader",
"pos": [
-235,
248
],
"size": {
"0": 315,
"1": 106
},
"flags": {
"collapsed": true
},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
17
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "DualCLIPLoader"
},
"widgets_values": [
"t5xxl_fp16.safetensors",
"clip_l.safetensors",
"flux"
]
},
{
"id": 1,
"type": "UNETLoader",
"pos": [
-273,
173
],
"size": {
"0": 315,
"1": 82
},
"flags": {
"collapsed": true
},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
16
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"flux/flux1-dev.safetensors",
"default"
]
},
{
"id": 3,
"type": "CLIPTextEncode",
"pos": [
492,
211
],
"size": {
"0": 239.71102905273438,
"1": 54
},
"flags": {
"collapsed": true
},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 20
},
{
"name": "text",
"type": "STRING",
"link": 53,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
3
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"A cartoon animal. Animal is owl. Do clothes shopping at the store."
]
},
{
"id": 4,
"type": "BasicGuider",
"pos": [
726,
160
],
"size": {
"0": 241.79998779296875,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 21
},
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 4
}
],
"outputs": [
{
"name": "GUIDER",
"type": "GUIDER",
"links": [
5
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "BasicGuider"
}
},
{
"id": 6,
"type": "SamplerCustomAdvanced",
"pos": [
847,
302
],
"size": {
"0": 355.20001220703125,
"1": 106
},
"flags": {
"collapsed": true
},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "noise",
"type": "NOISE",
"link": 8
},
{
"name": "guider",
"type": "GUIDER",
"link": 5
},
{
"name": "sampler",
"type": "SAMPLER",
"link": 7
},
{
"name": "sigmas",
"type": "SIGMAS",
"link": 9
},
{
"name": "latent_image",
"type": "LATENT",
"link": 6
}
],
"outputs": [
{
"name": "output",
"type": "LATENT",
"links": [
10
],
"slot_index": 0,
"shape": 3
},
{
"name": "denoised_output",
"type": "LATENT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "SamplerCustomAdvanced"
}
},
{
"id": 12,
"type": "VAEDecode",
"pos": [
1101,
340
],
"size": {
"0": 210,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 10
},
{
"name": "vae",
"type": "VAE",
"link": 12
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
13
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 7,
"type": "VAELoader",
"pos": [
858,
363
],
"size": {
"0": 315,
"1": 58
},
"flags": {
"collapsed": true
},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
12
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"flux_dev/ae.safetensors"
]
},
{
"id": 36,
"type": "Zuellni Text Format",
"pos": [
-96,
464
],
"size": {
"0": 368.85284423828125,
"1": 271.1067810058594
},
"flags": {
"collapsed": true
},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "var_1",
"type": "STRING",
"link": 45,
"widget": {
"name": "var_1"
}
},
{
"name": "var_2",
"type": "STRING",
"link": 48,
"widget": {
"name": "var_2"
}
},
{
"name": "var_3",
"type": "STRING",
"link": 49,
"widget": {
"name": "var_3"
}
},
{
"name": "var_4",
"type": "STRING",
"link": 44,
"widget": {
"name": "var_4"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
50,
51
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Zuellni Text Format"
},
"widgets_values": [
"1. Image Style and Mood: var_4. var_1\n2. Person: var_2.\n3. Background: var_3.",
"",
"",
"",
"",
""
]
},
{
"id": 42,
"type": "ShowText|pysssss",
"pos": [
-86,
518
],
"size": {
"0": 317.794189453125,
"1": 131.1604461669922
},
"flags": {
"collapsed": true
},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 51,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": null,
"shape": 6
}
],
"properties": {
"Node name for S&R": "ShowText|pysssss"
},
"widgets_values": [
"",
"1. Image Style and Mood: Realistic. closed-up\n2. Person: .\n3. Background: It's raining through modern office windows."
]
},
{
"id": 9,
"type": "KSamplerSelect",
"pos": [
610,
285
],
"size": {
"0": 315,
"1": 58
},
"flags": {
"collapsed": true
},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
7
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"euler"
]
},
{
"id": 39,
"type": "DF_Text",
"pos": [
-461,
783
],
"size": {
"0": 315,
"1": 58
},
"flags": {
"collapsed": true
},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
43
],
"slot_index": 0,
"shape": 3
}
],
"title": "만화",
"properties": {
"Node name for S&R": "DF_Text"
},
"widgets_values": [
"Cartoon"
]
},
{
"id": 38,
"type": "DF_Text",
"pos": [
-455,
831
],
"size": {
"0": 315,
"1": 58
},
"flags": {
"collapsed": true
},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
42
],
"slot_index": 0,
"shape": 3
}
],
"title": "실사",
"properties": {
"Node name for S&R": "DF_Text"
},
"widgets_values": [
"Realistic"
]
},
{
"id": 37,
"type": "Switch string [Crystools]",
"pos": [
-343,
771
],
"size": {
"0": 210,
"1": 86.99559020996094
},
"flags": {
"collapsed": false
},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "on_false",
"type": "STRING",
"link": 43,
"widget": {
"name": "on_false"
}
},
{
"name": "on_true",
"type": "STRING",
"link": 42,
"widget": {
"name": "on_true"
}
}
],
"outputs": [
{
"name": "string",
"type": "STRING",
"links": [
44
],
"slot_index": 0,
"shape": 3
}
],
"title": "실사(True) 만화(False)",
"properties": {
"Node name for S&R": "Switch string [Crystools]"
},
"widgets_values": [
"",
"",
true
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 43,
"type": "ShowText|pysssss",
"pos": [
57,
341
],
"size": {
"0": 420.6028137207031,
"1": 148.42630004882812
},
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 52,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
53
],
"slot_index": 0,
"shape": 6
}
],
"title": "이미지 생성에 사용된 텍스트",
"properties": {
"Node name for S&R": "ShowText|pysssss"
},
"widgets_values": [
"",
" “A realistic, close-up image through a window in a modern office, with raindrops hitting the glass, blurred colors of the dark sky and cityscape, artfully blending into the background.”"
]
},
{
"id": 14,
"type": "LoraLoader",
"pos": [
-14,
161
],
"size": {
"0": 315,
"1": 126
},
"flags": {
"collapsed": false
},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 16
},
{
"name": "clip",
"type": "CLIP",
"link": 17
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
21,
22
],
"slot_index": 0,
"shape": 3
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
20
],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoraLoader"
},
"widgets_values": [
"flux_dev/flux_realism_lora.safetensors",
1,
1
]
},
{
"id": 5,
"type": "FluxGuidance",
"pos": [
356,
61
],
"size": {
"0": 317.4000244140625,
"1": 58
},
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 3
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
4
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "FluxGuidance"
},
"widgets_values": [
3.5
]
},
{
"id": 35,
"type": "TextInput_",
"pos": [
-463,
375
],
"size": {
"0": 269.3326416015625,
"1": 86.72084045410156
},
"flags": {},
"order": 6,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
45
],
"slot_index": 0,
"shape": 3
}
],
"title": "이미지의 분위기",
"properties": {
"Node name for S&R": "TextInput_"
},
"widgets_values": [
"closed-up"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 40,
"type": "TextInput_",
"pos": [
-472,
503
],
"size": {
"0": 272.1954345703125,
"1": 80.48410034179688
},
"flags": {
"collapsed": false
},
"order": 7,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
48
],
"slot_index": 0,
"shape": 3
}
],
"title": "인물(캐릭터) 설명",
"properties": {
"Node name for S&R": "TextInput_"
},
"widgets_values": [
""
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 41,
"type": "TextInput_",
"pos": [
-467,
631
],
"size": {
"0": 265.1748962402344,
"1": 85.17858123779297
},
"flags": {},
"order": 8,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
49
],
"slot_index": 0,
"shape": 3
}
],
"title": "배경 설명",
"properties": {
"Node name for S&R": "TextInput_"
},
"widgets_values": [
"It's raining through modern office windows"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 48,
"type": "Note",
"pos": [
-299,
1025
],
"size": {
"0": 210,
"1": 58
},
"flags": {},
"order": 9,
"mode": 0,
"properties": {
"text": ""
},
"widgets_values": [
"true: 텍스트 유지\nfalse: 새로운 텍스트 생성"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 13,
"type": "PreviewImage",
"pos": [
536,
440
],
"size": {
"0": 675.6197509765625,
"1": 745.1414794921875
},
"flags": {},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 13
}
],
"properties": {
"Node name for S&R": "PreviewImage"
},
"color": "#223",
"bgcolor": "#335"
},
{
"id": 11,
"type": "EmptyLatentImage",
"pos": [
136,
537
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 10,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
6
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1920,
1080,
1
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 10,
"type": "RandomNoise",
"pos": [
129,
705
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 11,
"mode": 0,
"outputs": [
{
"name": "NOISE",
"type": "NOISE",
"links": [
8
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "RandomNoise"
},
"widgets_values": [
826562265160610,
"randomize"
]
},
{
"id": 8,
"type": "BasicScheduler",
"pos": [
129,
838
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 22
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
9
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "BasicScheduler"
},
"widgets_values": [
"normal",
20,
1
]
},
{
"id": 34,
"type": "OllamaGenerateAdvance",
"pos": [
-95,
608
],
"size": [
371.8327331542969,
600.5529174804688
],
"flags": {
"collapsed": true
},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "context",
"type": "STRING",
"link": null,
"widget": {
"name": "context"
}
},
{
"name": "prompt",
"type": "STRING",
"link": 50,
"widget": {
"name": "prompt"
}
},
{
"name": "keep_context",
"type": "BOOLEAN",
"link": 54,
"widget": {
"name": "keep_context"
}
}
],
"outputs": [
{
"name": "response",
"type": "STRING",
"links": [
52
],
"slot_index": 0,
"shape": 3
},
{
"name": "context",
"type": "STRING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "OllamaGenerateAdvance"
},
"widgets_values": [
"",
false,
"http://127.0.0.1:11434",
"brxce/stable-diffusion-prompt-generator:latest",
"The user will input image prompts in Markdown format with up to three sections:\n\n1. **Image Style and Mood** (optional): Describes the general style or mood of the image, such as \"DisneyStudio,\" \"Cartoon,\" \"Dreamy,\" or \"Realistic.\" If provided, keep any specific names mentioned by the user.\n2. **Person** (optional): Describes the main person or character, including attributes like age, appearance, and specific details. If this section is missing, do not include any characters in the generated prompt.\n3. **Background** (optional): Describes the setting or background, including elements like \"sky,\" \"sunshine,\" \"field,\" etc. If this section is provided, include it in the prompt.\n\nUse the provided sections to create a detailed, natural-language prompt that combines all available elements smoothly. Follow these rules:\n- Begin with the style and mood if provided. Retain specific names if included.\n- For a **realistic** style, ensure the prompt uses language that reflects realism, avoiding whimsical or cartoon-like phrases.\n- If the person information is missing, do not add any character descriptions.\n- If a person is described, include detailed appearance and expressions.\n- If background information is provided, describe it vividly, including colors, lighting, and notable details.\n- Use a single, fluent sentence structure with appropriate commas to separate elements, ensuring coherence.\n- Exclude all Markdown formatting symbols.\n- **Do not add any additional artist names, studios, platforms, or styles unless specified by the user.** This includes phrases like \"art by...\" or references to other artists.\n\nExamples:\n\n**User Input 1**:\n1. Image Style and Mood: Cartoon\n3. Background: sky, sunshine, field, red-roofed cottage\n\n**Generated Prompt**:\n“A cartoon-style image of a field under a bright sun and clear blue sky, featuring a red-roofed cottage.”\n\n**User Input 2**:\n1. Image Style and Mood: Realistic\n3. Background: sky, sunshine, field, red-roofed cottage\n\n**Generated Prompt**:\n“A realistic image depicting a field under a bright sun and clear blue sky, with a charming red-roofed cottage nestled in the landscape, capturing the warmth of a sunny day.”\n\n**User Input 3**:\n1. Image Style and Mood: Dreamy\n2. Person: young woman with long hair, smiling\n\n**Generated Prompt**:\n“A dreamy image of a young woman with long hair, smiling brightly, surrounded by soft, ethereal light, creating a joyful atmosphere.”\n\n**User Input 4**:\n2. Person: elderly man with a beard, reading a newspaper\n\n**Generated Prompt**:\n“A detailed image of an elderly man with a beard, reading a newspaper, capturing a thoughtful expression against a softly blurred background.”\n\n**User Input 5**:\n1. Image Style and Mood: Realistic\n3. Background: sunset over mountains\n\n**Generated Prompt**:\n“A realistic image of a sunset over mountains, showcasing the vibrant colors of the sky reflecting on the peaks.”",
1470658462,
"randomize",
40,
0.9,
0.8,
-1,
1,
5,
false,
"text",
""
]
},
{
"id": 47,
"type": "easy boolean",
"pos": [
-277,
909
],
"size": [
210,
58
],
"flags": {},
"order": 12,
"mode": 0,
"outputs": [
{
"name": "boolean",
"type": "BOOLEAN",
"links": [
54
],
"shape": 3,
"slot_index": 0
}
],
"title": "텍스트 유지 여부",
"properties": {
"Node name for S&R": "easy boolean"
},
"widgets_values": [
true
],
"color": "#232",
"bgcolor": "#353"
}
],
"links": [
[
3,
3,
0,
5,
0,
"CONDITIONING"
],
[
4,
5,
0,
4,
1,
"CONDITIONING"
],
[
5,
4,
0,
6,
1,
"GUIDER"
],
[
6,
11,
0,
6,
4,
"LATENT"
],
[
7,
9,
0,
6,
2,
"SAMPLER"
],
[
8,
10,
0,
6,
0,
"NOISE"
],
[
9,
8,
0,
6,
3,
"SIGMAS"
],
[
10,
6,
0,
12,
0,
"LATENT"
],
[
12,
7,
0,
12,
1,
"VAE"
],
[
13,
12,
0,
13,
0,
"IMAGE"
],
[
16,
1,
0,
14,
0,
"MODEL"
],
[
17,
2,
0,
14,
1,
"CLIP"
],
[
20,
14,
1,
3,
0,
"CLIP"
],
[
21,
14,
0,
4,
0,
"MODEL"
],
[
22,
14,
0,
8,
0,
"MODEL"
],
[
42,
38,
0,
37,
1,
"STRING"
],
[
43,
39,
0,
37,
0,
"STRING"
],
[
44,
37,
0,
36,
3,
"STRING"
],
[
45,
35,
0,
36,
0,
"STRING"
],
[
48,
40,
0,
36,
1,
"STRING"
],
[
49,
41,
0,
36,
2,
"STRING"
],
[
50,
36,
0,
34,
1,
"STRING"
],
[
51,
36,
0,
42,
0,
"STRING"
],
[
52,
34,
0,
43,
0,
"STRING"
],
[
53,
43,
0,
3,
1,
"STRING"
],
[
54,
47,
0,
34,
2,
"BOOLEAN"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1.061076460950003,
"offset": [
332.3883749834527,
-315.9839571560624
]
}
},
"version": 0.4
}