Files
Ken Simpson 38607132d4 Big refactoring of the code and introduction of a new custom sampler node that
will replace the older KSampler type nodes. Stand by for a new example workflow.
2024-01-04 14:10:31 -08:00

3155 lines
50 KiB
JSON

{
"last_node_id": 67,
"last_link_id": 131,
"nodes": [
{
"id": 12,
"type": "Reroute",
"pos": [
930,
130
],
"size": [
75,
26
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 50
}
],
"outputs": [
{
"name": "",
"type": "MODEL",
"links": [
24,
25
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 14,
"type": "Reroute",
"pos": [
1430,
286
],
"size": [
75,
26
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 27
}
],
"outputs": [
{
"name": "",
"type": "CONDITIONING",
"links": [
29
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 19,
"type": "Reroute",
"pos": [
515,
386
],
"size": [
75,
26
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 34
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
35,
74
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 2,
"type": "CheckpointLoaderSimple",
"pos": [
100,
130
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
48
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
51
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
34
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"epic-realism.safetensors"
]
},
{
"id": 28,
"type": "LoraLoader",
"pos": [
515,
130
],
"size": {
"0": 315,
"1": 126
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 48
},
{
"name": "clip",
"type": "CLIP",
"link": 51
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
49,
50,
54,
57
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
52,
53
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoraLoader"
},
"widgets_values": [
"lcm_sd15.safetensors",
1,
1
]
},
{
"id": 15,
"type": "Reroute",
"pos": [
1430,
1046
],
"size": [
75,
26
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 28
}
],
"outputs": [
{
"name": "",
"type": "CONDITIONING",
"links": [
30
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 4,
"type": "CLIPTextEncode",
"pos": [
930,
616
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 53,
"slot_index": 0
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
12,
17,
28,
59
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
""
]
},
{
"id": 13,
"type": "Reroute",
"pos": [
1430,
130
],
"size": [
75,
26
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 25
}
],
"outputs": [
{
"name": "",
"type": "MODEL",
"links": [
26,
41,
61
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 9,
"type": "KSampler",
"pos": [
1430,
442
],
"size": {
"0": 315,
"1": 474
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 49,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 16,
"slot_index": 1
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 17,
"slot_index": 2
},
{
"name": "latent_image",
"type": "LATENT",
"link": 19
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
20,
72
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
287551649495875,
"fixed",
36,
1.5,
"lcm",
"sgm_uniform",
1
]
},
{
"id": 7,
"type": "EmptyLatentImage",
"pos": [
100,
358
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
19
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
512,
512,
1
]
},
{
"id": 18,
"type": "VAEDecode",
"pos": [
3177.220809296877,
-428.0300984750961
],
"size": {
"0": 210,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 30,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 33
},
{
"name": "vae",
"type": "VAE",
"link": 38
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
39
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 30,
"type": "Batch Unsampler",
"pos": [
2210,
205
],
"size": {
"0": 317.4000244140625,
"1": 174
},
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 54
},
{
"name": "latent_image",
"type": "LATENT",
"link": 55,
"slot_index": 1
}
],
"outputs": [
{
"name": "latent_batch",
"type": "LATENT",
"links": [
56
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Batch Unsampler"
},
"widgets_values": [
"lcm",
"sgm_uniform",
20,
0,
20
]
},
{
"id": 31,
"type": "LatentFromBatch",
"pos": [
3003,
255
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 31,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 60
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
68
],
"shape": 3,
"slot_index": 0
}
],
"title": "Select the Final Latent Output",
"properties": {
"Node name for S&R": "LatentFromBatch"
},
"widgets_values": [
21,
1
]
},
{
"id": 33,
"type": "VAEDecode",
"pos": [
3684,
152
],
"size": {
"0": 210,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 47,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 65
},
{
"name": "vae",
"type": "VAE",
"link": 66
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
67
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 22,
"type": "PreviewImage",
"pos": [
3781,
-499
],
"size": {
"0": 505.21875,
"1": 540.890625
},
"flags": {},
"order": 39,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 39
}
],
"title": "Upscaled with Iterative Mixing (Simple)",
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 34,
"type": "PreviewImage",
"pos": [
3791,
190
],
"size": {
"0": 505.21875,
"1": 540.890625
},
"flags": {},
"order": 52,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 67
}
],
"title": "Upscaled with Iterative Mixing",
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 26,
"type": "PreviewImage",
"pos": [
3788,
873
],
"size": {
"0": 505.21875,
"1": 540.890625
},
"flags": {},
"order": 37,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 46
}
],
"title": "Upscaled with Regular Sampling",
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 25,
"type": "VAEDecode",
"pos": [
3471,
879
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 28,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 47
},
{
"name": "vae",
"type": "VAE",
"link": 45
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
46
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 43,
"type": "Reroute",
"pos": [
1420,
2669
],
"size": [
75,
26
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 80
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
81,
88,
91,
94,
102,
111
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 37,
"type": "VAEDecode",
"pos": [
1512,
966
],
"size": {
"0": 210,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 72
},
{
"name": "vae",
"type": "VAE",
"link": 74,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
73
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 38,
"type": "PreviewImage",
"pos": [
1475,
1021
],
"size": {
"0": 210,
"1": 246
},
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 73
}
],
"title": "Low Resolution Image",
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 16,
"type": "Reroute",
"pos": [
1914,
137
],
"size": [
75,
26
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 29
}
],
"outputs": [
{
"name": "",
"type": "CONDITIONING",
"links": [
31,
42,
62
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 17,
"type": "Reroute",
"pos": [
1919,
673
],
"size": [
75,
26
],
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 30
}
],
"outputs": [
{
"name": "",
"type": "CONDITIONING",
"links": [
32,
43,
63
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 54,
"type": "Reroute",
"pos": [
1934,
826
],
"size": [
75,
26
],
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 102,
"slot_index": 0
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
101,
123,
129
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 20,
"type": "Reroute",
"pos": [
1147,
1319
],
"size": [
75,
26
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 35
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
36,
80
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 21,
"type": "Reroute",
"pos": [
2856,
1328
],
"size": [
75,
26
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 36
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
38,
45,
66
],
"slot_index": 0
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 49,
"type": "VAEDecode",
"pos": [
3277,
1657
],
"size": {
"0": 210,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 33,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 96
},
{
"name": "vae",
"type": "VAE",
"link": 94,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
95
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 41,
"type": "VAEDecode",
"pos": [
2671,
1659
],
"size": {
"0": 210,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 34,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 103
},
{
"name": "vae",
"type": "VAE",
"link": 81
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
79
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 47,
"type": "VAEDecode",
"pos": [
2079,
1653
],
"size": {
"0": 210,
"1": 46
},
"flags": {
"collapsed": true
},
"order": 32,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 90
},
{
"name": "vae",
"type": "VAE",
"link": 91,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
92
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 44,
"type": "LatentSubtract",
"pos": [
2683,
2501
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 35,
"mode": 0,
"inputs": [
{
"name": "samples1",
"type": "LATENT",
"link": 104,
"slot_index": 0
},
{
"name": "samples2",
"type": "LATENT",
"link": 105,
"slot_index": 1
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
87
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "LatentSubtract"
}
},
{
"id": 58,
"type": "LatentFromBatch",
"pos": [
2958,
2498
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 36,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 119,
"slot_index": 0
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
116
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "LatentFromBatch"
},
"widgets_values": [
2,
20
]
},
{
"id": 57,
"type": "PreviewImage",
"pos": [
3230,
2820
],
"size": {
"0": 792.3056030273438,
"1": 829.43603515625
},
"flags": {},
"order": 55,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 112
}
],
"title": "z_prime - z_out",
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 45,
"type": "VAEDecode",
"pos": [
2399,
2708
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 44,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 87
},
{
"name": "vae",
"type": "VAE",
"link": 88,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
89
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 56,
"type": "VAEDecode",
"pos": [
3230,
2670
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 51,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 113
},
{
"name": "vae",
"type": "VAE",
"link": 111,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
112
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 55,
"type": "LatentSubtract",
"pos": [
2950,
2670
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 45,
"mode": 0,
"inputs": [
{
"name": "samples1",
"type": "LATENT",
"link": 116,
"slot_index": 0
},
{
"name": "samples2",
"type": "LATENT",
"link": 117,
"slot_index": 1
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
113
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "LatentSubtract"
}
},
{
"id": 51,
"type": "LatentSubtract",
"pos": [
4431.488874325997,
346.3297908054905
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 48,
"mode": 0,
"inputs": [
{
"name": "samples1",
"type": "LATENT",
"link": 97
},
{
"name": "samples2",
"type": "LATENT",
"link": 98
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
99
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "LatentSubtract"
}
},
{
"id": 52,
"type": "VAEDecode",
"pos": [
4438.488874325997,
448.3297908054907
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 53,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 99
},
{
"name": "vae",
"type": "VAE",
"link": 101,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
100
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 53,
"type": "PreviewImage",
"pos": [
4432.488874325997,
570.3297908054903
],
"size": {
"0": 1109.0472412109375,
"1": 892.050048828125
},
"flags": {},
"order": 56,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 100
}
],
"title": "Differences are in the details",
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 59,
"type": "Note",
"pos": [
4158,
1727
],
"size": {
"0": 483.2784118652344,
"1": 941.452880859375
},
"flags": {},
"order": 2,
"mode": 0,
"properties": {
"text": ""
},
"widgets_values": [
"In this area, we show the step by step mixing process. The leftmost batch is the noised \"z_primes\" which were made from the original upscaled latent. The middle batch is the intermediate de-noised latents at each step. And the third batch is the final resulting sequence of de-noised latents, mixing the z_primes with the intermediates according to the blending schedule.\n\nBelow, we show the differences between the z_primes and each of the intermediates and the outputs. As you can see, the differences are mostly random at first, but as de-noising progresses, the differences are reduced, which makes sense because we are hopefully guiding diffusion to a similarly structured output image."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 60,
"type": "Note",
"pos": [
5440.488874325997,
541.3297908054903
],
"size": {
"0": 483.2784118652344,
"1": 941.452880859375
},
"flags": {},
"order": 3,
"mode": 0,
"properties": {
"text": ""
},
"widgets_values": [
"This final image shows the difference between the iteratively mixed upscale and the simple upscale (no iterative mixing). Notice how the differences tend to be in high frequency areas like the edges of things. This suggests that the mixing process is changing details of the image that might have been lower frequency in the upscale that used just a pure KSampler.\n\nThe mixing process focuses on higher frequency areas of the image because it is guided by the noised latent batch, z_prime."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 10,
"type": "LatentUpscaleBy",
"pos": [
1845,
286
],
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 20
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
21,
40,
55,
125,
127
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "LatentUpscaleBy"
},
"widgets_values": [
"bicubic",
2
]
},
{
"id": 64,
"type": "Note",
"pos": [
5440,
-710
],
"size": {
"0": 483.2784118652344,
"1": 941.452880859375
},
"flags": {},
"order": 4,
"mode": 0,
"properties": {
"text": ""
},
"widgets_values": [
"Here we show the details added by the mixing process in comparison with the details added by a simple KSampler running on the upscaled latents."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 63,
"type": "PreviewImage",
"pos": [
4440,
-680
],
"size": {
"0": 519.615478515625,
"1": 878.6768188476562
},
"flags": {},
"order": 57,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 124
}
],
"title": "Changes through Iterative Mixing KSampler",
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 62,
"type": "VAEDecode",
"pos": [
4440,
-800
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 54,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 122
},
{
"name": "vae",
"type": "VAE",
"link": 123,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
124
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 61,
"type": "LatentSubtract",
"pos": [
4440,
-900
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 49,
"mode": 0,
"inputs": [
{
"name": "samples1",
"type": "LATENT",
"link": 120
},
{
"name": "samples2",
"type": "LATENT",
"link": 125,
"slot_index": 1
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
122
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "LatentSubtract"
}
},
{
"id": 66,
"type": "VAEDecode",
"pos": [
4990,
-790
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 38,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 128
},
{
"name": "vae",
"type": "VAE",
"link": 129,
"slot_index": 1
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
130
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 65,
"type": "LatentSubtract",
"pos": [
4990,
-890
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 29,
"mode": 0,
"inputs": [
{
"name": "samples1",
"type": "LATENT",
"link": 131,
"slot_index": 0
},
{
"name": "samples2",
"type": "LATENT",
"link": 127,
"slot_index": 1
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
128
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "LatentSubtract"
}
},
{
"id": 67,
"type": "PreviewImage",
"pos": [
4975,
-676
],
"size": {
"0": 523.66650390625,
"1": 871.4956665039062
},
"flags": {},
"order": 46,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 130
}
],
"title": "Naive KSample Refinement",
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 11,
"type": "KSampler",
"pos": [
2617.220809296877,
-448.0300984750961
],
"size": {
"0": 315,
"1": 474
},
"flags": {},
"order": 26,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 26,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 31
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 32
},
{
"name": "latent_image",
"type": "LATENT",
"link": 22
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
33
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
704097317703592,
"fixed",
10,
1.5,
"lcm",
"sgm_uniform",
0.15
]
},
{
"id": 3,
"type": "CLIPTextEncode",
"pos": [
930,
286
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 52
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
11,
16,
27,
58
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"a couple sitting in a french bistro, (fine suit), (dark hair), tanned, beard, (chocolate cake), wine, fancy, (leather chair)"
]
},
{
"id": 8,
"type": "Iterative Mixing KSampler",
"pos": [
2207.220809296877,
-448.0300984750961
],
"size": {
"0": 315,
"1": 358
},
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 24,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 11,
"slot_index": 1
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 12,
"slot_index": 2
},
{
"name": "latent_image",
"type": "LATENT",
"link": 21,
"slot_index": 3
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
22
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Iterative Mixing KSampler"
},
"widgets_values": [
216597486754262,
"fixed",
32,
1.5,
"lcm",
"sgm_uniform",
1,
2,
"linear"
]
},
{
"id": 29,
"type": "Iterative Mixing KSampler Advanced",
"pos": [
2578,
207
],
"size": {
"0": 317.4000244140625,
"1": 310
},
"flags": {},
"order": 27,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 57,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 58,
"slot_index": 1
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 59,
"slot_index": 2
},
{
"name": "latent_image_batch",
"type": "LATENT",
"link": 56
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
60,
90
],
"shape": 3,
"slot_index": 0
},
{
"name": "LATENT",
"type": "LATENT",
"links": [
96,
104,
117
],
"shape": 3,
"slot_index": 1
},
{
"name": "LATENT",
"type": "LATENT",
"links": [
103,
105,
119
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "Iterative Mixing KSampler Advanced"
},
"widgets_values": [
216597486754262,
"fixed",
1.5,
"lcm",
"sgm_uniform",
1,
2,
true,
"cosine"
]
},
{
"id": 24,
"type": "KSampler",
"pos": [
2239,
897
],
"size": {
"0": 315,
"1": 474
},
"flags": {},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 41
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 42
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 43
},
{
"name": "latent_image",
"type": "LATENT",
"link": 40
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
47,
98,
131
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
704097317703591,
"fixed",
20,
1.5,
"lcm",
"sgm_uniform",
0.25
]
},
{
"id": 32,
"type": "KSampler",
"pos": [
3402,
210
],
"size": {
"0": 315,
"1": 474
},
"flags": {},
"order": 40,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 61,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 62
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 63
},
{
"name": "latent_image",
"type": "LATENT",
"link": 68
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
65,
97,
120
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
704097317703591,
"fixed",
10,
1.5,
"lcm",
"sgm_uniform",
0.25
]
},
{
"id": 42,
"type": "PreviewImage",
"pos": [
2793,
1728
],
"size": {
"0": 633.0364379882812,
"1": 702.8574829101562
},
"flags": {},
"order": 43,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 79
}
],
"title": "Intermediates",
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 50,
"type": "PreviewImage",
"pos": [
3471,
1723
],
"size": {
"0": 635.0738525390625,
"1": 695.31787109375
},
"flags": {},
"order": 42,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 95
}
],
"title": "z_primes",
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 48,
"type": "PreviewImage",
"pos": [
2160,
1723
],
"size": {
"0": 604.286865234375,
"1": 706.72021484375
},
"flags": {},
"order": 41,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 92
}
],
"title": "z_out",
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 46,
"type": "PreviewImage",
"pos": [
2380,
2820
],
"size": {
"0": 792.3056030273438,
"1": 829.43603515625
},
"flags": {},
"order": 50,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 89
}
],
"title": "z_prime - Intermediates",
"properties": {
"Node name for S&R": "PreviewImage"
}
}
],
"links": [
[
11,
3,
0,
8,
1,
"CONDITIONING"
],
[
12,
4,
0,
8,
2,
"CONDITIONING"
],
[
16,
3,
0,
9,
1,
"CONDITIONING"
],
[
17,
4,
0,
9,
2,
"CONDITIONING"
],
[
19,
7,
0,
9,
3,
"LATENT"
],
[
20,
9,
0,
10,
0,
"LATENT"
],
[
21,
10,
0,
8,
3,
"LATENT"
],
[
22,
8,
0,
11,
3,
"LATENT"
],
[
24,
12,
0,
8,
0,
"MODEL"
],
[
25,
12,
0,
13,
0,
"*"
],
[
26,
13,
0,
11,
0,
"MODEL"
],
[
27,
3,
0,
14,
0,
"*"
],
[
28,
4,
0,
15,
0,
"*"
],
[
29,
14,
0,
16,
0,
"*"
],
[
30,
15,
0,
17,
0,
"*"
],
[
31,
16,
0,
11,
1,
"CONDITIONING"
],
[
32,
17,
0,
11,
2,
"CONDITIONING"
],
[
33,
11,
0,
18,
0,
"LATENT"
],
[
34,
2,
2,
19,
0,
"*"
],
[
35,
19,
0,
20,
0,
"*"
],
[
36,
20,
0,
21,
0,
"*"
],
[
38,
21,
0,
18,
1,
"VAE"
],
[
39,
18,
0,
22,
0,
"IMAGE"
],
[
40,
10,
0,
24,
3,
"LATENT"
],
[
41,
13,
0,
24,
0,
"MODEL"
],
[
42,
16,
0,
24,
1,
"CONDITIONING"
],
[
43,
17,
0,
24,
2,
"CONDITIONING"
],
[
45,
21,
0,
25,
1,
"VAE"
],
[
46,
25,
0,
26,
0,
"IMAGE"
],
[
47,
24,
0,
25,
0,
"LATENT"
],
[
48,
2,
0,
28,
0,
"MODEL"
],
[
49,
28,
0,
9,
0,
"MODEL"
],
[
50,
28,
0,
12,
0,
"*"
],
[
51,
2,
1,
28,
1,
"CLIP"
],
[
52,
28,
1,
3,
0,
"CLIP"
],
[
53,
28,
1,
4,
0,
"CLIP"
],
[
54,
28,
0,
30,
0,
"MODEL"
],
[
55,
10,
0,
30,
1,
"LATENT"
],
[
56,
30,
0,
29,
3,
"LATENT"
],
[
57,
28,
0,
29,
0,
"MODEL"
],
[
58,
3,
0,
29,
1,
"CONDITIONING"
],
[
59,
4,
0,
29,
2,
"CONDITIONING"
],
[
60,
29,
0,
31,
0,
"LATENT"
],
[
61,
13,
0,
32,
0,
"MODEL"
],
[
62,
16,
0,
32,
1,
"CONDITIONING"
],
[
63,
17,
0,
32,
2,
"CONDITIONING"
],
[
65,
32,
0,
33,
0,
"LATENT"
],
[
66,
21,
0,
33,
1,
"VAE"
],
[
67,
33,
0,
34,
0,
"IMAGE"
],
[
68,
31,
0,
32,
3,
"LATENT"
],
[
72,
9,
0,
37,
0,
"LATENT"
],
[
73,
37,
0,
38,
0,
"IMAGE"
],
[
74,
19,
0,
37,
1,
"VAE"
],
[
79,
41,
0,
42,
0,
"IMAGE"
],
[
80,
20,
0,
43,
0,
"*"
],
[
81,
43,
0,
41,
1,
"VAE"
],
[
87,
44,
0,
45,
0,
"LATENT"
],
[
88,
43,
0,
45,
1,
"VAE"
],
[
89,
45,
0,
46,
0,
"IMAGE"
],
[
90,
29,
0,
47,
0,
"LATENT"
],
[
91,
43,
0,
47,
1,
"VAE"
],
[
92,
47,
0,
48,
0,
"IMAGE"
],
[
94,
43,
0,
49,
1,
"VAE"
],
[
95,
49,
0,
50,
0,
"IMAGE"
],
[
96,
29,
1,
49,
0,
"LATENT"
],
[
97,
32,
0,
51,
0,
"LATENT"
],
[
98,
24,
0,
51,
1,
"LATENT"
],
[
99,
51,
0,
52,
0,
"LATENT"
],
[
100,
52,
0,
53,
0,
"IMAGE"
],
[
101,
54,
0,
52,
1,
"VAE"
],
[
102,
43,
0,
54,
0,
"*"
],
[
103,
29,
2,
41,
0,
"LATENT"
],
[
104,
29,
1,
44,
0,
"LATENT"
],
[
105,
29,
2,
44,
1,
"LATENT"
],
[
111,
43,
0,
56,
1,
"VAE"
],
[
112,
56,
0,
57,
0,
"IMAGE"
],
[
113,
55,
0,
56,
0,
"LATENT"
],
[
116,
58,
0,
55,
0,
"LATENT"
],
[
117,
29,
1,
55,
1,
"LATENT"
],
[
119,
29,
2,
58,
0,
"LATENT"
],
[
120,
32,
0,
61,
0,
"LATENT"
],
[
122,
61,
0,
62,
0,
"LATENT"
],
[
123,
54,
0,
62,
1,
"VAE"
],
[
124,
62,
0,
63,
0,
"IMAGE"
],
[
125,
10,
0,
61,
1,
"LATENT"
],
[
127,
10,
0,
65,
1,
"LATENT"
],
[
128,
65,
0,
66,
0,
"LATENT"
],
[
129,
54,
0,
66,
1,
"VAE"
],
[
130,
66,
0,
67,
0,
"IMAGE"
],
[
131,
24,
0,
65,
0,
"LATENT"
]
],
"groups": [
{
"title": "Generate a Low Resolution Image",
"bounding": [
90,
56,
1665,
1338
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Rough Latent Upscale",
"bounding": [
1835,
86,
245,
1308
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Use the Simple Iterative Mixing Node with a Refinement KSampler",
"bounding": [
2197,
-572,
2110,
631
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Use the Advanced Iterative Mixing KSampler to peak under the hood",
"bounding": [
2200,
78,
2113,
688
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "For Comparison: A simple one step polishing of the roughly upscaled latents",
"bounding": [
2201,
787,
2115,
645
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Technical Analysis",
"bounding": [
2069,
1579,
2047,
2080
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Analysis of the final result in comparison to a naive upscale",
"bounding": [
4421,
272,
1512,
1220
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Group",
"bounding": [
4430,
-974,
1503,
1215
],
"color": "#3f789e",
"font_size": 24,
"locked": false
}
],
"config": {},
"extra": {},
"version": 0.4
}