Files
spawner1145-comfyui-aichat/example_workflows/gemini_lumina2.json
T
2025-07-21 20:58:26 +08:00

975 lines
19 KiB
JSON

{
"id": "ed1c82b4-4b7d-47ac-8ebf-5466e80415a9",
"revision": 0,
"last_node_id": 37,
"last_link_id": 36,
"nodes": [
{
"id": 15,
"type": "easy string",
"pos": [
880.7830200195312,
-314.8269958496094
],
"size": [
299.7011413574219,
70.56587219238281
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "string",
"type": "STRING",
"links": [
6
]
}
],
"title": "system",
"properties": {
"cnr_id": "comfyui-easy-use",
"ver": "71c7865d2d3c934ccb99f24171e08ae5a81148ac",
"Node name for S&R": "easy string"
},
"widgets_values": [
"You are an assistant designed to generate anime images based on textual prompts. <Prompt Start>"
]
},
{
"id": 21,
"type": "VAELoader",
"pos": [
1731.83447265625,
-445.62591552734375
],
"size": [
270,
58
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
22
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.40",
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"ae.safetensors"
]
},
{
"id": 27,
"type": "VAEDecode",
"pos": [
2096.24365234375,
-281.1273193359375
],
"size": [
140,
46
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 21
},
{
"name": "vae",
"type": "VAE",
"link": 22
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
23
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.40",
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 26,
"type": "EmptyLatentImage",
"pos": [
1638.1614990234375,
167.24517822265625
],
"size": [
270,
106
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
20
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.40",
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1024,
1536,
1
]
},
{
"id": 20,
"type": "CLIPLoader",
"pos": [
885.3524780273438,
14.741385459899902
],
"size": [
270,
106
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
14,
18
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.40",
"Node name for S&R": "CLIPLoader"
},
"widgets_values": [
"gemma_2_2b_fp16.safetensors",
"lumina2",
"default"
]
},
{
"id": 23,
"type": "ModelSamplingAuraFlow",
"pos": [
1257.7591552734375,
234.643798828125
],
"size": [
270,
58
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 27
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
16
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.40",
"Node name for S&R": "ModelSamplingAuraFlow"
},
"widgets_values": [
6.000000000000001
]
},
{
"id": 25,
"type": "CLIPTextEncode",
"pos": [
1193.7864990234375,
-46.94553756713867
],
"size": [
400,
200
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 18
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
19
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.40",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"nsfw,worst quality,old,early,low quality,lowres,signature, username,logo,bad hands,mutated hands,mammal,anthro,furry,ambiguous form,feral,semi-anthro,txt,e621,mammal,anthro,furry,ambiguous_form,feral,semi-anthro"
]
},
{
"id": 24,
"type": "KSampler",
"pos": [
1718.69580078125,
-319.96746826171875
],
"size": [
257.4341735839844,
288.3883056640625
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 16
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 17
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 19
},
{
"name": "latent_image",
"type": "LATENT",
"link": 20
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
21
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.40",
"Node name for S&R": "KSampler"
},
"widgets_values": [
306603123244200,
"randomize",
50,
4.5,
"euler_ancestral",
"linear_quadratic",
1
]
},
{
"id": 30,
"type": "TeaCache_Lumina2",
"pos": [
781.7444458007812,
186.69505310058594
],
"size": [
400,
200
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 26
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
27
]
}
],
"properties": {
"cnr_id": "cui-lumina2-teacache",
"ver": "c10d373b82dcf863640b946b7d082817003854c7",
"Node name for S&R": "TeaCache_Lumina2"
},
"widgets_values": [
0.6000000000000001,
0,
1,
"[225.7042019806413, -608.8453716535591, 304.1869942338369, 124.21267720116742, -1.4089066892956552]"
]
},
{
"id": 22,
"type": "CLIPTextEncode",
"pos": [
1219.1593017578125,
-299.6222229003906
],
"size": [
398.6177673339844,
184.7952880859375
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 14
},
{
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": 13
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
17
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.40",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
]
},
{
"id": 8,
"type": "GeminiImageEncoder",
"pos": [
167.11111450195312,
-775.3240356445312
],
"size": [
270,
102
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 4
}
],
"outputs": [
{
"name": "content_item",
"type": "GEMINI_CONTENT_ITEM",
"links": []
},
{
"name": "base64_data",
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "aichat",
"ver": "5856d09e11bb764212ac38dcce57dd9f28258c78",
"Node name for S&R": "GeminiImageEncoder",
"aux_id": "spawner1145/comfyui-aichat"
},
"widgets_values": [
"png",
85
]
},
{
"id": 9,
"type": "LoadImage",
"pos": [
-194.0552215576172,
-801.9125366210938
],
"size": [
270,
314
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
4
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.40",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"5C3E873C1C5397CA96DAB8A9C71CAA25.png",
"image"
]
},
{
"id": 28,
"type": "SaveImage",
"pos": [
2292.2578125,
-418.31658935546875
],
"size": [
704.8540649414062,
718.2340698242188
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 23
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.40",
"Node name for S&R": "SaveImage"
},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 17,
"type": "easy showAnything",
"pos": [
961.3193969726562,
-629.5440063476562
],
"size": [
675.191162109375,
243.35435485839844
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "anything",
"shape": 7,
"type": "*",
"link": 8
}
],
"outputs": [
{
"name": "output",
"type": "*",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-easy-use",
"ver": "71c7865d2d3c934ccb99f24171e08ae5a81148ac",
"Node name for S&R": "easy showAnything"
},
"widgets_values": [
"You are an assistant designed to generate anime images based on textual prompts. <Prompt Start>\nA radiant Kamisato Ayaka basks on the sandy beach, her white hair cascading around her. She is dressed in a delightful blue and white bikini, her cleavage gently hinted at. A flirtatious blush tints her cheeks as she grins, her half-closed grey eyes sparkling with delight. A delicate flower adorns her hair, a matching ornament nestled within her ponytail, which is tied with a blue ribbon. \n\nShe sits gracefully with crossed legs under a beach umbrella, a parfait and a drinking glass nearby, hinting at sweet indulgence. A pair of heart-shaped sunglasses rests on her head, her hand thoughtfully placed on her chin. A sailor collar complements her official alternate costume.\n\n(best quality, very aesthetic, year 2024, absurdres, masterpiece), (artist: misyune), (artist: azuuru), (artist: torino aqua), (artist: fuzichoco), artist: kedama milk, artist: chen bin, (artist: atdan), artist: hito, artist: hiten, (artist: mignon), rating: general, solo, bow, chair, collarbone, cup, eyewear on head, food, hair flower, long hair, ribbon, sitting, smile, swimsuit, thighs, umbrella, very long hair\n"
]
},
{
"id": 10,
"type": "WeiLinComfyUIPromptAllInOneGreat",
"pos": [
-113.45326232910156,
-195.7730712890625
],
"size": [
400,
200
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "正向 STRING",
"type": "STRING",
"links": [
34
]
}
],
"properties": {
"cnr_id": "weilin-comfyui-prompt-all-in-one",
"ver": "b67771b09fe04abaad407200e4d7875ae3b62354",
"Node name for S&R": "WeiLinComfyUIPromptAllInOneGreat"
},
"widgets_values": [
"kamisato ayaka , 1girl,beach umbrella, white hair, bikini, blush,blue bikini,cleavage,white bikini , bow, chair, collarbone, crossed legs, cup, drinking glass, eyewear on head, flower, food, grin, hair flower, hair ornament, half-closed eyes, hand on own chin, heart,artist:misyune,{artist:azuuru},[[[{artist:torino aqua}]]], heart-shaped eyewear, long hair, official alternate costume, parfait, ponytail, grey eyes, blue ribbon, ribbon, sailor collar, sitting, smile, solo,sunglasses, swimsuit, thighs, umbrella, very long hair,{best quality, very aesthetic, year 2024, absurdres,masterpiece},{artist:fuzichoco},artist:kedama milk,artist:chen bin, {artist:atdan},artist:hito,artist:hiten,{artist:mignon}, rating:general, best quality, very aesthetic, absurdres",
""
]
},
{
"id": 18,
"type": "UNETLoader",
"pos": [
454.0901794433594,
137.858154296875
],
"size": [
270,
82
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
26
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.40",
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"consolidated.00-of-01.pth",
"default"
]
},
{
"id": 14,
"type": "Text Concatenate",
"pos": [
884.1754760742188,
-205.2716064453125
],
"size": [
270,
142
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "text_a",
"shape": 7,
"type": "STRING",
"link": 6
},
{
"name": "text_b",
"shape": 7,
"type": "STRING",
"link": 36
},
{
"name": "text_c",
"shape": 7,
"type": "STRING",
"link": null
},
{
"name": "text_d",
"shape": 7,
"type": "STRING",
"link": null
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
8,
13
]
}
],
"properties": {
"cnr_id": "was-ns",
"ver": "3.0.0",
"Node name for S&R": "Text Concatenate"
},
"widgets_values": [
"\\n",
"false"
]
},
{
"id": 37,
"type": "GeminiChat",
"pos": [
379.5642395019531,
-402.5009765625
],
"size": [
400,
472
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "api_instance",
"type": "GEMINI_API_INSTANCE",
"link": 35
},
{
"name": "content_part_1",
"shape": 7,
"type": "GEMINI_CONTENT_ITEM",
"link": null
},
{
"name": "content_part_2",
"shape": 7,
"type": "GEMINI_CONTENT_ITEM",
"link": null
},
{
"name": "content_part_3",
"shape": 7,
"type": "GEMINI_CONTENT_ITEM",
"link": null
},
{
"name": "user_prompt",
"type": "STRING",
"widget": {
"name": "user_prompt"
},
"link": 34
}
],
"outputs": [
{
"name": "response_text",
"type": "STRING",
"links": [
36
]
},
{
"name": "history_json_out",
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "aichat",
"ver": "5856d09e11bb764212ac38dcce57dd9f28258c78",
"Node name for S&R": "GeminiChat"
},
"widgets_values": [
"你好",
true,
true,
"你是一个善于写ai画图提示词的ai助手,擅长润色提示词,描述图片,并且可以把我输入的文本和输入的图片的特征结合起来润色,不要有多余的话,直接输出描述词,结合自然语言和danbooru tags详细描述,注意千万不要忘记自然语言",
"[]",
100000,
2,
0.95,
0,
-1,
2,
true
]
},
{
"id": 6,
"type": "GeminiApiLoader",
"pos": [
597.3652954101562,
-648.6920776367188
],
"size": [
270.8066101074219,
194.13333129882812
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "api_instance",
"type": "GEMINI_API_INSTANCE",
"links": [
35
]
}
],
"properties": {
"cnr_id": "aichat",
"ver": "5856d09e11bb764212ac38dcce57dd9f28258c78",
"Node name for S&R": "GeminiApiLoader",
"aux_id": "spawner1145/comfyui-aichat"
},
"widgets_values": [
"",
"gemini-2.0-flash-001",
"https://generativelanguage.googleapis.com",
"",
"",
180
]
}
],
"links": [
[
4,
9,
0,
8,
0,
"IMAGE"
],
[
6,
15,
0,
14,
0,
"STRING"
],
[
8,
14,
0,
17,
0,
"*"
],
[
13,
14,
0,
22,
1,
"STRING"
],
[
14,
20,
0,
22,
0,
"CLIP"
],
[
16,
23,
0,
24,
0,
"MODEL"
],
[
17,
22,
0,
24,
1,
"CONDITIONING"
],
[
18,
20,
0,
25,
0,
"CLIP"
],
[
19,
25,
0,
24,
2,
"CONDITIONING"
],
[
20,
26,
0,
24,
3,
"LATENT"
],
[
21,
24,
0,
27,
0,
"LATENT"
],
[
22,
21,
0,
27,
1,
"VAE"
],
[
23,
27,
0,
28,
0,
"IMAGE"
],
[
26,
18,
0,
30,
0,
"MODEL"
],
[
27,
30,
0,
23,
0,
"MODEL"
],
[
34,
10,
0,
37,
4,
"STRING"
],
[
35,
6,
0,
37,
0,
"GEMINI_API_INSTANCE"
],
[
36,
37,
0,
14,
1,
"STRING"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.8264462809917354,
"offset": [
-292.26948651600105,
772.1965452127354
]
},
"frontendVersion": "1.21.7"
},
"version": 0.4
}