Files
if-ai-ComfyUI-IF_Gemini/workflow/gemini_logo_two_step_process.json
2025-03-22 12:11:33 +00:00

1161 lines
22 KiB
JSON

{
"id": "8dda1723-ca90-4f72-b276-c1e573f6e189",
"revision": 0,
"last_node_id": 28,
"last_link_id": 62,
"nodes": [
{
"id": 9,
"type": "IF_LLM_DisplayText",
"pos": [
2514.3701171875,
323.2545166015625
],
"size": [
492.5460205078125,
315.4205627441406
],
"flags": {},
"order": 9,
"mode": 4,
"inputs": [
{
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": 44
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": null
},
{
"name": "text_list",
"shape": 6,
"type": "STRING",
"links": null
},
{
"name": "count",
"type": "INT",
"links": null
},
{
"name": "selected",
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-if_llm",
"ver": "5fa60d7bf5c0f6e225d568afd9f749e7cd3d8cc2",
"Node name for S&R": "IF_LLM_DisplayText"
},
"widgets_values": [
"",
0,
"\n0\nSuccessfully generated 5 images using gemini-2.0-flash-exp-image-generation.\nPrompt: make the exact same image on the first picture but the water-bottle has the CD logo from the second image printed on the watter-bottle camera facing side and is the only logo visible on the water-bottle\nStarting seed: 577653801\nResolution: 1024x1024"
]
},
{
"id": 13,
"type": "SaveImage",
"pos": [
3036.06201171875,
380.7844543457031
],
"size": [
315,
270
],
"flags": {},
"order": 11,
"mode": 4,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 46
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "SaveImage"
},
"widgets_values": [
"gemini_"
]
},
{
"id": 6,
"type": "PreviewImage",
"pos": [
2520.172119140625,
723.383056640625
],
"size": [
898.0060424804688,
802.2527465820312
],
"flags": {},
"order": 10,
"mode": 4,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 45
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 10,
"type": "ImageResizeKJ",
"pos": [
1626.810791015625,
1003.5028076171875
],
"size": [
315,
286
],
"flags": {
"collapsed": true
},
"order": 5,
"mode": 4,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 23
},
{
"name": "get_image_size",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "width_input",
"shape": 7,
"type": "INT",
"widget": {
"name": "width_input"
},
"link": null
},
{
"name": "height_input",
"shape": 7,
"type": "INT",
"widget": {
"name": "height_input"
},
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
24,
50
]
},
{
"name": "width",
"type": "INT",
"links": null
},
{
"name": "height",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "393ec896f75616098a8c8580a79e4e48d714b309",
"Node name for S&R": "ImageResizeKJ"
},
"widgets_values": [
1024,
1024,
"nearest-exact",
true,
2,
0,
0,
"center"
]
},
{
"id": 3,
"type": "ImageBatch",
"pos": [
1812.077880859375,
827.0700073242188
],
"size": [
210,
46
],
"flags": {},
"order": 7,
"mode": 4,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 49
},
{
"name": "image2",
"type": "IMAGE",
"link": 50
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
51
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "ImageBatch"
},
"widgets_values": []
},
{
"id": 18,
"type": "GeminiNode",
"pos": [
2078.726318359375,
445.76959228515625
],
"size": [
400,
606
],
"flags": {},
"order": 8,
"mode": 4,
"inputs": [
{
"name": "images",
"shape": 7,
"type": "IMAGE",
"link": 51
},
{
"name": "video",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "audio",
"shape": 7,
"type": "AUDIO",
"link": null
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
44
]
},
{
"name": "image",
"type": "IMAGE",
"links": [
45,
46
]
}
],
"properties": {
"aux_id": "if-ai/ComfyUI-IF_Gemini",
"ver": "93d7fc6e2b422f598e285462617baa7f933055d3",
"Node name for S&R": "GeminiNode"
},
"widgets_values": [
"make the exact same image on the first picture but the water-bottle has the CD logo from the second image printed on the watter-bottle camera facing side and is the only logo visible on the water-bottle",
"generate_images",
"gemini-2.0-flash-exp",
0.8,
1692918563,
"randomize",
5,
"none",
"",
false,
false,
false,
6,
8192,
false,
null,
null,
"✅ API key is valid. Successfully connected to Gemini API. (33 models available) (33 models available)"
]
},
{
"id": 21,
"type": "SaveImage",
"pos": [
3066.283935546875,
1789.742919921875
],
"size": [
315,
270
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 53
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "SaveImage"
},
"widgets_values": [
"gemini_",
""
]
},
{
"id": 22,
"type": "PreviewImage",
"pos": [
2550.39404296875,
2132.337158203125
],
"size": [
898.0060424804688,
802.2527465820312
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 54
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 20,
"type": "IF_LLM_DisplayText",
"pos": [
2544.592041015625,
1732.2130126953125
],
"size": [
492.5460205078125,
315.4205627441406
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": 52
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": null
},
{
"name": "text_list",
"shape": 6,
"type": "STRING",
"links": null
},
{
"name": "count",
"type": "INT",
"links": null
},
{
"name": "selected",
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-if_llm",
"ver": "5fa60d7bf5c0f6e225d568afd9f749e7cd3d8cc2",
"Node name for S&R": "IF_LLM_DisplayText"
},
"widgets_values": [
"",
0,
"Successfully generated 2 images using gemini-2.0-flash-exp-image-generation.\nPrompt: make the exact same image and woman on the first picture but instead of the earphone cable she is holding The water-bottle has the CD logo printed on the watter-bottle camera facing side.\nStarting seed: 463712258\nResolution: 816x1024"
]
},
{
"id": 4,
"type": "LoadImage",
"pos": [
1182.0596923828125,
466.7727355957031
],
"size": [
315,
314
],
"flags": {},
"order": 0,
"mode": 4,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
8
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"8355f6f509fc4dbbe5221a92428ef48b.jpg",
"image",
""
]
},
{
"id": 11,
"type": "LoadImage",
"pos": [
1170.4830322265625,
1022.7665405273438
],
"size": [
315,
314
],
"flags": {},
"order": 1,
"mode": 4,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
13,
23
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"White-7.png",
"image",
""
]
},
{
"id": 8,
"type": "ImageResizeKJ",
"pos": [
1635.2293701171875,
694.290771484375
],
"size": [
315,
286
],
"flags": {
"collapsed": true
},
"order": 4,
"mode": 4,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 8
},
{
"name": "get_image_size",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "width_input",
"shape": 7,
"type": "INT",
"widget": {
"name": "width_input"
},
"link": null
},
{
"name": "height_input",
"shape": 7,
"type": "INT",
"widget": {
"name": "height_input"
},
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
49
]
},
{
"name": "width",
"type": "INT",
"links": null
},
{
"name": "height",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "393ec896f75616098a8c8580a79e4e48d714b309",
"Node name for S&R": "ImageResizeKJ"
},
"widgets_values": [
1024,
1024,
"nearest-exact",
true,
2,
0,
0,
"disabled"
]
},
{
"id": 12,
"type": "ImageBatch",
"pos": [
1775.452392578125,
2154.351318359375
],
"size": [
210,
46
],
"flags": {
"collapsed": false
},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 21
},
{
"name": "image2",
"type": "IMAGE",
"link": 61
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
55
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "ImageBatch"
},
"widgets_values": []
},
{
"id": 7,
"type": "ImageResizeKJ",
"pos": [
1556.329345703125,
2091.871337890625
],
"size": [
315,
286
],
"flags": {
"collapsed": true
},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 6
},
{
"name": "get_image_size",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "width_input",
"shape": 7,
"type": "INT",
"widget": {
"name": "width_input"
},
"link": null
},
{
"name": "height_input",
"shape": 7,
"type": "INT",
"widget": {
"name": "height_input"
},
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
7,
21
]
},
{
"name": "width",
"type": "INT",
"links": null
},
{
"name": "height",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "393ec896f75616098a8c8580a79e4e48d714b309",
"Node name for S&R": "ImageResizeKJ"
},
"widgets_values": [
1024,
1024,
"nearest-exact",
true,
2,
0,
0,
"disabled"
]
},
{
"id": 28,
"type": "ImageResizeKJ",
"pos": [
1577.8043212890625,
2533.014404296875
],
"size": [
315,
286
],
"flags": {
"collapsed": true
},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 62
},
{
"name": "get_image_size",
"shape": 7,
"type": "IMAGE",
"link": 60
},
{
"name": "width_input",
"shape": 7,
"type": "INT",
"widget": {
"name": "width_input"
},
"link": null
},
{
"name": "height_input",
"shape": 7,
"type": "INT",
"widget": {
"name": "height_input"
},
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
61
]
},
{
"name": "width",
"type": "INT",
"links": null
},
{
"name": "height",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "393ec896f75616098a8c8580a79e4e48d714b309",
"Node name for S&R": "ImageResizeKJ"
},
"widgets_values": [
1024,
1024,
"nearest-exact",
true,
2,
0,
0,
"disabled"
]
},
{
"id": 2,
"type": "LoadImage",
"pos": [
1183.2177734375,
1943.1375732421875
],
"size": [
315,
314
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
6
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"9ec53809c81d9fc34304971a6f4303f0.jpg",
"image",
""
]
},
{
"id": 27,
"type": "LoadImage",
"pos": [
1186.3726806640625,
2332.367919921875
],
"size": [
315,
314
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
60,
62
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.26",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"gemini__00104_.png",
"image",
""
]
},
{
"id": 19,
"type": "GeminiNode",
"pos": [
2108.948486328125,
1854.7281494140625
],
"size": [
400,
606
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "images",
"shape": 7,
"type": "IMAGE",
"link": 55
},
{
"name": "video",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "audio",
"shape": 7,
"type": "AUDIO",
"link": null
}
],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
52
]
},
{
"name": "image",
"type": "IMAGE",
"links": [
53,
54
]
}
],
"properties": {
"aux_id": "if-ai/ComfyUI-IF_Gemini",
"ver": "93d7fc6e2b422f598e285462617baa7f933055d3",
"Node name for S&R": "GeminiNode"
},
"widgets_values": [
"make the exact same image and woman on the first picture but instead of the earphone cable she is holding The water-bottle has the CD logo printed on the watter-bottle camera facing side.",
"generate_images",
"gemini-2.0-flash-exp",
0.8,
1014373538,
"randomize",
2,
"none",
"",
false,
false,
false,
6,
8192,
false,
null,
null,
"✅ API key is valid. Successfully connected to Gemini API. (33 models available) (33 models available) (33 models available)"
]
}
],
"links": [
[
6,
2,
0,
7,
0,
"IMAGE"
],
[
8,
4,
0,
8,
0,
"IMAGE"
],
[
21,
7,
0,
12,
0,
"IMAGE"
],
[
23,
11,
0,
10,
0,
"IMAGE"
],
[
44,
18,
0,
9,
0,
"STRING"
],
[
45,
18,
1,
6,
0,
"IMAGE"
],
[
46,
18,
1,
13,
0,
"IMAGE"
],
[
49,
8,
0,
3,
0,
"IMAGE"
],
[
50,
10,
0,
3,
1,
"IMAGE"
],
[
51,
3,
0,
18,
0,
"IMAGE"
],
[
52,
19,
0,
20,
0,
"STRING"
],
[
53,
19,
1,
21,
0,
"IMAGE"
],
[
54,
19,
1,
22,
0,
"IMAGE"
],
[
55,
12,
0,
19,
0,
"IMAGE"
],
[
61,
28,
0,
12,
1,
"IMAGE"
],
[
62,
27,
0,
28,
0,
"IMAGE"
]
],
"groups": [
{
"id": 1,
"title": "1 Place Your LOGO on The Product and/or Place the talent and the product",
"bounding": [
1160.4830322265625,
207.65451049804688,
2267.6953125,
1327.981201171875
],
"color": "#444",
"font_size": 54,
"flags": {}
},
{
"id": 2,
"title": "Pipe both the results from the step above here",
"bounding": [
1151.28857421875,
1616.613037109375,
2307.1142578125,
1327.9796142578125
],
"color": "#444",
"font_size": 54,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.37190082644628447,
"offset": [
-500.5131961002872,
-327.7952555085527
]
},
"ue_links": [],
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0
},
"version": 0.4
}