ComfyUI/user/default/workflows/2 image merge.json
2025-01-15 15:24:05 +09:00

1547 lines
27 KiB
JSON

{
"last_node_id": 79,
"last_link_id": 168,
"nodes": [
{
"id": 11,
"type": "DualCLIPLoader",
"pos": [
-10,
250
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
44
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "DualCLIPLoader"
},
"widgets_values": [
"t5xxl_fp8_e4m3fn.safetensors",
"clip_l.safetensors",
"flux"
]
},
{
"id": 48,
"type": "Florence2Run",
"pos": [
-40,
750
],
"size": {
"0": 400,
"1": 352.0000305175781
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 131
},
{
"name": "florence2_model",
"type": "FL2MODEL",
"link": 82,
"slot_index": 1
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [],
"slot_index": 0,
"shape": 3
},
{
"name": "mask",
"type": "MASK",
"links": [],
"slot_index": 1,
"shape": 3
},
{
"name": "caption",
"type": "STRING",
"links": [
147
],
"slot_index": 2,
"shape": 3
},
{
"name": "data",
"type": "JSON",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Florence2Run"
},
"widgets_values": [
"",
"more_detailed_caption",
true,
false,
1024,
3,
true,
"",
881432741415411,
"randomize"
]
},
{
"id": 70,
"type": "GetImageSizeAndCount",
"pos": [
-1102.8719495711293,
993.5640557320137
],
"size": {
"0": 210,
"1": 86
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 136
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [],
"slot_index": 0,
"shape": 3
},
{
"name": "512 width",
"type": "INT",
"links": [
138
],
"slot_index": 1,
"shape": 3
},
{
"name": "512 height",
"type": "INT",
"links": [
139
],
"slot_index": 2,
"shape": 3
},
{
"name": "1 count",
"type": "INT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "GetImageSizeAndCount"
}
},
{
"id": 71,
"type": "ImageResizeKJ",
"pos": [
-789,
227
],
"size": {
"0": 315,
"1": 266
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 137
},
{
"name": "get_image_size",
"type": "IMAGE",
"link": null
},
{
"name": "width_input",
"type": "INT",
"link": 138,
"widget": {
"name": "width_input"
}
},
{
"name": "height_input",
"type": "INT",
"link": 139,
"widget": {
"name": "height_input"
}
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
140
],
"slot_index": 0,
"shape": 3
},
{
"name": "width",
"type": "INT",
"links": null,
"shape": 3
},
{
"name": "height",
"type": "INT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ImageResizeKJ"
},
"widgets_values": [
512,
512,
"lanczos",
true,
2,
0,
0,
"disabled"
]
},
{
"id": 68,
"type": "BRIAAI Matting",
"pos": [
-770,
563
],
"size": {
"0": 315,
"1": 150
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "video_frames",
"type": "IMAGE",
"link": 140
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
128
],
"slot_index": 0,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": [
129
],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "BRIAAI Matting"
},
"widgets_values": [
"v1.4",
true,
"green",
4
]
},
{
"id": 67,
"type": "ImageComposite+",
"pos": [
-770,
802
],
"size": {
"0": 315,
"1": 170
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "destination",
"type": "IMAGE",
"link": 125
},
{
"name": "source",
"type": "IMAGE",
"link": 128
},
{
"name": "mask",
"type": "MASK",
"link": 129
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
131,
144,
145,
166
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ImageComposite+"
},
"widgets_values": [
0,
0,
0,
0
]
},
{
"id": 69,
"type": "PreviewImage",
"pos": [
-428,
233
],
"size": {
"0": 267.8894958496094,
"1": 306.208740234375
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 145
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 31,
"type": "CLIPTextEncode",
"pos": [
535.4531894730959,
610
],
"size": {
"0": 400,
"1": 200
},
"flags": {
"collapsed": true
},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 44
},
{
"name": "text",
"type": "STRING",
"link": 93,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
141
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"The image is a close-up portrait of a young woman with blonde hair. She is facing away from the camera, with her head turned slightly to the side. Her hair is styled in a short, layered bob with bangs framing her face. She has a slight smile on her lips and her eyes are looking off to the left side of the image. The woman is wearing a blue long-sleeved shirt with a pocket on the front. The background is a plain white wall. The lighting is soft and natural, highlighting the woman's features."
]
},
{
"id": 72,
"type": "FluxGuidance",
"pos": [
912.3909483701659,
120
],
"size": {
"0": 317.4000244140625,
"1": 58
},
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 141
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
142
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "FluxGuidance"
},
"widgets_values": [
6.2
]
},
{
"id": 22,
"type": "BasicGuider",
"pos": [
912.3909483701659,
250
],
"size": {
"0": 241.79998779296875,
"1": 46
},
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 95,
"slot_index": 0
},
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 142,
"slot_index": 1
}
],
"outputs": [
{
"name": "GUIDER",
"type": "GUIDER",
"links": [
30
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "BasicGuider"
}
},
{
"id": 25,
"type": "RandomNoise",
"pos": [
912.3909483701659,
360
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "NOISE",
"type": "NOISE",
"links": [
37
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "RandomNoise"
},
"widgets_values": [
887282484816800,
"fixed"
]
},
{
"id": 13,
"type": "SamplerCustomAdvanced",
"pos": [
1440,
80
],
"size": {
"0": 355.20001220703125,
"1": 106
},
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "noise",
"type": "NOISE",
"link": 37,
"slot_index": 0
},
{
"name": "guider",
"type": "GUIDER",
"link": 30,
"slot_index": 1
},
{
"name": "sampler",
"type": "SAMPLER",
"link": 19,
"slot_index": 2
},
{
"name": "sigmas",
"type": "SIGMAS",
"link": 20,
"slot_index": 3
},
{
"name": "latent_image",
"type": "LATENT",
"link": 133,
"slot_index": 4
}
],
"outputs": [
{
"name": "output",
"type": "LATENT",
"links": [
167
],
"slot_index": 0,
"shape": 3
},
{
"name": "denoised_output",
"type": "LATENT",
"links": null,
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "SamplerCustomAdvanced"
}
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1830,
80
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 167
},
{
"name": "vae",
"type": "VAE",
"link": 12
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
143,
168
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 27,
"type": "Image Save",
"pos": [
2150,
80
],
"size": {
"0": 315,
"1": 626
},
"flags": {},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 168
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": null,
"shape": 3
},
{
"name": "files",
"type": "STRING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Image Save"
},
"widgets_values": [
"D:\\gophoto.co.il\\tutorials\\2024\\comfyui\\flux_IMG2IMG",
"ComfyUI",
"_",
4,
"false",
"png",
300,
100,
"true",
"false",
"false",
"false",
"true",
"true",
"true"
]
},
{
"id": 49,
"type": "DownloadAndLoadFlorence2Model",
"pos": [
-36,
599
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "lora",
"type": "PEFTLORA",
"link": null
}
],
"outputs": [
{
"name": "florence2_model",
"type": "FL2MODEL",
"links": [
82
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "DownloadAndLoadFlorence2Model"
},
"widgets_values": [
"microsoft/Florence-2-base",
"fp16",
"sdpa"
]
},
{
"id": 54,
"type": "VAEEncode",
"pos": [
491,
739
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 166
},
{
"name": "vae",
"type": "VAE",
"link": 110
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
133
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAEEncode"
}
},
{
"id": 16,
"type": "KSamplerSelect",
"pos": [
910.3909483701659,
518
],
"size": {
"0": 317.27618408203125,
"1": 58
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
19
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"euler"
]
},
{
"id": 62,
"type": "ModelSamplingFlux",
"pos": [
913.3909483701659,
834
],
"size": {
"0": 315,
"1": 130
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 164
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
122
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ModelSamplingFlux"
},
"widgets_values": [
1.06,
0,
1024,
1024
]
},
{
"id": 52,
"type": "ShowText|pysssss",
"pos": [
515.4531894730959,
360
],
"size": {
"0": 301.8637390136719,
"1": 194.23951721191406
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 165,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
93
],
"slot_index": 0,
"shape": 6
}
],
"properties": {
"Node name for S&R": "ShowText|pysssss"
},
"widgets_values": [
[
"sharp photo of a portrait of a young woman with blonde hair tied up in a high bun. She is standing in a body of water surrounded by lush greenery and trees. The woman is facing away from the camera, with her head tilted slightly to the side and her eyes closed. Her hand is resting on her chin, as if she is deep in thought or contemplating something. The lighting is soft and natural, creating a dreamy and ethereal atmosphere. The overall mood of the image is peaceful and serene."
],
"sharp photo of a cartoon illustration of an owl in a shopping mall. The owl is standing on its hind legs and is holding a red shopping bag with the words \"Not Got\" written on it. It has a big smile on its face and is wearing a red scarf around its neck. The background of the image shows the interior of the mall with clothes hanging on racks and a pink awning."
]
},
{
"id": 17,
"type": "BasicScheduler",
"pos": [
911.3909483701659,
644
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 122,
"slot_index": 0
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
20
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "BasicScheduler"
},
"widgets_values": [
"simple",
4,
0.62
]
},
{
"id": 56,
"type": "Text Find and Replace",
"pos": [
495.45318947309556,
120
],
"size": {
"0": 317.4000244140625,
"1": 166
},
"flags": {
"collapsed": false
},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 147,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "result_text",
"type": "STRING",
"links": [
165
],
"slot_index": 0,
"shape": 3
},
{
"name": "replacement_count_number",
"type": "NUMBER",
"links": null,
"shape": 3
},
{
"name": "replacement_count_float",
"type": "FLOAT",
"links": null,
"shape": 3
},
{
"name": "replacement_count_int",
"type": "INT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Text Find and Replace"
},
"widgets_values": [
"",
"The image is",
"sharp photo of"
]
},
{
"id": 63,
"type": "LoadImage",
"pos": [
-1132.8719495711293,
223.56405573201383
],
"size": {
"0": 295.57122802734375,
"1": 335.0826416015625
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
137
],
"slot_index": 0,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"AnimateDiff_00003.png",
"image"
]
},
{
"id": 12,
"type": "UNETLoader",
"pos": [
-10,
120
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
95,
164
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"flux/flux1-schnell.safetensors",
"default"
]
},
{
"id": 10,
"type": "VAELoader",
"pos": [
-10,
420
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 6,
"mode": 0,
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
12,
110
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"flux_schnell/ae.safetensors"
]
},
{
"id": 64,
"type": "LoadImage",
"pos": [
-1132.8719495711293,
613.5640557320137
],
"size": {
"0": 315,
"1": 314
},
"flags": {},
"order": 7,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
125,
136
],
"slot_index": 0,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"ComfyUI_temp_urtnj_00005_.png",
"image"
]
},
{
"id": 73,
"type": "Image Comparer (rgthree)",
"pos": {
"0": 1484,
"1": 285,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 652.7217407226562,
"1": 488.5644226074219
},
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "image_a",
"type": "IMAGE",
"link": 143,
"dir": 3
},
{
"name": "image_b",
"type": "IMAGE",
"link": 144,
"dir": 3
}
],
"outputs": [],
"properties": {
"comparer_mode": "Slide"
},
"widgets_values": [
[
{
"name": "A",
"selected": true,
"url": "/api/view?filename=rgthree.compare._temp_xidxh_00003_.png&type=temp&subfolder=&rand=0.5475700618847845"
},
{
"name": "B",
"selected": true,
"url": "/api/view?filename=rgthree.compare._temp_xidxh_00004_.png&type=temp&subfolder=&rand=0.0702364740528032"
}
]
]
}
],
"links": [
[
12,
10,
0,
8,
1,
"VAE"
],
[
19,
16,
0,
13,
2,
"SAMPLER"
],
[
20,
17,
0,
13,
3,
"SIGMAS"
],
[
30,
22,
0,
13,
1,
"GUIDER"
],
[
37,
25,
0,
13,
0,
"NOISE"
],
[
44,
11,
0,
31,
0,
"CLIP"
],
[
82,
49,
0,
48,
1,
"FL2MODEL"
],
[
93,
52,
0,
31,
1,
"STRING"
],
[
95,
12,
0,
22,
0,
"MODEL"
],
[
110,
10,
0,
54,
1,
"VAE"
],
[
122,
62,
0,
17,
0,
"MODEL"
],
[
125,
64,
0,
67,
0,
"IMAGE"
],
[
128,
68,
0,
67,
1,
"IMAGE"
],
[
129,
68,
1,
67,
2,
"MASK"
],
[
131,
67,
0,
48,
0,
"IMAGE"
],
[
133,
54,
0,
13,
4,
"LATENT"
],
[
136,
64,
0,
70,
0,
"IMAGE"
],
[
137,
63,
0,
71,
0,
"IMAGE"
],
[
138,
70,
1,
71,
2,
"INT"
],
[
139,
70,
2,
71,
3,
"INT"
],
[
140,
71,
0,
68,
0,
"IMAGE"
],
[
141,
31,
0,
72,
0,
"CONDITIONING"
],
[
142,
72,
0,
22,
1,
"CONDITIONING"
],
[
143,
8,
0,
73,
0,
"IMAGE"
],
[
144,
67,
0,
73,
1,
"IMAGE"
],
[
145,
67,
0,
69,
0,
"IMAGE"
],
[
147,
48,
2,
56,
0,
"STRING"
],
[
164,
12,
0,
62,
0,
"MODEL"
],
[
165,
56,
0,
52,
0,
"STRING"
],
[
166,
67,
0,
54,
0,
"IMAGE"
],
[
167,
13,
0,
8,
0,
"LATENT"
],
[
168,
8,
0,
27,
0,
"IMAGE"
]
],
"groups": [
{
"title": "Group",
"bounding": [
-63,
520,
491,
618
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Group",
"bounding": [
-1167,
136,
1029,
999
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Group",
"bounding": [
-62,
58,
409,
440
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Group",
"bounding": [
473,
65,
357,
595
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Group",
"bounding": [
885,
65,
378,
942
],
"color": "#3f789e",
"font_size": 24,
"locked": false
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.620921323059155,
"offset": [
1093.872230921955,
35.617383047401596
]
}
},
"version": 0.4
}