Files
chflame163-ComfyUI_LayerStyle/workflow/flux_kontext_image_scale_example.json

1077 lines
19 KiB
JSON

{
"id": "17a8a195-409f-4bb8-bacd-3a41129dd6f8",
"revision": 0,
"last_node_id": 42,
"last_link_id": 73,
"nodes": [
{
"id": 28,
"type": "LoraLoaderModelOnly",
"pos": [
-17.80111312866211,
-58.57435607910156
],
"size": [
270,
82
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 42
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
73
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.49",
"Node name for S&R": "LoraLoaderModelOnly",
"widget_ue_connectable": {}
},
"widgets_values": [
"FLUX\\place_it.safetensors",
1
]
},
{
"id": 9,
"type": "VAEEncode",
"pos": [
303.57940673828125,
-50.931678771972656
],
"size": [
347.6623229980469,
51.76839828491211
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 41
},
{
"name": "vae",
"type": "VAE",
"link": 9
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
10,
26
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.49",
"Node name for S&R": "VAEEncode",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 21,
"type": "ReferenceLatent",
"pos": [
310.52520751953125,
62.663326263427734
],
"size": [
337.54339599609375,
46
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"label": "conditioning",
"name": "conditioning",
"type": "CONDITIONING",
"link": 72
},
{
"label": "latent",
"name": "latent",
"shape": 7,
"type": "LATENT",
"link": 26
}
],
"outputs": [
{
"label": "CONDITIONING",
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
25
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.41",
"Node name for S&R": "ReferenceLatent",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 20,
"type": "FluxGuidance",
"pos": [
308.4091796875,
173.7793426513672
],
"size": [
340.94696044921875,
58
],
"flags": {
"collapsed": false
},
"order": 13,
"mode": 0,
"inputs": [
{
"label": "conditioning",
"name": "conditioning",
"type": "CONDITIONING",
"link": 25
}
],
"outputs": [
{
"label": "CONDITIONING",
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
28
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.38",
"Node name for S&R": "FluxGuidance",
"widget_ue_connectable": {}
},
"widgets_values": [
50
]
},
{
"id": 8,
"type": "ConditioningZeroOut",
"pos": [
306.3799133300781,
304.73785400390625
],
"size": [
340.96148681640625,
36.57545471191406
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 71
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
7
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.49",
"Node name for S&R": "ConditioningZeroOut",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 41,
"type": "CLIPTextEncode",
"pos": [
297.09716796875,
-206.86900329589844
],
"size": [
355.5055847167969,
88
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 69
},
{
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": 70
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
71,
72
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.49",
"Node name for S&R": "CLIPTextEncode",
"widget_ue_connectable": {}
},
"widgets_values": [
""
]
},
{
"id": 11,
"type": "VAEDecode",
"pos": [
730.989501953125,
162.04112243652344
],
"size": [
304.3993225097656,
46.961341857910156
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 11
},
{
"name": "vae",
"type": "VAE",
"link": 12
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
14
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.49",
"Node name for S&R": "VAEDecode",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 5,
"type": "DualCLIPLoader",
"pos": [
-19.58243751525879,
90.00677490234375
],
"size": [
270,
130
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
69
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.49",
"Node name for S&R": "DualCLIPLoader",
"widget_ue_connectable": {}
},
"widgets_values": [
"clip_l.safetensors",
"t5xxl_fp8_e4m3fn.safetensors",
"flux",
"default"
]
},
{
"id": 10,
"type": "VAELoader",
"pos": [
-21.975021362304688,
300.17755126953125
],
"size": [
270,
58
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
9,
12
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.49",
"Node name for S&R": "VAELoader",
"widget_ue_connectable": {}
},
"widgets_values": [
"ae.safetensors"
]
},
{
"id": 30,
"type": "LayerUtility: HLFrequencyDetailRestore",
"pos": [
1083.7076416015625,
413.8388977050781
],
"size": [
374.4665222167969,
146
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 45
},
{
"name": "detail_image",
"type": "IMAGE",
"link": 67
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": 48
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
50
]
}
],
"properties": {
"cnr_id": "comfyui_layerstyle",
"ver": "3bfe8e435d167b4a5bf08716729f89802dbbaa6f",
"Node name for S&R": "LayerUtility: HLFrequencyDetailRestore",
"widget_ue_connectable": {}
},
"widgets_values": [
12,
15,
8
],
"color": "rgba(38, 73, 116, 0.7)"
},
{
"id": 31,
"type": "LayerMask: RmBgUltra V2",
"pos": [
742.0260009765625,
319.22894287109375
],
"size": [
270,
246
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 46
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": null
},
{
"name": "mask",
"type": "MASK",
"links": [
47
]
}
],
"properties": {
"cnr_id": "comfyui_layerstyle",
"ver": "3bfe8e435d167b4a5bf08716729f89802dbbaa6f",
"Node name for S&R": "LayerMask: RmBgUltra V2",
"widget_ue_connectable": {}
},
"widgets_values": [
"VITMatte",
6,
6,
0.01,
0.99,
true,
"cuda",
2
],
"color": "rgba(27, 80, 119, 0.7)"
},
{
"id": 13,
"type": "LayerUtility: ImageMaskScaleAs",
"pos": [
1079.2330322265625,
175.00967407226562
],
"size": [
375.1475524902344,
162
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "scale_as",
"type": "*",
"link": 68
},
{
"name": "image",
"shape": 7,
"type": "IMAGE",
"link": 14
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": 47
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
45
]
},
{
"name": "mask",
"type": "MASK",
"links": [
48
]
},
{
"name": "original_size",
"type": "BOX",
"links": null
},
{
"name": "widht",
"type": "INT",
"links": null
},
{
"name": "height",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui_layerstyle",
"ver": "3bfe8e435d167b4a5bf08716729f89802dbbaa6f",
"Node name for S&R": "LayerUtility: ImageMaskScaleAs",
"widget_ue_connectable": {}
},
"widgets_values": [
"fill",
"lanczos"
],
"color": "rgba(38, 73, 116, 0.7)"
},
{
"id": 1,
"type": "LoadImage",
"pos": [
-646.9412231445312,
116.6576919555664
],
"size": [
578.5219116210938,
473.2365417480469
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
65
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.49",
"Node name for S&R": "LoadImage",
"widget_ue_connectable": {}
},
"widgets_values": [
"3840x2160car.jpg",
"image"
]
},
{
"id": 17,
"type": "LayerUtility: TextBox",
"pos": [
-637.3195190429688,
-99.51028442382812
],
"size": [
566.2235717773438,
140.89805603027344
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "text",
"type": "STRING",
"links": [
70
]
}
],
"properties": {
"cnr_id": "comfyui_layerstyle",
"ver": "3bfe8e435d167b4a5bf08716729f89802dbbaa6f",
"Node name for S&R": "LayerUtility: TextBox",
"widget_ue_connectable": {}
},
"widgets_values": [
"keep the car unchanged, change background to the beach by seaside under sunset."
],
"color": "rgba(38, 73, 116, 0.7)"
},
{
"id": 4,
"type": "UNETLoader",
"pos": [
-18.297779083251953,
-198.78343200683594
],
"size": [
270,
82
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
42
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.49",
"Node name for S&R": "UNETLoader",
"widget_ue_connectable": {}
},
"widgets_values": [
"flux1-kontext-dev.safetensors",
"default"
]
},
{
"id": 26,
"type": "LayerUtility: FluxKontextImageScale",
"pos": [
-24.581323623657227,
432.82769775390625
],
"size": [
276.4439392089844,
58
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 66
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
41,
46
]
}
],
"properties": {
"cnr_id": "comfyui_layerstyle",
"ver": "3bfe8e435d167b4a5bf08716729f89802dbbaa6f",
"Node name for S&R": "LayerUtility: FluxKontextImageScale",
"widget_ue_connectable": {}
},
"widgets_values": [
"lanczos"
],
"color": "rgba(38, 73, 116, 0.7)"
},
{
"id": 40,
"type": "LayerUtility: AnyRerouter",
"pos": [
-10.951801300048828,
558.4566040039062
],
"size": [
199.40292358398438,
26
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "any",
"type": "*",
"link": 65
}
],
"outputs": [
{
"name": "any",
"type": "*",
"links": [
66,
67,
68
]
}
],
"properties": {
"cnr_id": "comfyui_layerstyle",
"ver": "3bfe8e435d167b4a5bf08716729f89802dbbaa6f",
"Node name for S&R": "LayerUtility: AnyRerouter",
"widget_ue_connectable": {}
},
"widgets_values": [],
"color": "rgba(38, 73, 116, 0.7)"
},
{
"id": 32,
"type": "SaveImage",
"pos": [
1494.10205078125,
-62.38972473144531
],
"size": [
980.12255859375,
619.531494140625
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 50
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.49",
"Node name for S&R": "SaveImage",
"widget_ue_connectable": {}
},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 3,
"type": "KSampler",
"pos": [
725.9898071289062,
-218.16043090820312
],
"size": [
317.342529296875,
293.0753173828125
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 73
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 28
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 7
},
{
"name": "latent_image",
"type": "LATENT",
"link": 10
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
11
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.49",
"Node name for S&R": "KSampler",
"widget_ue_connectable": {}
},
"widgets_values": [
731480123513,
"randomize",
20,
1,
"euler",
"simple",
1
]
}
],
"links": [
[
7,
8,
0,
3,
2,
"CONDITIONING"
],
[
9,
10,
0,
9,
1,
"VAE"
],
[
10,
9,
0,
3,
3,
"LATENT"
],
[
11,
3,
0,
11,
0,
"LATENT"
],
[
12,
10,
0,
11,
1,
"VAE"
],
[
14,
11,
0,
13,
1,
"IMAGE"
],
[
25,
21,
0,
20,
0,
"CONDITIONING"
],
[
26,
9,
0,
21,
1,
"LATENT"
],
[
28,
20,
0,
3,
1,
"CONDITIONING"
],
[
41,
26,
0,
9,
0,
"IMAGE"
],
[
42,
4,
0,
28,
0,
"MODEL"
],
[
45,
13,
0,
30,
0,
"IMAGE"
],
[
46,
26,
0,
31,
0,
"IMAGE"
],
[
47,
31,
1,
13,
2,
"MASK"
],
[
48,
13,
1,
30,
2,
"MASK"
],
[
50,
30,
0,
32,
0,
"IMAGE"
],
[
65,
1,
0,
40,
0,
"*"
],
[
66,
40,
0,
26,
0,
"IMAGE"
],
[
67,
40,
0,
30,
1,
"IMAGE"
],
[
68,
40,
0,
13,
0,
"*"
],
[
69,
5,
0,
41,
0,
"CLIP"
],
[
70,
17,
0,
41,
1,
"STRING"
],
[
71,
41,
0,
8,
0,
"CONDITIONING"
],
[
72,
41,
0,
21,
0,
"CONDITIONING"
],
[
73,
28,
0,
3,
0,
"MODEL"
]
],
"groups": [],
"config": {},
"extra": {
"ue_links": [],
"ds": {
"scale": 0.8390545288824324,
"offset": [
873.5773362996304,
500.3508750762262
]
},
"links_added_by_ue": [],
"frontendVersion": "1.24.4",
"VHS_latentpreview": true,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}