Skip to content

Instantly share code, notes, and snippets.

@HaydenReeve
Last active November 30, 2023 16:23
Show Gist options
  • Save HaydenReeve/779311d97230311259873d5f320f235e to your computer and use it in GitHub Desktop.
Save HaydenReeve/779311d97230311259873d5f320f235e to your computer and use it in GitHub Desktop.
An example workflow of using HiRez Fix with SDXL Turbo for great results
{
"last_node_id": 74,
"last_link_id": 192,
"nodes": [
{
"id": 45,
"type": "Reroute",
"pos": [
960,
-780
],
"size": [
140.8,
26
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 126
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
94
]
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#322",
"bgcolor": "#533",
"shape": 1
},
{
"id": 56,
"type": "Reroute",
"pos": [
450,
-780
],
"size": [
140.8,
26
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 122
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
126,
128
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#322",
"bgcolor": "#533",
"shape": 1
},
{
"id": 71,
"type": "Reroute",
"pos": [
-240,
-270
],
"size": [
75,
26
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 153
}
],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
154
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#322",
"bgcolor": "#533",
"shape": 1
},
{
"id": 72,
"type": "Reroute",
"pos": [
-240,
-300
],
"size": [
82,
26
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 181
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
155
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#323",
"bgcolor": "#535",
"shape": 1
},
{
"id": 60,
"type": "Reroute",
"pos": [
450,
-840
],
"size": [
75,
26
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 154
}
],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
132,
134
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#322",
"bgcolor": "#533",
"shape": 1
},
{
"id": 55,
"type": "Reroute",
"pos": [
450,
-810
],
"size": [
140.8,
26
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 121
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
125,
127
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#432",
"bgcolor": "#653",
"shape": 1
},
{
"id": 44,
"type": "Reroute",
"pos": [
960,
-810
],
"size": [
140.8,
26
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 125
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
93
]
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#432",
"bgcolor": "#653",
"shape": 1
},
{
"id": 61,
"type": "Reroute",
"pos": [
960,
-840
],
"size": [
75,
26
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 134
}
],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
135
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#322",
"bgcolor": "#533",
"shape": 1
},
{
"id": 69,
"type": "CLIPSetLastLayer",
"pos": [
-240,
-210
],
"size": {
"0": 210,
"1": 60
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 182
}
],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
158,
159
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPSetLastLayer"
},
"widgets_values": [
-1
],
"shape": 1
},
{
"id": 22,
"type": "SDTurboScheduler",
"pos": [
450,
-600
],
"size": {
"0": 210,
"1": 60
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 130,
"slot_index": 0
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
49
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "SDTurboScheduler"
},
"widgets_values": [
1
],
"shape": 1
},
{
"id": 29,
"type": "KSamplerSelect",
"pos": [
450,
-690
],
"size": {
"0": 210,
"1": 60
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
58
],
"shape": 3
}
],
"properties": {
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"euler_ancestral"
],
"shape": 1
},
{
"id": 51,
"type": "VAEDecode",
"pos": [
1200,
-420
],
"size": {
"0": 270,
"1": 60
},
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 123
},
{
"name": "vae",
"type": "VAE",
"link": 135,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
110,
147
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"shape": 1
},
{
"id": 20,
"type": "CheckpointLoaderSimple",
"pos": [
-630,
-270
],
"size": {
"0": 360,
"1": 98
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
181
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
182
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
153
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"XL\\sd_xl_turbo_1.0_fp16.safetensors"
],
"shape": 1
},
{
"id": 59,
"type": "Reroute",
"pos": [
450,
-870
],
"size": [
82,
26
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 155
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
130,
190,
191
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#323",
"bgcolor": "#535",
"shape": 1
},
{
"id": 42,
"type": "KSampler",
"pos": [
1200,
-720
],
"size": {
"0": 270,
"1": 270
},
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 188
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 93
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 94
},
{
"name": "latent_image",
"type": "LATENT",
"link": 95
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
123
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
0,
"fixed",
6,
1.2,
"euler_ancestral",
"simple",
0.46
],
"shape": 1
},
{
"id": 49,
"type": "PreviewImage",
"pos": [
960,
-270
],
"size": {
"0": 510,
"1": 540
},
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 110
}
],
"properties": {
"Node name for S&R": "PreviewImage"
},
"shape": 1
},
{
"id": 53,
"type": "Reroute",
"pos": [
960,
-870
],
"size": [
82,
26
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 190
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
188
],
"slot_index": 0
}
],
"properties": {
"showOutputText": true,
"horizontal": false
},
"color": "#323",
"bgcolor": "#535",
"shape": 1
},
{
"id": 25,
"type": "PreviewImage",
"pos": [
450,
-270
],
"size": {
"0": 510,
"1": 540
},
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 53
}
],
"properties": {
"Node name for S&R": "PreviewImage"
},
"shape": 1
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
450,
-510
],
"size": {
"0": 210,
"1": 120
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
23
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
512,
512,
1
],
"shape": 1
},
{
"id": 40,
"type": "LatentUpscaleBy",
"pos": [
960,
-720
],
"size": {
"0": 210,
"1": 90
},
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 185
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
95
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "LatentUpscaleBy"
},
"widgets_values": [
"bislerp",
2
],
"shape": 1
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
0,
-90
],
"size": [
420,
90
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 159
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
122
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"text, watermark"
],
"color": "#322",
"bgcolor": "#533",
"shape": 1
},
{
"id": 63,
"type": "SaveImage",
"pos": [
1500,
-300
],
"size": {
"0": 510,
"1": 570
},
"flags": {},
"order": 27,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 192
}
],
"properties": {},
"widgets_values": [
"%date:yyyy-MM-d%/%date:yyyy-MM-d_h-m-s%_SDXLTurbo"
],
"color": "#232",
"bgcolor": "#353",
"shape": 1
},
{
"id": 65,
"type": "ImageUpscaleWithModel",
"pos": [
1500,
-420
],
"size": [
240,
90
],
"flags": {
"collapsed": false
},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "upscale_model",
"type": "UPSCALE_MODEL",
"link": 145
},
{
"name": "image",
"type": "IMAGE",
"link": 147
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
146
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageUpscaleWithModel"
},
"color": "#223",
"bgcolor": "#335",
"shape": 1
},
{
"id": 66,
"type": "ImageScaleBy",
"pos": [
1740,
-420
],
"size": [
270,
90
],
"flags": {},
"order": 26,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 146
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
192
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ImageScaleBy"
},
"widgets_values": [
"bilinear",
0.5
],
"color": "#223",
"bgcolor": "#335",
"shape": 1
},
{
"id": 64,
"type": "UpscaleModelLoader",
"pos": [
1500,
-510
],
"size": [
510,
60
],
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "UPSCALE_MODEL",
"type": "UPSCALE_MODEL",
"links": [
145
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "UpscaleModelLoader"
},
"widgets_values": [
"RealESRGAN_x4plus.pth"
],
"color": "#223",
"bgcolor": "#335",
"shape": 1
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
690,
-420
],
"size": {
"0": 240,
"1": 60
},
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 184
},
{
"name": "vae",
"type": "VAE",
"link": 132,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
53
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"shape": 1
},
{
"id": 13,
"type": "SamplerCustom",
"pos": [
690,
-690
],
"size": [
240,
240
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 191,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 127,
"slot_index": 1
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 128
},
{
"name": "sampler",
"type": "SAMPLER",
"link": 58,
"slot_index": 3
},
{
"name": "sigmas",
"type": "SIGMAS",
"link": 49,
"slot_index": 4
},
{
"name": "latent_image",
"type": "LATENT",
"link": 23,
"slot_index": 5
}
],
"outputs": [
{
"name": "output",
"type": "LATENT",
"links": [
185
],
"shape": 3,
"slot_index": 0
},
{
"name": "denoised_output",
"type": "LATENT",
"links": [
184
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "SamplerCustom"
},
"widgets_values": [
true,
0,
"fixed",
1
],
"shape": 1
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
0,
-270
],
"size": [
420,
150
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 158,
"slot_index": 0
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
121
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"horror aesthetic scenery of a man in oil screaming skulls"
],
"color": "#432",
"bgcolor": "#653",
"shape": 1
}
],
"links": [
[
23,
5,
0,
13,
5,
"LATENT"
],
[
49,
22,
0,
13,
4,
"SIGMAS"
],
[
53,
8,
0,
25,
0,
"IMAGE"
],
[
58,
29,
0,
13,
3,
"SAMPLER"
],
[
93,
44,
0,
42,
1,
"CONDITIONING"
],
[
94,
45,
0,
42,
2,
"CONDITIONING"
],
[
95,
40,
0,
42,
3,
"LATENT"
],
[
110,
51,
0,
49,
0,
"IMAGE"
],
[
121,
6,
0,
55,
0,
"*"
],
[
122,
7,
0,
56,
0,
"*"
],
[
123,
42,
0,
51,
0,
"LATENT"
],
[
125,
55,
0,
44,
0,
"*"
],
[
126,
56,
0,
45,
0,
"*"
],
[
127,
55,
0,
13,
1,
"CONDITIONING"
],
[
128,
56,
0,
13,
2,
"CONDITIONING"
],
[
130,
59,
0,
22,
0,
"MODEL"
],
[
132,
60,
0,
8,
1,
"VAE"
],
[
134,
60,
0,
61,
0,
"*"
],
[
135,
61,
0,
51,
1,
"VAE"
],
[
145,
64,
0,
65,
0,
"UPSCALE_MODEL"
],
[
146,
65,
0,
66,
0,
"IMAGE"
],
[
147,
51,
0,
65,
1,
"IMAGE"
],
[
153,
20,
2,
71,
0,
"*"
],
[
154,
71,
0,
60,
0,
"*"
],
[
155,
72,
0,
59,
0,
"*"
],
[
158,
69,
0,
6,
0,
"CLIP"
],
[
159,
69,
0,
7,
0,
"CLIP"
],
[
181,
20,
0,
72,
0,
"*"
],
[
182,
20,
1,
69,
0,
"CLIP"
],
[
184,
13,
1,
8,
0,
"LATENT"
],
[
185,
13,
0,
40,
0,
"LATENT"
],
[
188,
53,
0,
42,
0,
"MODEL"
],
[
190,
59,
0,
53,
0,
"*"
],
[
191,
59,
0,
13,
0,
"MODEL"
],
[
192,
66,
0,
63,
0,
"IMAGE"
]
],
"groups": [
{
"title": "Group",
"bounding": [
-10,
-344,
440,
354
],
"color": "#3f789e",
"font_size": 24
},
{
"title": "Group",
"bounding": [
440,
-914,
500,
564
],
"color": "#3f789e",
"font_size": 24
},
{
"title": "Group",
"bounding": [
440,
-344,
1040,
624
],
"color": "#3f789e",
"font_size": 24
},
{
"title": "Group",
"bounding": [
-640,
-344,
620,
204
],
"color": "#3f789e",
"font_size": 24
},
{
"title": "Group",
"bounding": [
950,
-914,
530,
564
],
"color": "#3f789e",
"font_size": 24
},
{
"title": "Enable To Save",
"bounding": [
1490,
-584,
530,
864
],
"color": "#3f789e",
"font_size": 24
}
],
"config": {},
"extra": {},
"version": 0.4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment