comfyui-workflow / SDXL_Explanation-Better-Upscaling.json
marhensa's picture
Upload 4 files
f41f851
raw
history blame
No virus
51.2 kB
{
"last_node_id": 146,
"last_link_id": 319,
"nodes": [
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
-1941.9668984226462,
553.6221782106678
],
"size": {
"0": 315.146484375,
"1": 106
},
"flags": {
"pinned": true
},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
27
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
896,
1152,
1
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 14,
"type": "PrimitiveNode",
"pos": [
-2021.0152364155056,
71.46175840122258
],
"size": {
"0": 348.3596496582031,
"1": 132.2855987548828
},
"flags": {
"pinned": true
},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
298,
299
],
"slot_index": 0,
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
}
}
],
"title": "Negative Prompt (Text)",
"properties": {},
"widgets_values": [
"deformed iris, deformed pupils, (semi-realistic, cgi, 2.5d, 3d, sketch, cartoon, drawing, anime:1.2), frame, mirror, polaroid, dark environment"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 38,
"type": "Note",
"pos": [
345,
1287
],
"size": {
"0": 284.3257141113281,
"1": 123.88604736328125
},
"flags": {},
"order": 2,
"mode": 0,
"title": "Note - Text Prompts",
"properties": {
"text": ""
},
"widgets_values": [
"These nodes are where you include the text for:\n - what you want in the picture (Positive Prompt, Green)\n - or what you don't want in the picture (Negative Prompt, Red)\n\nThis node type is called a \"PrimitiveNode\" if you are searching for the node type."
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 43,
"type": "Note",
"pos": [
348,
1159
],
"size": {
"0": 240,
"1": 80
},
"flags": {},
"order": 3,
"mode": 0,
"title": "Note - CLIP Encode (REFINER)",
"properties": {
"text": ""
},
"widgets_values": [
"These nodes receive the text from the prompt and use the optimal CLIP settings for the specified checkpoint model (in this case: SDXL Refiner)"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 39,
"type": "Note",
"pos": [
352,
1027
],
"size": {
"0": 238.26402282714844,
"1": 80.99152374267578
},
"flags": {},
"order": 4,
"mode": 0,
"title": "Note - CLIP Encode (BASE)",
"properties": {
"text": ""
},
"widgets_values": [
"These nodes receive the text from the prompt and use the optimal CLIP settings for the specified checkpoint model (in this case: SDXL Base)"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 36,
"type": "Note",
"pos": [
-2,
1032
],
"size": {
"0": 315.70074462890625,
"1": 147.9551239013672
},
"flags": {},
"order": 5,
"mode": 0,
"title": "Note - Load Checkpoint BASE",
"properties": {
"text": ""
},
"widgets_values": [
"This is a checkpoint model loader. \n - This is set up automatically with the optimal settings for whatever SD model version you choose to use.\n - In this example, it is for the Base SDXL model\n - This node is also used for SD1.5 and SD2.x models\n \nNOTE: When loading in another person's workflow, be sure to manually choose your own *local* model. This also applies to LoRas and all their deviations"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 37,
"type": "Note",
"pos": [
-4,
1222
],
"size": {
"0": 330,
"1": 140
},
"flags": {},
"order": 6,
"mode": 0,
"title": "Note - Load Checkpoint REFINER",
"properties": {
"text": ""
},
"widgets_values": [
"This is a checkpoint model loader. \n - This is set up automatically with the optimal settings for whatever SD model version you choose to use.\n - In this example, it is for the Refiner SDXL model\n\nNOTE: When loading in another person's workflow, be sure to manually choose your own *local* model. This also applies to LoRas and all their deviations."
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 40,
"type": "Note",
"pos": [
662,
1350
],
"size": {
"0": 451.5049743652344,
"1": 424.4164123535156
},
"flags": {},
"order": 7,
"mode": 0,
"title": "Note - KSampler ADVANCED General Information",
"properties": {
"text": ""
},
"widgets_values": [
"Here are the settings that SHOULD stay in place if you want this workflow to work correctly:\n - add_noise: enable = This adds random noise into the picture so the model can denoise it\n\n - return_with_leftover_noise: enable = This sends the latent image data and all it's leftover noise to the next KSampler node.\n\nThe settings to pay attention to:\n - control_after_generate = generates a new random seed after each workflow job completed.\n - steps = This is the amount of iterations you would like to run the positive and negative CLIP prompts through. Each Step will add (positive) or remove (negative) pixels based on what stable diffusion \"thinks\" should be there according to the model's training\n - cfg = This is how much you want SDXL to adhere to the prompt. Lower CFG gives you more creative but often blurrier results. Higher CFG (recommended max 10) gives you stricter results according to the CLIP prompt. If the CFG value is too high, it can also result in \"burn-in\" where the edges of the picture become even stronger, often highlighting details in unnatural ways.\n - sampler_name = This is the sampler type, and unfortunately different samplers and schedulers have better results with fewer steps, while others have better success with higher steps. This will require experimentation on your part!\n - scheduler = The algorithm/method used to choose the timesteps to denoise the picture.\n - start_at_step = This is the step number the KSampler will start out it's process of de-noising the picture or \"removing the random noise to reveal the picture within\". The first KSampler usually starts with Step 0. Starting at step 0 is the same as setting denoise to 1.0 in the regular Sampler node.\n - end_at_step = This is the step number the KSampler will stop it's process of de-noising the picture. If there is any remaining leftover noise and return_with_leftover_noise is enabled, then it will pass on the left over noise to the next KSampler (assuming there is another one)."
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 48,
"type": "Note",
"pos": [
662,
1198
],
"size": {
"0": 213.90769958496094,
"1": 110.17156982421875
},
"flags": {},
"order": 8,
"mode": 0,
"title": "Note - Step Control",
"properties": {
"text": ""
},
"widgets_values": [
"These can be used to control the total sampling steps and the step at which the sampling switches to the refiner."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 41,
"type": "Note",
"pos": [
662,
1028
],
"size": {
"0": 320,
"1": 120
},
"flags": {},
"order": 9,
"mode": 0,
"title": "Note - VAE Decoder",
"properties": {
"text": ""
},
"widgets_values": [
"This node will take the latent data from the KSampler and, using the VAE, it will decode it into visible data\n\nVAE = Latent --> Visible\n\nThis can then be sent to the Save Image node to be saved as a PNG."
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
-1983.9415138374725,
-517.1623679044727
],
"size": {
"0": 313.5203857421875,
"1": 98
},
"flags": {
"collapsed": false,
"pinned": false
},
"order": 10,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
301
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
58
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [],
"slot_index": 2
}
],
"title": "Load Checkpoint - BASE",
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"sd_xl_base_1.0.safetensors"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 12,
"type": "CheckpointLoaderSimple",
"pos": [
-1983.9415138374725,
-389.16236790447255
],
"size": {
"0": 312.8719482421875,
"1": 98
},
"flags": {
"collapsed": false,
"pinned": false
},
"order": 11,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
14
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
19,
20
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
178
],
"shape": 3,
"slot_index": 2
}
],
"title": "Load Checkpoint - REFINER",
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"sd_xl_refiner_1.0.safetensors"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 77,
"type": "Reroute",
"pos": [
-478,
-1343
],
"size": [
75,
26
],
"flags": {},
"order": 29,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 194
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
141,
288,
291
],
"slot_index": 0,
"label": "VAE"
}
],
"title": "VAE",
"properties": {
"showOutputText": false,
"horizontal": false,
"showTitle": true
}
},
{
"id": 61,
"type": "UpscaleModelLoader",
"pos": [
373.2033991552145,
-1361.4220519872242
],
"size": {
"0": 271.76513671875,
"1": 58
},
"flags": {},
"order": 12,
"mode": 0,
"outputs": [
{
"name": "UPSCALE_MODEL",
"type": "UPSCALE_MODEL",
"links": [
78
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "UpscaleModelLoader"
},
"widgets_values": [
"4x-UltraSharp.pth"
]
},
{
"id": 87,
"type": "Reroute",
"pos": [
-1562,
-1178
],
"size": [
75,
26
],
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 178
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
194
],
"label": "VAE",
"slot_index": 0
}
],
"title": "VAE",
"properties": {
"showOutputText": false,
"horizontal": false,
"showTitle": true
}
},
{
"id": 80,
"type": "Reroute",
"pos": [
-740,
-930
],
"size": [
75,
26
],
"flags": {},
"order": 31,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 146
}
],
"outputs": [
{
"name": "",
"type": "CONDITIONING",
"links": [
147,
148
],
"slot_index": 0,
"label": "- CLIP"
}
],
"title": "- CLIP",
"properties": {
"showOutputText": false,
"horizontal": false,
"showTitle": true
}
},
{
"id": 79,
"type": "Reroute",
"pos": [
-740,
-960
],
"size": [
75,
26
],
"flags": {},
"order": 30,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 143
}
],
"outputs": [
{
"name": "",
"type": "CONDITIONING",
"links": [
144,
145
],
"slot_index": 0,
"label": "+ CLIP"
}
],
"title": "+ CLIP",
"properties": {
"showOutputText": false,
"horizontal": false,
"showTitle": true
}
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
-1128.0734953287918,
-551.9282265856335
],
"size": {
"0": 240.33839416503906,
"1": 54
},
"flags": {
"collapsed": false,
"pinned": false
},
"order": 27,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 59
},
{
"name": "text",
"type": "STRING",
"link": 296,
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
143
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"(highest quality), masterpiece, intricate, high detail, professional photo, 8k uhd, sharp focus, (realistic photograph:1.2), (medieval knight cat wears shiny armor, background is castle:1.2), bright environment"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 15,
"type": "CLIPTextEncode",
"pos": [
-1120.054797036359,
-311.74958638054085
],
"size": {
"0": 239.02825927734375,
"1": 54
},
"flags": {
"collapsed": false,
"pinned": false
},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 19
},
{
"name": "text",
"type": "STRING",
"link": 297,
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
23
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"(highest quality), masterpiece, intricate, high detail, professional photo, 8k uhd, sharp focus, (realistic photograph:1.2), (medieval knight cat wears shiny armor, background is castle:1.2), bright environment"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
-1126.877082187469,
-467.69855830620986
],
"size": {
"0": 239.6999969482422,
"1": 54
},
"flags": {
"collapsed": false,
"pinned": false
},
"order": 28,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 60
},
{
"name": "text",
"type": "STRING",
"link": 298,
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
146
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"deformed iris, deformed pupils, (semi-realistic, cgi, 2.5d, 3d, sketch, cartoon, drawing, anime:1.2), frame, mirror, polaroid, dark environment"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 16,
"type": "CLIPTextEncode",
"pos": [
-1120.593861327552,
-227.61335080312577
],
"size": {
"0": 240.885986328125,
"1": 54
},
"flags": {
"collapsed": false,
"pinned": false
},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 20
},
{
"name": "text",
"type": "STRING",
"link": 299,
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
}
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
24
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"deformed iris, deformed pupils, (semi-realistic, cgi, 2.5d, 3d, sketch, cartoon, drawing, anime:1.2), frame, mirror, polaroid, dark environment"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 58,
"type": "ImageUpscaleWithModel",
"pos": [
833.2033991552134,
-1297.4220519872242
],
"size": {
"0": 252,
"1": 46
},
"flags": {},
"order": 40,
"mode": 0,
"inputs": [
{
"name": "upscale_model",
"type": "UPSCALE_MODEL",
"link": 78
},
{
"name": "image",
"type": "IMAGE",
"link": 268,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
175
],
"shape": 3,
"slot_index": 0
}
],
"title": "Upscale Image 4x (using Model)",
"properties": {
"Node name for S&R": "ImageUpscaleWithModel"
}
},
{
"id": 134,
"type": "Reroute",
"pos": [
660,
-1140
],
"size": [
75,
26
],
"flags": {},
"order": 38,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 267
}
],
"outputs": [
{
"name": "",
"type": "IMAGE",
"links": [
268
],
"slot_index": 0,
"label": "UPSCALE"
}
],
"title": "UPSCALE",
"properties": {
"showOutputText": false,
"horizontal": false,
"showTitle": true
}
},
{
"id": 17,
"type": "VAEDecode",
"pos": [
296.445042815109,
-1082.1889981884515
],
"size": {
"0": 194.98245239257812,
"1": 58.981964111328125
},
"flags": {
"collapsed": false,
"pinned": false
},
"order": 37,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 287
},
{
"name": "vae",
"type": "VAE",
"link": 141
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
267,
269
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"color": "#233",
"bgcolor": "#355"
},
{
"id": 137,
"type": "Reroute",
"pos": [
690,
-880
],
"size": [
75,
26
],
"flags": {
"pinned": true
},
"order": 45,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 265,
"pos": [
37.5,
0
]
}
],
"outputs": [
{
"name": "",
"type": "IMAGE",
"links": [
282
],
"label": "UPSCALED",
"slot_index": 0
}
],
"title": "UPSCALED",
"properties": {
"showOutputText": false,
"horizontal": true,
"showTitle": true
},
"color": "#232",
"bgcolor": "#353"
},
{
"id": 74,
"type": "Reroute",
"pos": [
600,
-810
],
"size": [
75,
26
],
"flags": {
"pinned": true
},
"order": 46,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 282,
"pos": [
37.5,
0
],
"slot_index": 0
}
],
"outputs": [
{
"name": "",
"type": "IMAGE",
"links": [
300
],
"slot_index": 0,
"label": "OUTPUT"
}
],
"title": "OUTPUT",
"properties": {
"showOutputText": false,
"horizontal": true,
"showTitle": true
},
"color": "#323",
"bgcolor": "#535"
},
{
"id": 135,
"type": "Reroute",
"pos": [
510,
-880
],
"size": [
75,
26
],
"flags": {
"pinned": true
},
"order": 39,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 269,
"pos": [
37.5,
0
]
}
],
"outputs": [
{
"name": "",
"type": "IMAGE",
"links": [],
"label": "NO UPSCALE",
"slot_index": 0
}
],
"title": "NO UPSCALE",
"properties": {
"showOutputText": false,
"horizontal": true,
"showTitle": true
},
"color": "#322",
"bgcolor": "#533"
},
{
"id": 45,
"type": "PrimitiveNode",
"pos": [
-1280,
680
],
"size": {
"0": 210,
"1": 82
},
"flags": {
"pinned": false
},
"order": 13,
"mode": 0,
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
316,
318
],
"widget": {
"name": "steps",
"config": [
"INT",
{
"default": 20,
"min": 1,
"max": 10000
}
]
}
}
],
"title": "base + refiner steps",
"properties": {},
"widgets_values": [
25,
"fixed"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 141,
"type": "PrimitiveNode",
"pos": [
-1070,
680
],
"size": {
"0": 210,
"1": 82
},
"flags": {
"pinned": false
},
"order": 14,
"mode": 0,
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
309
],
"slot_index": 0,
"widget": {
"name": "steps",
"config": [
"INT",
{
"default": 20,
"min": 1,
"max": 10000
}
]
}
}
],
"title": "upscale steps stops at",
"properties": {},
"widgets_values": [
30,
"fixed"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 68,
"type": "VAEDecode",
"pos": [
1965.230025116332,
-1168.2046325627637
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 44,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 91
},
{
"name": "vae",
"type": "VAE",
"link": 290
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
265
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 143,
"type": "Reroute",
"pos": [
140,
-1490
],
"size": [
75,
26
],
"flags": {},
"order": 32,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 288
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
289
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 144,
"type": "Reroute",
"pos": [
1730,
-1490
],
"size": [
75,
26
],
"flags": {},
"order": 35,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 289
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
290
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 64,
"type": "VAEEncode",
"pos": [
1229.3221298645367,
-1028.8646297312425
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 42,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 176
},
{
"name": "vae",
"type": "VAE",
"link": 292
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
85
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEEncode"
}
},
{
"id": 145,
"type": "Reroute",
"pos": [
-40,
-1010
],
"size": [
75,
26
],
"flags": {},
"order": 33,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 291
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
292
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 42,
"type": "Note",
"pos": [
-1890,
720
],
"size": {
"0": 260,
"1": 210
},
"flags": {},
"order": 15,
"mode": 0,
"title": "Note - Empty Latent Image",
"properties": {
"text": ""
},
"widgets_values": [
"This node sets the image's resolution in Width and Height.\n\nNOTE: For SDXL, it is recommended to use trained values listed below:\n - 1024 x 1024\n - 1152 x 896\n - 896 x 1152\n - 1216 x 832\n - 832 x 1216\n - 1344 x 768\n - 768 x 1344\n - 1536 x 640\n - 640 x 1536"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 57,
"type": "Note",
"pos": [
-1450,
-590
],
"size": {
"0": 210,
"1": 102.43721771240234
},
"flags": {},
"order": 16,
"mode": 0,
"title": "To ENABLE LoRA",
"properties": {
"text": ""
},
"widgets_values": [
"DO NOT FORGET\n\nto set strength, both model and clip\n\n0 = DISABLE"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 86,
"type": "ImageScaleBy",
"pos": [
1120,
-1330
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 41,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 175
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
176
],
"shape": 3,
"slot_index": 0
}
],
"title": "Scale Image By",
"properties": {
"Node name for S&R": "ImageScaleBy"
},
"widgets_values": [
"area",
0.447
]
},
{
"id": 13,
"type": "PrimitiveNode",
"pos": [
-2020,
-210
],
"size": {
"0": 348.41961669921875,
"1": 250.73471069335938
},
"flags": {
"pinned": false
},
"order": 17,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
296,
297
],
"slot_index": 0,
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
}
}
],
"title": "Positive Prompt (Text)",
"properties": {},
"widgets_values": [
"(highest quality), masterpiece, intricate, high detail, professional photo, 8k uhd, sharp focus, (realistic photograph:1.2), (medieval knight cat wears shiny armor, background is castle:1.2), bright environment"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 69,
"type": "ImageBlend",
"pos": [
470,
-110
],
"size": {
"0": 210,
"1": 102
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": null
},
{
"name": "image2",
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [],
"shape": 3,
"slot_index": 0
}
],
"title": "ImageBlend (for Contrast)",
"properties": {
"Node name for S&R": "ImageBlend"
},
"widgets_values": [
0.5,
"overlay"
]
},
{
"id": 19,
"type": "SaveImage",
"pos": [
410,
80
],
"size": {
"0": 680.335205078125,
"1": 733.1972045898438
},
"flags": {
"collapsed": false,
"pinned": false
},
"order": 47,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 300
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 54,
"type": "LoraLoader",
"pos": [
-1513.071912077449,
-762.0912908291663
],
"size": {
"0": 344.4132385253906,
"1": 126
},
"flags": {
"pinned": false
},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 301
},
{
"name": "clip",
"type": "CLIP",
"link": 58
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
302
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
59,
60
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoraLoader"
},
"widgets_values": [
"sd_xl_offset_example-lora_1.0.safetensors",
0,
0
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 83,
"type": "Reroute",
"pos": [
-1070,
-990
],
"size": [
75,
26
],
"flags": {},
"order": 26,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 302
}
],
"outputs": [
{
"name": "",
"type": "MODEL",
"links": [
161,
303
],
"slot_index": 0,
"label": "LORA"
}
],
"title": "LORA",
"properties": {
"showOutputText": false,
"horizontal": false,
"showTitle": true
}
},
{
"id": 66,
"type": "PrimitiveNode",
"pos": [
-1370,
490
],
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 19,
"mode": 0,
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
163,
304,
305
],
"slot_index": 0,
"widget": {
"name": "noise_seed",
"config": [
"INT",
{
"default": 0,
"min": 0,
"max": 18446744073709552000
}
]
}
}
],
"title": "Seed Noise",
"properties": {},
"widgets_values": [
45371764628186,
"increment"
]
},
{
"id": 67,
"type": "KSamplerAdvanced",
"pos": [
1550.3667678897857,
-972.3633150618676
],
"size": {
"0": 344.3999938964844,
"1": 518
},
"flags": {},
"order": 43,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 161
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 145
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 148
},
{
"name": "latent_image",
"type": "LATENT",
"link": 85
},
{
"name": "start_at_step",
"type": "INT",
"link": 310,
"widget": {
"name": "start_at_step",
"config": [
"INT",
{
"default": 0,
"min": 0,
"max": 10000
}
]
}
},
{
"name": "steps",
"type": "INT",
"link": 309,
"widget": {
"name": "steps",
"config": [
"INT",
{
"default": 20,
"min": 1,
"max": 10000
}
]
}
},
{
"name": "noise_seed",
"type": "INT",
"link": 305,
"widget": {
"name": "noise_seed",
"config": [
"INT",
{
"default": 0,
"min": 0,
"max": 18446744073709552000
}
]
}
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
91
],
"shape": 3,
"slot_index": 0
}
],
"title": "KSampler (Advanced) - Upscale Mixed Diff.",
"properties": {
"Node name for S&R": "KSamplerAdvanced"
},
"widgets_values": [
"enable",
45371764628186,
"randomize",
30,
7.5,
"ddim",
"ddim_uniform",
20,
1000,
"disable"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 47,
"type": "PrimitiveNode",
"pos": [
-1490,
680
],
"size": {
"0": 210,
"1": 82
},
"flags": {
"pinned": false,
"collapsed": false
},
"order": 20,
"mode": 0,
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
310,
317,
319
],
"widget": {
"name": "start_at_step",
"config": [
"INT",
{
"default": 0,
"min": 0,
"max": 10000
}
]
},
"slot_index": 0
}
],
"title": "base steps",
"properties": {},
"widgets_values": [
20,
"fixed"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 10,
"type": "KSamplerAdvanced",
"pos": [
-523.8437709864794,
-423.8056607833626
],
"size": {
"0": 315.63043212890625,
"1": 568.0575561523438
},
"flags": {
"pinned": false
},
"order": 34,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 303
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 144
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 147
},
{
"name": "latent_image",
"type": "LATENT",
"link": 27
},
{
"name": "steps",
"type": "INT",
"link": 316,
"widget": {
"name": "steps",
"config": [
"INT",
{
"default": 20,
"min": 1,
"max": 10000
}
]
},
"slot_index": 4
},
{
"name": "end_at_step",
"type": "INT",
"link": 317,
"widget": {
"name": "end_at_step",
"config": [
"INT",
{
"default": 10000,
"min": 0,
"max": 10000
}
]
},
"slot_index": 5
},
{
"name": "noise_seed",
"type": "INT",
"link": 163,
"widget": {
"name": "noise_seed",
"config": [
"INT",
{
"default": 0,
"min": 0,
"max": 18446744073709552000
}
]
},
"slot_index": 6
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
13
],
"shape": 3,
"slot_index": 0
}
],
"title": "KSampler (Advanced) - BASE",
"properties": {
"Node name for S&R": "KSamplerAdvanced"
},
"widgets_values": [
"enable",
45371764628186,
"increment",
25,
8,
"euler",
"normal",
0,
20,
"enable"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 11,
"type": "KSamplerAdvanced",
"pos": [
-329.52779922340403,
271.06763695562654
],
"size": {
"0": 299.7813415527344,
"1": 570.5645751953125
},
"flags": {
"pinned": false
},
"order": 36,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 14,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 23
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 24
},
{
"name": "latent_image",
"type": "LATENT",
"link": 13
},
{
"name": "steps",
"type": "INT",
"link": 318,
"widget": {
"name": "steps",
"config": [
"INT",
{
"default": 20,
"min": 1,
"max": 10000
}
]
},
"slot_index": 4
},
{
"name": "start_at_step",
"type": "INT",
"link": 319,
"widget": {
"name": "start_at_step",
"config": [
"INT",
{
"default": 0,
"min": 0,
"max": 10000
}
]
}
},
{
"name": "noise_seed",
"type": "INT",
"link": 304,
"widget": {
"name": "noise_seed",
"config": [
"INT",
{
"default": 0,
"min": 0,
"max": 18446744073709552000
}
]
}
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
287
],
"shape": 3,
"slot_index": 0
}
],
"title": "KSampler (Advanced) - REFINER",
"properties": {
"Node name for S&R": "KSamplerAdvanced"
},
"widgets_values": [
"disable",
45371764628186,
"fixed",
25,
8,
"euler",
"normal",
20,
1000,
"disable"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 53,
"type": "VAELoader",
"pos": [
-1760.6055709827174,
-1252.737918612773
],
"size": {
"0": 277.7905578613281,
"1": 58
},
"flags": {
"collapsed": false,
"pinned": false
},
"order": 21,
"mode": 0,
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [],
"shape": 3,
"slot_index": 0
}
],
"title": "Load VAE (From Other File)",
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"sdxl_vae.safetensors"
],
"color": "#233",
"bgcolor": "#355"
}
],
"links": [
[
13,
10,
0,
11,
3,
"LATENT"
],
[
14,
12,
0,
11,
0,
"MODEL"
],
[
19,
12,
1,
15,
0,
"CLIP"
],
[
20,
12,
1,
16,
0,
"CLIP"
],
[
23,
15,
0,
11,
1,
"CONDITIONING"
],
[
24,
16,
0,
11,
2,
"CONDITIONING"
],
[
27,
5,
0,
10,
3,
"LATENT"
],
[
58,
4,
1,
54,
1,
"CLIP"
],
[
59,
54,
1,
6,
0,
"CLIP"
],
[
60,
54,
1,
7,
0,
"CLIP"
],
[
78,
61,
0,
58,
0,
"UPSCALE_MODEL"
],
[
85,
64,
0,
67,
3,
"LATENT"
],
[
91,
67,
0,
68,
0,
"LATENT"
],
[
141,
77,
0,
17,
1,
"VAE"
],
[
143,
6,
0,
79,
0,
"*"
],
[
144,
79,
0,
10,
1,
"CONDITIONING"
],
[
145,
79,
0,
67,
1,
"CONDITIONING"
],
[
146,
7,
0,
80,
0,
"*"
],
[
147,
80,
0,
10,
2,
"CONDITIONING"
],
[
148,
80,
0,
67,
2,
"CONDITIONING"
],
[
161,
83,
0,
67,
0,
"MODEL"
],
[
163,
66,
0,
10,
6,
"INT"
],
[
175,
58,
0,
86,
0,
"IMAGE"
],
[
176,
86,
0,
64,
0,
"IMAGE"
],
[
178,
12,
2,
87,
0,
"*"
],
[
194,
87,
0,
77,
0,
"*"
],
[
265,
68,
0,
137,
0,
"*"
],
[
267,
17,
0,
134,
0,
"*"
],
[
268,
134,
0,
58,
1,
"IMAGE"
],
[
269,
17,
0,
135,
0,
"*"
],
[
282,
137,
0,
74,
0,
"*"
],
[
287,
11,
0,
17,
0,
"LATENT"
],
[
288,
77,
0,
143,
0,
"*"
],
[
289,
143,
0,
144,
0,
"*"
],
[
290,
144,
0,
68,
1,
"VAE"
],
[
291,
77,
0,
145,
0,
"*"
],
[
292,
145,
0,
64,
1,
"VAE"
],
[
296,
13,
0,
6,
1,
"STRING"
],
[
297,
13,
0,
15,
1,
"STRING"
],
[
298,
14,
0,
7,
1,
"STRING"
],
[
299,
14,
0,
16,
1,
"STRING"
],
[
300,
74,
0,
19,
0,
"IMAGE"
],
[
301,
4,
0,
54,
0,
"MODEL"
],
[
302,
54,
0,
83,
0,
"*"
],
[
303,
83,
0,
10,
0,
"MODEL"
],
[
304,
66,
0,
11,
6,
"INT"
],
[
305,
66,
0,
67,
6,
"INT"
],
[
309,
141,
0,
67,
5,
"INT"
],
[
310,
47,
0,
67,
4,
"INT"
],
[
316,
45,
0,
10,
4,
"INT"
],
[
317,
47,
0,
10,
5,
"INT"
],
[
318,
45,
0,
11,
4,
"INT"
],
[
319,
47,
0,
11,
5,
"INT"
]
],
"groups": [
{
"title": "Base CLIP Encoder",
"bounding": [
-1129,
-615,
244,
204
],
"color": "#3f789e"
},
{
"title": "Refiner CLIP Encoder",
"bounding": [
-1122,
-374,
244,
202
],
"color": "#3f789e"
},
{
"title": "Text Prompts",
"bounding": [
-2021,
-272,
350,
477
],
"color": "#3f789e"
},
{
"title": "Base & Refiner SDXL Model",
"bounding": [
-1984,
-580,
315,
290
],
"color": "#a1309b"
},
{
"title": "LoRA SDXL Model",
"bounding": [
-1514,
-826,
348,
192
],
"color": "#b06634"
},
{
"title": "Image Resolution",
"bounding": [
-1943,
490,
317,
169
],
"color": "#8AA"
},
{
"title": "VAE Decoder (Latent to Pixel)",
"bounding": [
231,
-1151,
329,
138
],
"color": "#3f789e"
},
{
"title": "Step Control",
"bounding": [
-1492,
619,
636,
144
],
"color": "#3f789e"
},
{
"title": "KSampler - Base & Refiner",
"bounding": [
-572,
-501,
553,
1352
],
"color": "#88A"
},
{
"title": "VAE Encoder (Pixel to Latent)",
"bounding": [
1162,
-1098,
334,
124
],
"color": "#a1309b"
},
{
"title": "VAE Model",
"bounding": [
-1767,
-1321,
298,
217
],
"color": "#3f789e"
},
{
"title": "VAE Decoder (Latent to Pixel)",
"bounding": [
1929,
-1251,
332,
140
],
"color": "#a1309b"
},
{
"title": "KSampler - Upscaller",
"bounding": [
1531,
-1051,
380,
611
],
"color": "#a1309b"
},
{
"title": "UPSCALE then DOWNSIZE",
"bounding": [
352,
-1442,
1134,
273
],
"color": "#a1309b"
}
],
"config": {},
"extra": {},
"version": 0.4
}