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

953 lines
16 KiB
JSON

{
"last_node_id": 67,
"last_link_id": 109,
"nodes": [
{
"id": 8,
"type": "VAEDecode",
"pos": [
1437,
-37
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 24
},
{
"name": "vae",
"type": "VAE",
"link": 109
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
9
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 9,
"type": "SaveImage",
"pos": [
1787,
-572
],
"size": {
"0": 629.2322998046875,
"1": 954.3595581054688
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"properties": {
"Node name for S&R": "SaveImage"
},
"widgets_values": [
"ComfyUI"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 11,
"type": "DualCLIPLoader",
"pos": [
510.9067373688384,
294.11470553598923
],
"size": {
"0": 354.42767333984375,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
100
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "DualCLIPLoader"
},
"widgets_values": [
"t5xxl_fp16.safetensors",
"clip_l.safetensors",
"flux"
]
},
{
"id": 13,
"type": "SamplerCustomAdvanced",
"pos": [
1396,
-206
],
"size": {
"0": 338.23077392578125,
"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": 20,
"slot_index": 3
},
{
"name": "latent_image",
"type": "LATENT",
"link": 44,
"slot_index": 4
}
],
"outputs": [
{
"name": "output",
"type": "LATENT",
"links": [
24
],
"slot_index": 0,
"shape": 3
},
{
"name": "denoised_output",
"type": "LATENT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "SamplerCustomAdvanced"
}
},
{
"id": 16,
"type": "KSamplerSelect",
"pos": [
991,
18
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
19
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"deis"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 17,
"type": "BasicScheduler",
"pos": [
993,
138
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 38,
"slot_index": 0
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
20
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "BasicScheduler"
},
"widgets_values": [
"normal",
25,
0.5
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 22,
"type": "BasicGuider",
"pos": [
1407,
-349
],
"size": {
"0": 310,
"1": 50
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 99,
"slot_index": 0
},
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 48,
"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": [
981,
-513
],
"size": {
"0": 315,
"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": [
790384376900087,
"randomize"
]
},
{
"id": 30,
"type": "VAEEncode",
"pos": [
984,
293
],
"size": {
"0": 320,
"1": 50
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 46
},
{
"name": "vae",
"type": "VAE",
"link": 106
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
44
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAEEncode"
}
},
{
"id": 35,
"type": "ImageScaleBy",
"pos": [
552.6528179931637,
-493.2968537122881
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 97
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
46
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ImageScaleBy"
},
"widgets_values": [
"lanczos",
1
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 62,
"type": "HintImageEnchance",
"pos": [
189.65281799316378,
-492.2968537122881
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "hint_image",
"type": "IMAGE",
"link": 92
},
{
"name": "image_gen_width",
"type": "INT",
"link": 95,
"widget": {
"name": "image_gen_width"
}
},
{
"name": "image_gen_height",
"type": "INT",
"link": 96,
"widget": {
"name": "image_gen_height"
}
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
97
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "HintImageEnchance"
},
"widgets_values": [
512,
512,
"Just Resize"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 66,
"type": "Power Lora Loader (rgthree)",
"pos": {
"0": 524,
"1": -289,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": {
"0": 340.20001220703125,
"1": 142
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 98,
"dir": 3
},
{
"name": "clip",
"type": "CLIP",
"link": 100,
"dir": 3
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
99
],
"slot_index": 0,
"shape": 3,
"dir": 4
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
101
],
"slot_index": 1,
"shape": 3,
"dir": 4
}
],
"properties": {
"Show Strengths": "Single Strength"
},
"widgets_values": [
null,
{
"type": "PowerLoraLoaderHeaderWidget"
},
{
"on": false,
"lora": "Flux\\Anatomy\\Professional_Nude_Photography.safetensors",
"strength": 0.7,
"strengthTwo": null
},
null,
""
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 10,
"type": "VAELoader",
"pos": [
523.9067373688385,
63.114705535989344
],
"size": {
"0": 320,
"1": 60
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
106,
109
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"flux_dev/ae.safetensors"
]
},
{
"id": 26,
"type": "LoadImage",
"pos": [
-198,
-305
],
"size": {
"0": 656.31494140625,
"1": 700.6935424804688
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
92
],
"slot_index": 0,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"다운로드.jpeg",
"image"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 12,
"type": "UNETLoader",
"pos": [
522,
167
],
"size": {
"0": 320,
"1": 82
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
38,
98
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"flux/flux1-dev.safetensors",
"default"
]
},
{
"id": 65,
"type": "SDXL Resolutions (JPS)",
"pos": [
-178.35472204589817,
-471.24077754041315
],
"size": {
"0": 315,
"1": 78
},
"flags": {},
"order": 6,
"mode": 0,
"outputs": [
{
"name": "width",
"type": "INT",
"links": [
95
],
"slot_index": 0,
"shape": 3
},
{
"name": "height",
"type": "INT",
"links": [
96
],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "SDXL Resolutions (JPS)"
},
"widgets_values": [
"portrait - 896x1152 (3:4)"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 36,
"type": "CLIPTextEncodeFlux",
"pos": [
954,
-384
],
"size": {
"0": 402.8395690917969,
"1": 339.3419494628906
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 101
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
48
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CLIPTextEncodeFlux"
},
"widgets_values": [
"",
"",
3.5
],
"color": "#322",
"bgcolor": "#533"
}
],
"links": [
[
9,
8,
0,
9,
0,
"IMAGE"
],
[
19,
16,
0,
13,
2,
"SAMPLER"
],
[
20,
17,
0,
13,
3,
"SIGMAS"
],
[
24,
13,
0,
8,
0,
"LATENT"
],
[
30,
22,
0,
13,
1,
"GUIDER"
],
[
37,
25,
0,
13,
0,
"NOISE"
],
[
38,
12,
0,
17,
0,
"MODEL"
],
[
44,
30,
0,
13,
4,
"LATENT"
],
[
46,
35,
0,
30,
0,
"IMAGE"
],
[
48,
36,
0,
22,
1,
"CONDITIONING"
],
[
92,
26,
0,
62,
0,
"IMAGE"
],
[
95,
65,
0,
62,
1,
"INT"
],
[
96,
65,
1,
62,
2,
"INT"
],
[
97,
62,
0,
35,
0,
"IMAGE"
],
[
98,
12,
0,
66,
0,
"MODEL"
],
[
99,
66,
0,
22,
0,
"MODEL"
],
[
100,
11,
0,
66,
1,
"CLIP"
],
[
101,
66,
1,
36,
0,
"CLIP"
],
[
106,
10,
0,
30,
1,
"VAE"
],
[
109,
10,
0,
8,
1,
"VAE"
]
],
"groups": [
{
"title": "Flux Loading",
"bounding": [
489,
-18,
405,
431
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Resize image to chosen resolution",
"bounding": [
-205,
-605,
1106,
260
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Flux Processing",
"bounding": [
917,
-607,
843,
998
],
"color": "#3f789e",
"font_size": 24,
"locked": false
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.6588450000000019,
"offset": [
518.7763019916277,
662.8475748317486
]
}
},
"version": 0.4
}