comfyui_workflow / flux-lora-upscale-workflow-lnw2.json
wonwizard's picture
Upload 2 files
c43e0d2 verified
{
"last_node_id": 59,
"last_link_id": 104,
"nodes": [
{
"id": 27,
"type": "EmptySD3LatentImage",
"pos": [
820,
610
],
"size": {
"0": 210,
"1": 100
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "width",
"type": "INT",
"link": 67,
"widget": {
"name": "width"
}
},
{
"name": "height",
"type": "INT",
"link": 68,
"widget": {
"name": "height"
}
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
69
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "EmptySD3LatentImage"
},
"widgets_values": [
1024,
1024,
1
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 33,
"type": "CLIPTextEncode",
"pos": [
390,
400
],
"size": [
420,
160
],
"flags": {
"collapsed": false
},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 101,
"slot_index": 0
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
55,
73
],
"slot_index": 0
}
],
"title": "CLIP Text Encode (Negative Prompt)",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
],
"color": "#322",
"bgcolor": "#533",
"locked": true
},
{
"id": 34,
"type": "Note",
"pos": [
1100,
720
],
"size": {
"0": 320,
"1": 130
},
"flags": {},
"order": 0,
"mode": 0,
"properties": {
"text": ""
},
"widgets_values": [
"Note that Flux dev and schnell do not have any negative prompt so CFG should be set to 1.0. Setting CFG to 1.0 means the negative prompt is ignored."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 35,
"type": "FluxGuidance",
"pos": [
830,
190
],
"size": {
"0": 211.60000610351562,
"1": 58
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 56
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
57,
72
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "FluxGuidance"
},
"widgets_values": [
3.5
]
},
{
"id": 37,
"type": "Reroute",
"pos": [
390,
120
],
"size": [
75,
26
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 99
}
],
"outputs": [
{
"name": "",
"type": "MODEL",
"links": [
60
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 38,
"type": "Reroute",
"pos": [
960,
120
],
"size": [
75,
26
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 60
}
],
"outputs": [
{
"name": "",
"type": "MODEL",
"links": [
61,
71
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 39,
"type": "Reroute",
"pos": [
390,
80
],
"size": [
75,
26
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 62
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
64
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 56,
"type": "easy float",
"pos": [
820,
1170
],
"size": {
"0": 210,
"1": 60
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "float",
"type": "FLOAT",
"links": [
91,
92,
95
],
"slot_index": 0,
"shape": 3
}
],
"title": "upscale by",
"properties": {
"Node name for S&R": "easy float"
},
"widgets_values": [
2
]
},
{
"id": 57,
"type": "MathExpression|pysssss",
"pos": [
760,
1290
],
"size": {
"0": 270,
"1": 116.00003051757812
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "a",
"type": "INT,FLOAT,IMAGE,LATENT",
"link": 92
},
{
"name": "b",
"type": "INT,FLOAT,IMAGE,LATENT",
"link": 93
},
{
"name": "c",
"type": "INT,FLOAT,IMAGE,LATENT",
"link": null
}
],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
94
],
"slot_index": 0,
"shape": 3
},
{
"name": "FLOAT",
"type": "FLOAT",
"links": null,
"shape": 3
}
],
"title": "tile height (Math Expression 🐍)",
"properties": {
"Node name for S&R": "MathExpression|pysssss"
},
"widgets_values": [
"a * b / 2 + 32"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 58,
"type": "MathExpression|pysssss",
"pos": [
760,
1460
],
"size": {
"0": 270,
"1": 116.00003051757812
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "a",
"type": "INT,FLOAT,IMAGE,LATENT",
"link": 95
},
{
"name": "b",
"type": "INT,FLOAT,IMAGE,LATENT",
"link": 96
},
{
"name": "c",
"type": "INT,FLOAT,IMAGE,LATENT",
"link": null
}
],
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
97
],
"slot_index": 0,
"shape": 3
},
{
"name": "FLOAT",
"type": "FLOAT",
"links": null,
"shape": 3
}
],
"title": "tile height (Math Expression 🐍)",
"properties": {
"Node name for S&R": "MathExpression|pysssss"
},
"widgets_values": [
"a * b / 2 + 32"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 30,
"type": "CheckpointLoaderSimple",
"pos": [
-310,
190
],
"size": {
"0": 320,
"1": 100
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
98
],
"slot_index": 0,
"shape": 3
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
102
],
"slot_index": 1,
"shape": 3
},
{
"name": "VAE",
"type": "VAE",
"links": [
62
],
"slot_index": 2,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"flux1-dev-fp8.safetensors"
]
},
{
"id": 46,
"type": "UpscaleModelLoader",
"pos": [
820,
1060
],
"size": {
"0": 210,
"1": 60
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "UPSCALE_MODEL",
"type": "UPSCALE_MODEL",
"links": [
75
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "UpscaleModelLoader"
},
"widgets_values": [
"4x-UltraSharp.pth"
]
},
{
"id": 59,
"type": "LoraLoader",
"pos": [
40,
190
],
"size": {
"0": 310,
"1": 130
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 98
},
{
"name": "clip",
"type": "CLIP",
"link": 102
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
99
],
"slot_index": 0,
"shape": 3
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
100,
101
],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoraLoader"
},
"widgets_values": [
"flux_realism_lora_comfyui.safetensors",
0.8,
1
]
},
{
"id": 40,
"type": "Reroute",
"pos": [
1270,
90
],
"size": [
75,
26
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 64
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
65,
74
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1450,
100
],
"size": {
"0": 210,
"1": 50
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 52
},
{
"name": "vae",
"type": "VAE",
"link": 65
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
9,
70,
103
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 9,
"type": "SaveImage",
"pos": [
1460,
210
],
"size": [
500,
710
],
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9
}
],
"properties": {
"Node name for S&R": "SaveImage"
},
"widgets_values": [
"flux/img_"
]
},
{
"id": 48,
"type": "SaveImage",
"pos": [
1990,
210
],
"size": [
510,
710
],
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 77
}
],
"properties": {
"Node name for S&R": "SaveImage"
},
"widgets_values": [
"flux/img_"
]
},
{
"id": 54,
"type": "Image Comparer (rgthree)",
"pos": {
"0": 2530,
"1": 210,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
"size": [
810,
1070
],
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "image_a",
"type": "IMAGE",
"link": 104,
"dir": 3,
"slot_index": 0
},
{
"name": "image_b",
"type": "IMAGE",
"link": 103,
"dir": 3
}
],
"outputs": [],
"properties": {
"comparer_mode": "Slide"
},
"widgets_values": [
[
"/view?filename=rgthree.compare._temp_pzbvx_00015_.png&type=temp&subfolder=&rand=0.7073402509036286",
"/view?filename=rgthree.compare._temp_pzbvx_00016_.png&type=temp&subfolder=&rand=0.8637169621663892"
]
]
},
{
"id": 44,
"type": "Note",
"pos": [
40,
380
],
"size": {
"0": 310,
"1": 150
},
"flags": {},
"order": 4,
"mode": 0,
"properties": {
"text": ""
},
"widgets_values": [
"https://huggingface.co/Comfy-Org/flux1-dev/blob/main/flux1-dev-fp8.safetensors\n(ComfyUI\\models\\checkpoints\\flux)\n\nhttps://huggingface.co/comfyanonymous/flux_RealismLora_converted_comfyui/blob/main/flux_realism_lora.safetensors\n(ComfyUI\\models\\loras\\flux)\n\n*https://openart.ai/workflows/datou/fake-conference/Gv1ugsWwMxJYUqMLPPWi"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
390,
190
],
"size": {
"0": 430,
"1": 160
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 100
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
56
],
"slot_index": 0
}
],
"title": "CLIP Text Encode (Positive Prompt)",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"a young woman smiling while speaking onstage from Google, white background with corporate logos blurred out, tech conference "
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 43,
"type": "SDXLAspectRatioSelector",
"pos": [
390,
610
],
"size": {
"0": 420,
"1": 100
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "ratio",
"type": "STRING",
"links": null,
"shape": 3
},
{
"name": "width",
"type": "INT",
"links": [
67,
93
],
"slot_index": 1,
"shape": 3
},
{
"name": "height",
"type": "INT",
"links": [
68,
96
],
"slot_index": 2,
"shape": 3
}
],
"properties": {
"Node name for S&R": "SDXLAspectRatioSelector"
},
"widgets_values": [
"2:3"
]
},
{
"id": 31,
"type": "KSampler",
"pos": [
1100,
190
],
"size": {
"0": 320,
"1": 470
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 61
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 57
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 55
},
{
"name": "latent_image",
"type": "LATENT",
"link": 69,
"slot_index": 3
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
52
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
23487711753834,
"fixed",
20,
1,
"euler",
"simple",
1
]
},
{
"id": 45,
"type": "UltimateSDUpscale",
"pos": [
1100,
960
],
"size": {
"0": 320,
"1": 830
},
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 70
},
{
"name": "model",
"type": "MODEL",
"link": 71
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 72
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 73
},
{
"name": "vae",
"type": "VAE",
"link": 74
},
{
"name": "upscale_model",
"type": "UPSCALE_MODEL",
"link": 75,
"slot_index": 5
},
{
"name": "upscale_by",
"type": "FLOAT",
"link": 91,
"slot_index": 6,
"widget": {
"name": "upscale_by"
}
},
{
"name": "tile_width",
"type": "INT",
"link": 94,
"widget": {
"name": "tile_width"
}
},
{
"name": "tile_height",
"type": "INT",
"link": 97,
"widget": {
"name": "tile_height"
}
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
77,
104
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "UltimateSDUpscale"
},
"widgets_values": [
2,
1000122408342704,
"fixed",
20,
1,
"euler",
"simple",
0.25,
"Linear",
1024,
1024,
16,
32,
"None",
0.25,
64,
16,
16,
true,
false
]
}
],
"links": [
[
9,
8,
0,
9,
0,
"IMAGE"
],
[
52,
31,
0,
8,
0,
"LATENT"
],
[
55,
33,
0,
31,
2,
"CONDITIONING"
],
[
56,
6,
0,
35,
0,
"CONDITIONING"
],
[
57,
35,
0,
31,
1,
"CONDITIONING"
],
[
60,
37,
0,
38,
0,
"*"
],
[
61,
38,
0,
31,
0,
"MODEL"
],
[
62,
30,
2,
39,
0,
"*"
],
[
64,
39,
0,
40,
0,
"*"
],
[
65,
40,
0,
8,
1,
"VAE"
],
[
67,
43,
1,
27,
0,
"INT"
],
[
68,
43,
2,
27,
1,
"INT"
],
[
69,
27,
0,
31,
3,
"LATENT"
],
[
70,
8,
0,
45,
0,
"IMAGE"
],
[
71,
38,
0,
45,
1,
"MODEL"
],
[
72,
35,
0,
45,
2,
"CONDITIONING"
],
[
73,
33,
0,
45,
3,
"CONDITIONING"
],
[
74,
40,
0,
45,
4,
"VAE"
],
[
75,
46,
0,
45,
5,
"UPSCALE_MODEL"
],
[
77,
45,
0,
48,
0,
"IMAGE"
],
[
91,
56,
0,
45,
6,
"FLOAT"
],
[
92,
56,
0,
57,
0,
"INT,FLOAT,IMAGE,LATENT"
],
[
93,
43,
1,
57,
1,
"INT,FLOAT,IMAGE,LATENT"
],
[
94,
57,
0,
45,
7,
"INT"
],
[
95,
56,
0,
58,
0,
"INT,FLOAT,IMAGE,LATENT"
],
[
96,
43,
2,
58,
1,
"INT,FLOAT,IMAGE,LATENT"
],
[
97,
58,
0,
45,
8,
"INT"
],
[
98,
30,
0,
59,
0,
"MODEL"
],
[
99,
59,
0,
37,
0,
"*"
],
[
100,
59,
1,
6,
0,
"CLIP"
],
[
101,
59,
1,
33,
0,
"CLIP"
],
[
102,
30,
1,
59,
1,
"CLIP"
],
[
103,
8,
0,
54,
1,
"IMAGE"
],
[
104,
45,
0,
54,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.4240976183724849,
"offset": [
293.71301566484806,
25.969233872774737
]
}
},
"version": 0.4
}