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

863 lines
14 KiB
JSON

{
"last_node_id": 52,
"last_link_id": 107,
"nodes": [
{
"id": 28,
"type": "ModelSamplingFlux",
"pos": [
750,
330
],
"size": {
"0": 210,
"1": 122
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 85
},
{
"name": "width",
"type": "INT",
"link": 98,
"widget": {
"name": "width"
}
},
{
"name": "height",
"type": "INT",
"link": 99,
"widget": {
"name": "height"
}
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
71,
84
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ModelSamplingFlux"
},
"widgets_values": [
1.1500000000000001,
0.5,
1024,
1024
]
},
{
"id": 16,
"type": "KSamplerSelect",
"pos": [
1060,
330
],
"size": {
"0": 219.2825164794922,
"1": 58
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
19
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"euler"
]
},
{
"id": 29,
"type": "FluxGuidance",
"pos": [
760,
140
],
"size": {
"0": 211.60000610351562,
"1": 58
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 42
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
43
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "FluxGuidance"
},
"widgets_values": [
3.5
]
},
{
"id": 22,
"type": "BasicGuider",
"pos": [
1100,
210
],
"size": {
"0": 161.1999969482422,
"1": 46
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 84,
"slot_index": 0
},
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 43,
"slot_index": 1
}
],
"outputs": [
{
"name": "GUIDER",
"type": "GUIDER",
"links": [
30
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "BasicGuider"
}
},
{
"id": 13,
"type": "SamplerCustomAdvanced",
"pos": [
1410,
270
],
"size": {
"0": 236.8000030517578,
"1": 106
},
"flags": {},
"order": 14,
"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": 83,
"slot_index": 3
},
{
"name": "latent_image",
"type": "LATENT",
"link": 107,
"slot_index": 4
}
],
"outputs": [
{
"name": "output",
"type": "LATENT",
"links": [],
"slot_index": 0,
"shape": 3
},
{
"name": "denoised_output",
"type": "LATENT",
"links": [
102
],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "SamplerCustomAdvanced"
}
},
{
"id": 48,
"type": "SDXLEmptyLatentSizePicker+",
"pos": [
260,
470
],
"size": {
"0": 268.79998779296875,
"1": 170
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [],
"slot_index": 0,
"shape": 3
},
{
"name": "width",
"type": "INT",
"links": [
98
],
"slot_index": 1,
"shape": 3
},
{
"name": "height",
"type": "INT",
"links": [
99
],
"slot_index": 2,
"shape": 3
}
],
"properties": {
"Node name for S&R": "SDXLEmptyLatentSizePicker+"
},
"widgets_values": [
"1024x1024 (1.0)",
1,
0,
0
]
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1730,
289
],
"size": {
"0": 140,
"1": 46
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 102
},
{
"name": "vae",
"type": "VAE",
"link": 12
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
96
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 26,
"type": "PreviewImage",
"pos": [
1742,
405
],
"size": {
"0": 1157.1278076171875,
"1": 1167.19970703125
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 96
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 52,
"type": "VAEEncode",
"pos": [
1078,
617
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 104
},
{
"name": "vae",
"type": "VAE",
"link": 105
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
107
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAEEncode"
}
},
{
"id": 51,
"type": "ImageScale",
"pos": [
738,
620
],
"size": {
"0": 210,
"1": 130
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 103
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
104
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ImageScale"
},
"widgets_values": [
"lanczos",
1024,
1024,
"disabled"
]
},
{
"id": 25,
"type": "RandomNoise",
"pos": [
1060,
60
],
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "NOISE",
"type": "NOISE",
"links": [
37
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "RandomNoise"
},
"widgets_values": [
6,
"fixed"
]
},
{
"id": 17,
"type": "BasicScheduler",
"pos": [
1070,
450
],
"size": {
"0": 210,
"1": 106
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 71,
"slot_index": 0
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
83
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "BasicScheduler"
},
"widgets_values": [
"simple",
20,
0.75
]
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
320,
70
],
"size": {
"0": 366.7709045410156,
"1": 201.41677856445312
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 10
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
42
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"anime illustration of a woman from the renaissance wearing simple clothing. in the background a rocky landscape with trees mountains and rivers"
]
},
{
"id": 11,
"type": "DualCLIPLoader",
"pos": [
40,
70
],
"size": {
"0": 210,
"1": 106
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
10
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "DualCLIPLoader"
},
"widgets_values": [
"t5xxl_fp16.safetensors",
"clip_l.safetensors",
"flux"
]
},
{
"id": 12,
"type": "UNETLoader",
"pos": [
290,
330
],
"size": {
"0": 229.8605194091797,
"1": 82
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
85
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"flux/flux1-dev.safetensors",
"default"
]
},
{
"id": 50,
"type": "LoadImage",
"pos": [
266,
712
],
"size": {
"0": 380.68994140625,
"1": 478.69622802734375
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
103
],
"slot_index": 0,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"다운로드.jpeg",
"image"
]
},
{
"id": 10,
"type": "VAELoader",
"pos": [
742,
821
],
"size": {
"0": 210,
"1": 58
},
"flags": {},
"order": 6,
"mode": 0,
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
12,
105
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"flux_dev/ae.safetensors"
]
}
],
"links": [
[
10,
11,
0,
6,
0,
"CLIP"
],
[
12,
10,
0,
8,
1,
"VAE"
],
[
19,
16,
0,
13,
2,
"SAMPLER"
],
[
30,
22,
0,
13,
1,
"GUIDER"
],
[
37,
25,
0,
13,
0,
"NOISE"
],
[
42,
6,
0,
29,
0,
"CONDITIONING"
],
[
43,
29,
0,
22,
1,
"CONDITIONING"
],
[
71,
28,
0,
17,
0,
"MODEL"
],
[
83,
17,
0,
13,
3,
"SIGMAS"
],
[
84,
28,
0,
22,
0,
"MODEL"
],
[
85,
12,
0,
28,
0,
"MODEL"
],
[
96,
8,
0,
26,
0,
"IMAGE"
],
[
98,
48,
1,
28,
1,
"INT"
],
[
99,
48,
2,
28,
2,
"INT"
],
[
102,
13,
1,
8,
0,
"LATENT"
],
[
103,
50,
0,
51,
0,
"IMAGE"
],
[
104,
51,
0,
52,
0,
"IMAGE"
],
[
105,
10,
0,
52,
1,
"VAE"
],
[
107,
52,
0,
13,
4,
"LATENT"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.7972024500000017,
"offset": [
-149.6592887948297,
-330.25305546081967
]
},
"groupNodes": {}
},
"version": 0.4
}