docs: upload workflows

This commit is contained in:
fanxingkun 2024-11-15 11:30:05 +08:00
parent 122c9ca1ce
commit f247f2d802
9 changed files with 6526 additions and 0 deletions

View File

@ -0,0 +1,312 @@
{
"last_node_id": 16,
"last_link_id": 29,
"nodes": [
{
"id": 8,
"type": "LoadImage",
"pos": [
288,
218
],
"size": {
"0": 315,
"1": 314
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
28
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"0722 (2).png",
"image"
]
},
{
"id": 9,
"type": "PreviewImage",
"pos": [
1279,
-176
],
"size": {
"0": 478.01593017578125,
"1": 683.1017456054688
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 29
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 14,
"type": "DiffBIR_sample_advanced",
"pos": [
776,
-180
],
"size": {
"0": 400,
"1": 730
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "stage1_model",
"type": "STAGE1",
"link": 23,
"slot_index": 0
},
{
"name": "task",
"type": "TASK",
"link": 24
},
{
"name": "cldm",
"type": "CLDM",
"link": 25,
"slot_index": 2
},
{
"name": "diffusion",
"type": "DIFFUSION",
"link": 26
},
{
"name": "infer_type",
"type": "INFER_TYPE",
"link": 27
},
{
"name": "image",
"type": "IMAGE",
"link": 28
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
29
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "DiffBIR_sample_advanced"
},
"widgets_values": [
2,
30,
4,
false,
false,
512,
256,
true,
false,
512,
256,
"best quality, hdr, 4k",
"low quality, blurry, low-resolution, noisy, unsharp, weird textures",
842260670851106,
"randomize",
"cuda",
false,
"w_mse",
1,
1001,
-1,
"latent",
1
]
},
{
"id": 15,
"type": "Stage1_load",
"pos": [
287,
-186
],
"size": {
"0": 315,
"1": 126
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "stage1_model",
"type": "STAGE1",
"links": [
23
],
"shape": 3
},
{
"name": "task",
"type": "TASK",
"links": [
24
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "Stage1_load"
},
"widgets_values": [
"bfr",
"cuda",
"float32"
]
},
{
"id": 16,
"type": "Stage2_load",
"pos": [
285,
0
],
"size": {
"0": 315,
"1": 122
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "cldm",
"type": "CLDM",
"links": [
25
],
"shape": 3
},
{
"name": "diffusion",
"type": "DIFFUSION",
"links": [
26
],
"shape": 3,
"slot_index": 1
},
{
"name": "infer_type",
"type": "INFER_TYPE",
"links": [
27
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "Stage2_load"
},
"widgets_values": [
"cuda",
"float32"
]
}
],
"links": [
[
23,
15,
0,
14,
0,
"STAGE1"
],
[
24,
15,
1,
14,
1,
"TASK"
],
[
25,
16,
0,
14,
2,
"CLDM"
],
[
26,
16,
1,
14,
3,
"DIFFUSION"
],
[
27,
16,
2,
14,
4,
"INFER_TYPE"
],
[
28,
8,
0,
14,
5,
"IMAGE"
],
[
29,
14,
0,
9,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}

View File

@ -0,0 +1,312 @@
{
"last_node_id": 16,
"last_link_id": 29,
"nodes": [
{
"id": 9,
"type": "PreviewImage",
"pos": [
1279,
-176
],
"size": {
"0": 478.01593017578125,
"1": 683.1017456054688
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 29
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 16,
"type": "Stage2_load",
"pos": [
285,
0
],
"size": {
"0": 315,
"1": 122
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "cldm",
"type": "CLDM",
"links": [
25
],
"shape": 3
},
{
"name": "diffusion",
"type": "DIFFUSION",
"links": [
26
],
"shape": 3,
"slot_index": 1
},
{
"name": "infer_type",
"type": "INFER_TYPE",
"links": [
27
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "Stage2_load"
},
"widgets_values": [
"cuda",
"float32"
]
},
{
"id": 15,
"type": "Stage1_load",
"pos": [
287,
-186
],
"size": {
"0": 315,
"1": 126
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "stage1_model",
"type": "STAGE1",
"links": [
23
],
"shape": 3
},
{
"name": "task",
"type": "TASK",
"links": [
24
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "Stage1_load"
},
"widgets_values": [
"bid",
"cuda",
"float32"
]
},
{
"id": 8,
"type": "LoadImage",
"pos": [
288,
218
],
"size": {
"0": 315,
"1": 314
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
28
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"2_lq.png",
"image"
]
},
{
"id": 14,
"type": "DiffBIR_sample_advanced",
"pos": [
776,
-180
],
"size": {
"0": 400,
"1": 730
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "stage1_model",
"type": "STAGE1",
"link": 23,
"slot_index": 0
},
{
"name": "task",
"type": "TASK",
"link": 24
},
{
"name": "cldm",
"type": "CLDM",
"link": 25,
"slot_index": 2
},
{
"name": "diffusion",
"type": "DIFFUSION",
"link": 26
},
{
"name": "infer_type",
"type": "INFER_TYPE",
"link": 27
},
{
"name": "image",
"type": "IMAGE",
"link": 28
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
29
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "DiffBIR_sample_advanced"
},
"widgets_values": [
2,
30,
4,
false,
false,
512,
256,
true,
false,
512,
256,
"best quality, hdr, 4k",
"low quality, blurry, low-resolution, noisy, unsharp, weird textures",
903788935027505,
"randomize",
"cuda",
false,
"w_mse",
1,
1001,
-1,
"latent",
1
]
}
],
"links": [
[
23,
15,
0,
14,
0,
"STAGE1"
],
[
24,
15,
1,
14,
1,
"TASK"
],
[
25,
16,
0,
14,
2,
"CLDM"
],
[
26,
16,
1,
14,
3,
"DIFFUSION"
],
[
27,
16,
2,
14,
4,
"INFER_TYPE"
],
[
28,
8,
0,
14,
5,
"IMAGE"
],
[
29,
14,
0,
9,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}

View File

@ -0,0 +1,255 @@
{
"last_node_id": 6,
"last_link_id": 11,
"nodes": [
{
"id": 4,
"type": "PreviewImage",
"pos": [
1508,
-5
],
"size": {
"0": 619.78515625,
"1": 608.61328125
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 11
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 1,
"type": "LoadImage",
"pos": [
473,
281
],
"size": [
326.1577546081544,
314
],
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
10
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"0.png",
"image"
]
},
{
"id": 6,
"type": "Simple_load",
"pos": [
469,
-6
],
"size": {
"0": 315,
"1": 142
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "stage1_model",
"type": "STAGE1",
"links": [
6
],
"shape": 3
},
{
"name": "cldm",
"type": "CLDM",
"links": [
7
],
"shape": 3,
"slot_index": 1
},
{
"name": "diffusion",
"type": "DIFFUSION",
"links": [
8
],
"shape": 3,
"slot_index": 2
},
{
"name": "infer_type",
"type": "INFER_TYPE",
"links": [
9
],
"shape": 3,
"slot_index": 3
}
],
"properties": {
"Node name for S&R": "Simple_load"
},
"widgets_values": [
"cuda",
"float32"
]
},
{
"id": 5,
"type": "DiffBIR_sample",
"pos": [
973,
-5
],
"size": {
"0": 400,
"1": 446
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "stage1_model",
"type": "STAGE1",
"link": 6,
"slot_index": 0
},
{
"name": "cldm",
"type": "CLDM",
"link": 7
},
{
"name": "diffusion",
"type": "DIFFUSION",
"link": 8
},
{
"name": "infer_type",
"type": "INFER_TYPE",
"link": 9
},
{
"name": "image",
"type": "IMAGE",
"link": 10,
"slot_index": 4
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
11
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "DiffBIR_sample"
},
"widgets_values": [
2,
20,
4,
true,
true,
512,
480,
"best quality, hdr, 4k",
"low quality, blurry, low-resolution, noisy, unsharp, weird textures",
1,
"fixed",
"cuda"
]
}
],
"links": [
[
6,
6,
0,
5,
0,
"STAGE1"
],
[
7,
6,
1,
5,
1,
"CLDM"
],
[
8,
6,
2,
5,
2,
"DIFFUSION"
],
[
9,
6,
3,
5,
3,
"INFER_TYPE"
],
[
10,
1,
0,
5,
4,
"IMAGE"
],
[
11,
5,
0,
4,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}

853
workflows/img2img.json Normal file
View File

@ -0,0 +1,853 @@
{
"last_node_id": 111,
"last_link_id": 183,
"nodes": [
{
"id": 13,
"type": "SamplerCustomAdvanced",
"pos": {
"0": 1850,
"1": 430
},
"size": {
"0": 355.20001220703125,
"1": 106
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "noise",
"type": "NOISE",
"link": 86,
"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": 60,
"slot_index": 3
},
{
"name": "latent_image",
"type": "LATENT",
"link": 165,
"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"
},
"widgets_values": [],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 50,
"type": "RandomNoise",
"pos": {
"0": 1870,
"1": 280
},
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "NOISE",
"type": "NOISE",
"links": [
86
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "RandomNoise"
},
"widgets_values": [
820514797502403,
"randomize"
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 22,
"type": "BasicGuider",
"pos": {
"0": 1530,
"1": 360
},
"size": {
"0": 241.79998779296875,
"1": 46
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 39,
"slot_index": 0
},
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 40,
"slot_index": 1
}
],
"outputs": [
{
"name": "GUIDER",
"type": "GUIDER",
"links": [
30
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "BasicGuider"
},
"widgets_values": [],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 38,
"type": "SplitSigmas",
"pos": {
"0": 1450,
"1": 750
},
"size": {
"0": 320,
"1": 80
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "sigmas",
"type": "SIGMAS",
"link": 59
}
],
"outputs": [
{
"name": "high_sigmas",
"type": "SIGMAS",
"links": [],
"slot_index": 0,
"shape": 3
},
{
"name": "low_sigmas",
"type": "SIGMAS",
"links": [
60
],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "SplitSigmas"
},
"widgets_values": [
0
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 94,
"type": "VAEEncode",
"pos": {
"0": 1540,
"1": 510
},
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 176
},
{
"name": "vae",
"type": "VAE",
"link": 166
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
165
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAEEncode"
},
"widgets_values": [],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 102,
"type": "SaveImage",
"pos": {
"0": 2341,
"1": 563
},
"size": {
"0": 315,
"1": 270
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 177
}
],
"outputs": [],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 8,
"type": "VAEDecode",
"pos": {
"0": 1990,
"1": 590
},
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 24
},
{
"name": "vae",
"type": "VAE",
"link": 12
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
177
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": [],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": {
"0": 1540,
"1": 250
},
"size": {
"0": 210,
"1": 54
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 10
},
{
"name": "text",
"type": "STRING",
"link": 181,
"slot_index": 1,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
40
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"line dog, running fast"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 17,
"type": "BasicScheduler",
"pos": {
"0": 1090,
"1": 750
},
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 38,
"slot_index": 0
},
{
"name": "denoise",
"type": "FLOAT",
"link": 183,
"slot_index": 1,
"widget": {
"name": "denoise"
}
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
59
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "BasicScheduler"
},
"widgets_values": [
"sgm_uniform",
4,
0.5
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 96,
"type": "Note",
"pos": {
"0": 216,
"1": 810
},
"size": {
"0": 400.74481201171875,
"1": 249.48805236816406
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": ""
},
"widgets_values": [
"Set Denoise / input image likeness here.\nNumber range from 0.01 to 1.0\nLower denoise gives more likeness to the input image."
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 111,
"type": "PrimitiveNode",
"pos": {
"0": 674,
"1": 449
},
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "FLOAT",
"type": "FLOAT",
"links": [
183
],
"widget": {
"name": "denoise"
}
}
],
"title": "denoise",
"properties": {
"Run widget replace on values": false
},
"widgets_values": [
0.5,
"fixed"
]
},
{
"id": 16,
"type": "KSamplerSelect",
"pos": {
"0": 1450,
"1": 630
},
"size": {
"0": 320,
"1": 60
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
19
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"deis"
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 82,
"type": "LoadImage",
"pos": {
"0": 60,
"1": 80
},
"size": {
"0": 558.6259765625,
"1": 602.1386108398438
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
176
],
"slot_index": 0,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"3.png",
"image"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 110,
"type": "PrimitiveNode",
"pos": {
"0": 658,
"1": 113
},
"size": {
"0": 376.3177185058594,
"1": 292.039306640625
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
181
],
"widget": {
"name": "text"
}
}
],
"title": "Prompt",
"properties": {
"Run widget replace on values": false
},
"widgets_values": [
"line dog, running fast"
]
},
{
"id": 12,
"type": "UNETLoader",
"pos": {
"0": 680,
"1": 640
},
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
38,
39
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"flux1-dev.safetensors",
"fp8_e4m3fn"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 11,
"type": "DualCLIPLoader",
"pos": {
"0": 690,
"1": 781
},
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
10
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "DualCLIPLoader"
},
"widgets_values": [
"t5xxl_fp8_e4m3fn.safetensors",
"clip_l.safetensors",
"flux"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 10,
"type": "VAELoader",
"pos": {
"0": 680,
"1": 940
},
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
12,
166
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"ae.safetensors"
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
10,
11,
0,
6,
0,
"CLIP"
],
[
12,
10,
0,
8,
1,
"VAE"
],
[
19,
16,
0,
13,
2,
"SAMPLER"
],
[
24,
13,
0,
8,
0,
"LATENT"
],
[
30,
22,
0,
13,
1,
"GUIDER"
],
[
38,
12,
0,
17,
0,
"MODEL"
],
[
39,
12,
0,
22,
0,
"MODEL"
],
[
40,
6,
0,
22,
1,
"CONDITIONING"
],
[
59,
17,
0,
38,
0,
"SIGMAS"
],
[
60,
38,
1,
13,
3,
"SIGMAS"
],
[
86,
50,
0,
13,
0,
"NOISE"
],
[
165,
94,
0,
13,
4,
"LATENT"
],
[
166,
10,
0,
94,
1,
"VAE"
],
[
176,
82,
0,
94,
0,
"IMAGE"
],
[
177,
8,
0,
102,
0,
"IMAGE"
],
[
181,
110,
0,
6,
1,
"STRING"
],
[
183,
111,
0,
17,
1,
"FLOAT"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9646149645000011,
"offset": [
-1565.2933119199051,
-70.39640290290775
]
}
},
"version": 0.4
}

3275
workflows/inpaint.json Normal file

File diff suppressed because it is too large Load Diff

883
workflows/text2img.json Normal file
View File

@ -0,0 +1,883 @@
{
"last_node_id": 37,
"last_link_id": 116,
"nodes": [
{
"id": 17,
"type": "BasicScheduler",
"pos": {
"0": 480,
"1": 1008
},
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 55,
"slot_index": 0
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
20
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "BasicScheduler"
},
"widgets_values": [
"simple",
20,
1
]
},
{
"id": 16,
"type": "KSamplerSelect",
"pos": {
"0": 480,
"1": 912
},
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
19
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"euler"
]
},
{
"id": 26,
"type": "FluxGuidance",
"pos": {
"0": 480,
"1": 144
},
"size": {
"0": 317.4000244140625,
"1": 58
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 41
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
42
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "FluxGuidance"
},
"widgets_values": [
3.5
],
"color": "#233",
"bgcolor": "#355"
},
{
"id": 22,
"type": "BasicGuider",
"pos": {
"0": 576,
"1": 48
},
"size": {
"0": 222.3482666015625,
"1": 46
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 54,
"slot_index": 0
},
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 42,
"slot_index": 1
}
],
"outputs": [
{
"name": "GUIDER",
"type": "GUIDER",
"links": [
30
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "BasicGuider"
},
"widgets_values": []
},
{
"id": 13,
"type": "SamplerCustomAdvanced",
"pos": {
"0": 864,
"1": 192
},
"size": {
"0": 272.3617858886719,
"1": 124.53733825683594
},
"flags": {},
"order": 15,
"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": 116,
"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"
},
"widgets_values": []
},
{
"id": 25,
"type": "RandomNoise",
"pos": {
"0": 480,
"1": 768
},
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "NOISE",
"type": "NOISE",
"links": [
37
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "RandomNoise"
},
"widgets_values": [
220436814890502,
"randomize"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 8,
"type": "VAEDecode",
"pos": {
"0": 866,
"1": 367
},
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 24
},
{
"name": "vae",
"type": "VAE",
"link": 12
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
9
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": {
"0": 384,
"1": 240
},
"size": {
"0": 422.84503173828125,
"1": 164.31304931640625
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 10
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
41
],
"slot_index": 0
}
],
"title": "CLIP Text Encode (Positive Prompt)",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"cute anime girl with massive fluffy fennec ears and a big fluffy tail blonde messy long hair blue eyes wearing a maid outfit with a long black gold leaf pattern dress and a white apron mouth open holding a fancy black forest cake with candles on top in the kitchen of an old dark Victorian mansion lit by candlelight with a bright window to the foggy forest and very expensive stuff everywhere"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 30,
"type": "ModelSamplingFlux",
"pos": {
"0": 480,
"1": 1152
},
"size": {
"0": 315,
"1": 130
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 56,
"slot_index": 0
},
{
"name": "width",
"type": "INT",
"link": 115,
"slot_index": 1,
"widget": {
"name": "width"
}
},
{
"name": "height",
"type": "INT",
"link": 114,
"slot_index": 2,
"widget": {
"name": "height"
}
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
54,
55
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ModelSamplingFlux"
},
"widgets_values": [
1.15,
0.5,
1024,
1024
]
},
{
"id": 27,
"type": "EmptySD3LatentImage",
"pos": {
"0": 480,
"1": 624
},
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "width",
"type": "INT",
"link": 112,
"widget": {
"name": "width"
}
},
{
"name": "height",
"type": "INT",
"link": 113,
"widget": {
"name": "height"
}
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
116
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "EmptySD3LatentImage"
},
"widgets_values": [
1024,
1024,
1
]
},
{
"id": 34,
"type": "PrimitiveNode",
"pos": {
"0": 432,
"1": 480
},
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
112,
115
],
"slot_index": 0,
"widget": {
"name": "width"
}
}
],
"title": "width",
"properties": {
"Run widget replace on values": false
},
"widgets_values": [
1024,
"fixed"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 35,
"type": "PrimitiveNode",
"pos": {
"0": 672,
"1": 480
},
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
113,
114
],
"slot_index": 0,
"widget": {
"name": "height"
}
}
],
"title": "height",
"properties": {
"Run widget replace on values": false
},
"widgets_values": [
1024,
"fixed"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 12,
"type": "UNETLoader",
"pos": {
"0": 48,
"1": 144
},
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
56
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"flux1-dev.safetensors",
"default"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 9,
"type": "SaveImage",
"pos": {
"0": 1155,
"1": 196
},
"size": {
"0": 985.3012084960938,
"1": 1060.3828125
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"outputs": [],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 37,
"type": "Note",
"pos": {
"0": 480,
"1": 1344
},
"size": {
"0": 314.99755859375,
"1": 117.98363494873047
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": ""
},
"widgets_values": [
"The reference sampling implementation auto adjusts the shift value based on the resolution, if you don't want this you can just bypass (CTRL-B) this ModelSamplingFlux node.\n"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 10,
"type": "VAELoader",
"pos": {
"0": 48,
"1": 432
},
"size": {
"0": 311.81634521484375,
"1": 60.429901123046875
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
12
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"ae.safetensors"
]
},
{
"id": 28,
"type": "Note",
"pos": {
"0": 48,
"1": 576
},
"size": {
"0": 336,
"1": 288
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": ""
},
"widgets_values": [
"If you get an error in any of the nodes above make sure the files are in the correct directories.\n\nSee the top of the examples page for the links : https://comfyanonymous.github.io/ComfyUI_examples/flux/\n\nflux1-dev.safetensors goes in: ComfyUI/models/unet/\n\nt5xxl_fp16.safetensors and clip_l.safetensors go in: ComfyUI/models/clip/\n\nae.safetensors goes in: ComfyUI/models/vae/\n\n\nTip: You can set the weight_dtype above to one of the fp8 types if you have memory issues."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 11,
"type": "DualCLIPLoader",
"pos": {
"0": 48,
"1": 288
},
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
10
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "DualCLIPLoader"
},
"widgets_values": [
"t5xxl_fp8_e4m3fn.safetensors",
"clip_l.safetensors",
"flux"
]
}
],
"links": [
[
9,
8,
0,
9,
0,
"IMAGE"
],
[
10,
11,
0,
6,
0,
"CLIP"
],
[
12,
10,
0,
8,
1,
"VAE"
],
[
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"
],
[
41,
6,
0,
26,
0,
"CONDITIONING"
],
[
42,
26,
0,
22,
1,
"CONDITIONING"
],
[
54,
30,
0,
22,
0,
"MODEL"
],
[
55,
30,
0,
17,
0,
"MODEL"
],
[
56,
12,
0,
30,
0,
"MODEL"
],
[
112,
34,
0,
27,
0,
"INT"
],
[
113,
35,
0,
27,
1,
"INT"
],
[
114,
35,
0,
30,
2,
"INT"
],
[
115,
34,
0,
30,
1,
"INT"
],
[
116,
27,
0,
13,
4,
"LATENT"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9646149645000012,
"offset": [
-826.0109021893566,
-21.387113272386685
]
},
"groupNodes": {}
},
"version": 0.4
}

View File

@ -0,0 +1,141 @@
{
"last_node_id": 3,
"last_link_id": 2,
"nodes": [
{
"id": 1,
"type": "LoadImage",
"pos": {
"0": 291,
"1": 544
},
"size": [
315,
314
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
1
],
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"flux_dev_example.png",
"image"
]
},
{
"id": 2,
"type": "ImageScale",
"pos": {
"0": 741,
"1": 560
},
"size": {
"0": 315,
"1": 130
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
2
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageScale"
},
"widgets_values": [
"nearest-exact",
512,
512,
"disabled"
]
},
{
"id": 3,
"type": "PreviewImage",
"pos": {
"0": 1222,
"1": 599
},
"size": [
516,
490
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 2
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
}
}
],
"links": [
[
1,
1,
0,
2,
0,
"IMAGE"
],
[
2,
2,
0,
3,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1,
"offset": [
0,
0
]
}
},
"version": 0.4
}

View File

@ -0,0 +1,316 @@
{
"last_node_id": 7,
"last_link_id": 13,
"nodes": [
{
"id": 4,
"type": "PreviewImage",
"pos": {
"0": 1508,
"1": -5
},
"size": {
"0": 619.78515625,
"1": 608.61328125
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 11
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 6,
"type": "Simple_load",
"pos": {
"0": 469,
"1": -6
},
"size": {
"0": 315,
"1": 142
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "stage1_model",
"type": "STAGE1",
"links": [
6
],
"shape": 3
},
{
"name": "cldm",
"type": "CLDM",
"links": [
7
],
"slot_index": 1,
"shape": 3
},
{
"name": "diffusion",
"type": "DIFFUSION",
"links": [
8
],
"slot_index": 2,
"shape": 3
},
{
"name": "infer_type",
"type": "INFER_TYPE",
"links": [
9
],
"slot_index": 3,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Simple_load"
},
"widgets_values": [
"cuda",
"float32"
]
},
{
"id": 7,
"type": "ImageScale",
"pos": {
"0": 577.2297973632812,
"1": 349.1929626464844
},
"size": {
"0": 315,
"1": 130
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 12
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
13
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageScale"
},
"widgets_values": [
"nearest-exact",
512,
512,
"disabled"
]
},
{
"id": 5,
"type": "DiffBIR_sample",
"pos": {
"0": 973,
"1": -5
},
"size": {
"0": 400,
"1": 446
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "stage1_model",
"type": "STAGE1",
"link": 6,
"slot_index": 0
},
{
"name": "cldm",
"type": "CLDM",
"link": 7
},
{
"name": "diffusion",
"type": "DIFFUSION",
"link": 8
},
{
"name": "infer_type",
"type": "INFER_TYPE",
"link": 9
},
{
"name": "image",
"type": "IMAGE",
"link": 13,
"slot_index": 4
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
11
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "DiffBIR_sample"
},
"widgets_values": [
1,
20,
4,
true,
true,
512,
480,
"best quality, hdr, 4k",
"low quality, blurry, low-resolution, noisy, unsharp, weird textures",
1,
"fixed",
"cuda"
]
},
{
"id": 1,
"type": "LoadImage",
"pos": {
"0": 182,
"1": 272
},
"size": {
"0": 326.1577453613281,
"1": 314
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
12
],
"slot_index": 0,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"3.png",
"image"
]
}
],
"links": [
[
6,
6,
0,
5,
0,
"STAGE1"
],
[
7,
6,
1,
5,
1,
"CLDM"
],
[
8,
6,
2,
5,
2,
"DIFFUSION"
],
[
9,
6,
3,
5,
3,
"INFER_TYPE"
],
[
11,
5,
0,
4,
0,
"IMAGE"
],
[
12,
1,
0,
7,
0,
"IMAGE"
],
[
13,
7,
0,
5,
4,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1.1671841070450018,
"offset": [
-425.58276143922296,
311.37119267524326
]
}
},
"version": 0.4
}

View File

@ -0,0 +1,179 @@
{
"last_node_id": 7,
"last_link_id": 5,
"nodes": [
{
"id": 4,
"type": "LoadImage",
"pos": {
"0": 139,
"1": 868
},
"size": [
315,
314
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
3
],
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"flux_dev_example.png",
"image"
]
},
{
"id": 5,
"type": "ImageUpscaleWithModel",
"pos": {
"0": 611,
"1": 882
},
"size": {
"0": 340.20001220703125,
"1": 46
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "upscale_model",
"type": "UPSCALE_MODEL",
"link": 4
},
{
"name": "image",
"type": "IMAGE",
"link": 3
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
5
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageUpscaleWithModel"
}
},
{
"id": 7,
"type": "PreviewImage",
"pos": {
"0": 1211,
"1": 867
},
"size": [
502,
372
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 5
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 6,
"type": "UpscaleModelLoader",
"pos": {
"0": 103,
"1": 651
},
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "UPSCALE_MODEL",
"type": "UPSCALE_MODEL",
"links": [
4
]
}
],
"properties": {
"Node name for S&R": "UpscaleModelLoader"
},
"widgets_values": [
null
]
}
],
"links": [
[
3,
4,
0,
5,
1,
"IMAGE"
],
[
4,
6,
0,
5,
0,
"UPSCALE_MODEL"
],
[
5,
5,
0,
7,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1,
"offset": [
210,
-151
]
}
},
"version": 0.4
}