Resolved an issue where Gemini API would not return images in 'generate' mode when an input image was present. The logic now only passes images in 'edit' or 'variation' modes. Fixed a bug where the ResolutionSelector's 'size' output was being overridden by a default 'aspect_ratio' in the Gemini config node. Updated presets and example workflows to align with these changes.
839 lines
15 KiB
JSON
839 lines
15 KiB
JSON
{
|
|
"id": "a277eea5-14e2-4695-8172-2182587aaac4",
|
|
"revision": 0,
|
|
"last_node_id": 132,
|
|
"last_link_id": 208,
|
|
"nodes": [
|
|
{
|
|
"id": 89,
|
|
"type": "LoadImage",
|
|
"pos": [
|
|
3071.18359375,
|
|
-889.6766357421875
|
|
],
|
|
"size": [
|
|
274.080078125,
|
|
314
|
|
],
|
|
"flags": {},
|
|
"order": 0,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
128
|
|
]
|
|
},
|
|
{
|
|
"name": "MASK",
|
|
"type": "MASK",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "LoadImage",
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.3.43"
|
|
},
|
|
"widgets_values": [
|
|
"comfydeploy_FAST_kontext_raw__00001_.png",
|
|
"image"
|
|
]
|
|
},
|
|
{
|
|
"id": 88,
|
|
"type": "ImageResizeKJv2",
|
|
"pos": [
|
|
3379.390869140625,
|
|
-892.050048828125
|
|
],
|
|
"size": [
|
|
270,
|
|
286
|
|
],
|
|
"flags": {},
|
|
"order": 7,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"link": 128
|
|
},
|
|
{
|
|
"name": "mask",
|
|
"shape": 7,
|
|
"type": "MASK",
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "width",
|
|
"type": "INT",
|
|
"widget": {
|
|
"name": "width"
|
|
},
|
|
"link": 129
|
|
},
|
|
{
|
|
"name": "height",
|
|
"type": "INT",
|
|
"widget": {
|
|
"name": "height"
|
|
},
|
|
"link": 130
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
144
|
|
]
|
|
},
|
|
{
|
|
"name": "width",
|
|
"type": "INT",
|
|
"links": null
|
|
},
|
|
{
|
|
"name": "height",
|
|
"type": "INT",
|
|
"links": null
|
|
},
|
|
{
|
|
"name": "mask",
|
|
"type": "MASK",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "ImageResizeKJv2",
|
|
"cnr_id": "comfyui-kjnodes",
|
|
"ver": "f9118e0bbb39347ea7becb84ec03e397dfb4f644"
|
|
},
|
|
"widgets_values": [
|
|
512,
|
|
512,
|
|
"nearest-exact",
|
|
"resize",
|
|
"0, 0, 0",
|
|
"center",
|
|
2,
|
|
"cpu"
|
|
]
|
|
},
|
|
{
|
|
"id": 110,
|
|
"type": "PreviewImage",
|
|
"pos": [
|
|
4940.9384765625,
|
|
-754.3715209960938
|
|
],
|
|
"size": [
|
|
140,
|
|
246
|
|
],
|
|
"flags": {},
|
|
"order": 13,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "images",
|
|
"type": "IMAGE",
|
|
"link": 179
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"properties": {
|
|
"Node name for S&R": "PreviewImage",
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.3.43"
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 109,
|
|
"type": "SaveImage",
|
|
"pos": [
|
|
4923.62109375,
|
|
-1092.3970947265625
|
|
],
|
|
"size": [
|
|
270,
|
|
270
|
|
],
|
|
"flags": {},
|
|
"order": 12,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "images",
|
|
"type": "IMAGE",
|
|
"link": 178
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"properties": {
|
|
"Node name for S&R": "SaveImage",
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.3.43"
|
|
},
|
|
"widgets_values": [
|
|
"ComfyUI"
|
|
]
|
|
},
|
|
{
|
|
"id": 74,
|
|
"type": "ImageBatch",
|
|
"pos": [
|
|
3699.639892578125,
|
|
-1034.2860107421875
|
|
],
|
|
"size": [
|
|
140,
|
|
46
|
|
],
|
|
"flags": {},
|
|
"order": 9,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "image1",
|
|
"type": "IMAGE",
|
|
"link": 143
|
|
},
|
|
{
|
|
"name": "image2",
|
|
"type": "IMAGE",
|
|
"link": 144
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"links": []
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "ImageBatch",
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.3.43"
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 129,
|
|
"type": "APIProviderSelectorNode",
|
|
"pos": [
|
|
3906.39111328125,
|
|
-1184.7598876953125
|
|
],
|
|
"size": [
|
|
333.0874938964844,
|
|
130
|
|
],
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "context",
|
|
"shape": 7,
|
|
"type": "*",
|
|
"link": null
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "context",
|
|
"type": "*",
|
|
"links": [
|
|
200
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "APIProviderSelectorNode"
|
|
},
|
|
"widgets_values": [
|
|
"gemini",
|
|
"gemini-2.5-flash-image-preview",
|
|
""
|
|
]
|
|
},
|
|
{
|
|
"id": 87,
|
|
"type": "ImageResizeKJv2",
|
|
"pos": [
|
|
3378.025390625,
|
|
-1260.79833984375
|
|
],
|
|
"size": [
|
|
270,
|
|
336
|
|
],
|
|
"flags": {},
|
|
"order": 6,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"link": 127
|
|
},
|
|
{
|
|
"name": "mask",
|
|
"shape": 7,
|
|
"type": "MASK",
|
|
"link": null
|
|
},
|
|
{
|
|
"name": "width",
|
|
"type": "INT",
|
|
"widget": {
|
|
"name": "width"
|
|
},
|
|
"link": 125
|
|
},
|
|
{
|
|
"name": "height",
|
|
"type": "INT",
|
|
"widget": {
|
|
"name": "height"
|
|
},
|
|
"link": 126
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
143,
|
|
205
|
|
]
|
|
},
|
|
{
|
|
"name": "width",
|
|
"type": "INT",
|
|
"links": null
|
|
},
|
|
{
|
|
"name": "height",
|
|
"type": "INT",
|
|
"links": null
|
|
},
|
|
{
|
|
"name": "mask",
|
|
"type": "MASK",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "ImageResizeKJv2",
|
|
"cnr_id": "comfyui-kjnodes",
|
|
"ver": "f9118e0bbb39347ea7becb84ec03e397dfb4f644"
|
|
},
|
|
"widgets_values": [
|
|
512,
|
|
512,
|
|
"nearest-exact",
|
|
"resize",
|
|
"0, 0, 0",
|
|
"center",
|
|
2,
|
|
"cpu"
|
|
]
|
|
},
|
|
{
|
|
"id": 130,
|
|
"type": "LLMPromptManager",
|
|
"pos": [
|
|
3986.377685546875,
|
|
-931.7740478515625
|
|
],
|
|
"size": [
|
|
175.29257202148438,
|
|
106
|
|
],
|
|
"flags": {},
|
|
"order": 8,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "context",
|
|
"shape": 7,
|
|
"type": "*",
|
|
"link": 200
|
|
},
|
|
{
|
|
"name": "context_1",
|
|
"type": "*",
|
|
"link": 208
|
|
},
|
|
{
|
|
"name": "context_2",
|
|
"type": "*",
|
|
"link": 202
|
|
},
|
|
{
|
|
"name": "context_3",
|
|
"type": "*",
|
|
"link": 205
|
|
},
|
|
{
|
|
"name": "context_4",
|
|
"type": "*",
|
|
"link": null
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "context",
|
|
"type": "*",
|
|
"links": [
|
|
206
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "LLMPromptManager"
|
|
},
|
|
"widgets_values": [],
|
|
"dynamicInputCount": 5
|
|
},
|
|
{
|
|
"id": 85,
|
|
"type": "LoadImage",
|
|
"pos": [
|
|
3069.818115234375,
|
|
-1258.4248046875
|
|
],
|
|
"size": [
|
|
274.080078125,
|
|
314
|
|
],
|
|
"flags": {},
|
|
"order": 2,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
127
|
|
]
|
|
},
|
|
{
|
|
"name": "MASK",
|
|
"type": "MASK",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "LoadImage",
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.3.43"
|
|
},
|
|
"widgets_values": [
|
|
"e3500ca3-9e05-4d0f-bab2-2dcf2f307222.jpg",
|
|
"image"
|
|
]
|
|
},
|
|
{
|
|
"id": 125,
|
|
"type": "ConfigGenerateImageGemini",
|
|
"pos": [
|
|
4403.9521484375,
|
|
-1179.435302734375
|
|
],
|
|
"size": [
|
|
464.0640563964844,
|
|
250
|
|
],
|
|
"flags": {},
|
|
"order": 10,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "context",
|
|
"shape": 7,
|
|
"type": "*",
|
|
"link": 206
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "context",
|
|
"type": "*",
|
|
"links": [
|
|
193
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "ConfigGenerateImageGemini",
|
|
"cnr_id": "llm-toolkit",
|
|
"ver": "1.0.2"
|
|
},
|
|
"widgets_values": [
|
|
1,
|
|
"1:1",
|
|
406723700484259,
|
|
"randomize",
|
|
"allow_adult",
|
|
"block_low_and_above",
|
|
"auto",
|
|
0.7,
|
|
8192
|
|
]
|
|
},
|
|
{
|
|
"id": 94,
|
|
"type": "ComfyUIDeployExternalText",
|
|
"pos": [
|
|
3884.633056640625,
|
|
-662.2379760742188
|
|
],
|
|
"size": [
|
|
395.5683898925781,
|
|
190
|
|
],
|
|
"flags": {},
|
|
"order": 3,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "text",
|
|
"type": "STRING",
|
|
"links": [
|
|
202
|
|
]
|
|
}
|
|
],
|
|
"title": "PROMPT",
|
|
"properties": {
|
|
"Node name for S&R": "ComfyUIDeployExternalText",
|
|
"cnr_id": "comfyui-deploy",
|
|
"ver": "b889f79baf9e099d5e54bd20bab4aa1e7c3296c0",
|
|
"widget_ue_connectable": {}
|
|
},
|
|
"widgets_values": [
|
|
"ACTION_MANUAL_PROMPT",
|
|
"",
|
|
"MANUA_PROMPT ",
|
|
"IF there is no OPENAI_API_KEY on the machine secrets. You will need to enter your full prompt and delete the AI_SYSTEM_PROMPT \n\nOtherwise you can use this to add a The Task to be preform by the model for example \"replace the cat from image1 with the dog on image2\" \n\nshe is wearing the same clothes but it has the logo on the swimsuit make sure it looks well integrated and part of the same material with the fabric and not just an overlay the logo should wrap with the swinsuit to the body of the model "
|
|
],
|
|
"color": "#232",
|
|
"bgcolor": "#353"
|
|
},
|
|
{
|
|
"id": 69,
|
|
"type": "ResolutionSelector",
|
|
"pos": [
|
|
3404.3935546875,
|
|
-502.5376281738281
|
|
],
|
|
"size": [
|
|
301.4302673339844,
|
|
214
|
|
],
|
|
"flags": {},
|
|
"order": 4,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "context",
|
|
"shape": 7,
|
|
"type": "*",
|
|
"link": null
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "width",
|
|
"type": "INT",
|
|
"links": [
|
|
125,
|
|
129
|
|
]
|
|
},
|
|
{
|
|
"name": "height",
|
|
"type": "INT",
|
|
"links": [
|
|
126,
|
|
130
|
|
]
|
|
},
|
|
{
|
|
"name": "size_string",
|
|
"type": "STRING",
|
|
"links": null
|
|
},
|
|
{
|
|
"name": "context",
|
|
"type": "*",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "ResolutionSelector",
|
|
"cnr_id": "llm-toolkit",
|
|
"ver": "1.0.2"
|
|
},
|
|
"widgets_values": [
|
|
"I2V720p",
|
|
"Horizontal",
|
|
"HQ",
|
|
false,
|
|
128
|
|
]
|
|
},
|
|
{
|
|
"id": 120,
|
|
"type": "GenerateImage",
|
|
"pos": [
|
|
4420.8466796875,
|
|
-856.208984375
|
|
],
|
|
"size": [
|
|
426.96319580078125,
|
|
340
|
|
],
|
|
"flags": {},
|
|
"order": 11,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "context",
|
|
"shape": 7,
|
|
"type": "*",
|
|
"link": 193
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "context",
|
|
"type": "*",
|
|
"links": null
|
|
},
|
|
{
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
178,
|
|
179
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "GenerateImage",
|
|
"cnr_id": "llm-toolkit",
|
|
"ver": "1.0.2"
|
|
},
|
|
"widgets_values": [
|
|
"",
|
|
"generate"
|
|
]
|
|
},
|
|
{
|
|
"id": 132,
|
|
"type": "BananaTaskGenerator",
|
|
"pos": [
|
|
3898.952392578125,
|
|
-1339.345458984375
|
|
],
|
|
"size": [
|
|
373.5562438964844,
|
|
102
|
|
],
|
|
"flags": {},
|
|
"order": 5,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "context",
|
|
"shape": 7,
|
|
"type": "*",
|
|
"link": null
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "context",
|
|
"type": "*",
|
|
"links": null
|
|
},
|
|
{
|
|
"name": "system_prompt",
|
|
"type": "STRING",
|
|
"links": [
|
|
208
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "BananaTaskGenerator"
|
|
},
|
|
"widgets_values": [
|
|
"1 Background & Outfit Replace",
|
|
false
|
|
]
|
|
}
|
|
],
|
|
"links": [
|
|
[
|
|
125,
|
|
69,
|
|
0,
|
|
87,
|
|
2,
|
|
"INT"
|
|
],
|
|
[
|
|
126,
|
|
69,
|
|
1,
|
|
87,
|
|
3,
|
|
"INT"
|
|
],
|
|
[
|
|
127,
|
|
85,
|
|
0,
|
|
87,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
128,
|
|
89,
|
|
0,
|
|
88,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
129,
|
|
69,
|
|
0,
|
|
88,
|
|
2,
|
|
"INT"
|
|
],
|
|
[
|
|
130,
|
|
69,
|
|
1,
|
|
88,
|
|
3,
|
|
"INT"
|
|
],
|
|
[
|
|
143,
|
|
87,
|
|
0,
|
|
74,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
144,
|
|
88,
|
|
0,
|
|
74,
|
|
1,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
178,
|
|
120,
|
|
1,
|
|
109,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
179,
|
|
120,
|
|
1,
|
|
110,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
193,
|
|
125,
|
|
0,
|
|
120,
|
|
0,
|
|
"*"
|
|
],
|
|
[
|
|
200,
|
|
129,
|
|
0,
|
|
130,
|
|
0,
|
|
"*"
|
|
],
|
|
[
|
|
202,
|
|
94,
|
|
0,
|
|
130,
|
|
2,
|
|
"*"
|
|
],
|
|
[
|
|
205,
|
|
87,
|
|
0,
|
|
130,
|
|
3,
|
|
"*"
|
|
],
|
|
[
|
|
206,
|
|
130,
|
|
0,
|
|
125,
|
|
0,
|
|
"*"
|
|
],
|
|
[
|
|
208,
|
|
132,
|
|
1,
|
|
130,
|
|
1,
|
|
"*"
|
|
]
|
|
],
|
|
"groups": [],
|
|
"config": {},
|
|
"extra": {
|
|
"ds": {
|
|
"scale": 0.7430526079249438,
|
|
"offset": [
|
|
-3691.3167554977726,
|
|
1505.7159901127682
|
|
]
|
|
},
|
|
"frontendVersion": "1.25.11",
|
|
"VHS_latentpreview": false,
|
|
"VHS_latentpreviewrate": 0,
|
|
"VHS_MetadataImage": true,
|
|
"VHS_KeepIntermediate": true
|
|
},
|
|
"version": 0.4
|
|
} |