Files
PressWagon-ComfyUI-StringsA…/Example workflows/Image difference demo.json
T
PressWagon 6e584bee8b Improvements to the ImageDiff node and updated demonstration workflow
The ImageDiff node now has a pair of toggles: when console_mse is false the Mean Square Error calculation is skipped; when contrast_boost is true the difference between images is boosted by a linear scaling factor (currently set to 5).

The calculation of difference has also been modified to take the absolute value, the resulting image is now purely magnitudinal and does not include directionality of change (I think this should pretty much always be better suited to the imagined use case).
2025-04-12 13:07:47 +10:00

3279 lines
54 KiB
JSON

{
"id": "00000000-0000-0000-0000-000000000000",
"revision": 0,
"last_node_id": 75,
"last_link_id": 121,
"nodes": [
{
"id": 10,
"type": "PreviewImage",
"pos": [
1653.8775634765625,
762.851318359375
],
"size": [
489.7520751953125,
638.0399780273438
],
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 13
}
],
"outputs": [],
"title": "Base image",
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 13,
"type": "PreviewImage",
"pos": [
2673.876708984375,
762.851318359375
],
"size": [
489.7520751953125,
638.0399780273438
],
"flags": {},
"order": 30,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 16
}
],
"outputs": [],
"title": "Image difference",
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
723.8766479492188,
432.85125732421875
],
"size": [
315,
106
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
3,
51
]
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
768,
1024,
1
]
},
{
"id": 16,
"type": "UpscaleModelLoader",
"pos": [
726.8377075195312,
1714.770751953125
],
"size": [
315,
58
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "UPSCALE_MODEL",
"shape": 3,
"type": "UPSCALE_MODEL",
"links": [
17
]
}
],
"properties": {
"Node name for S&R": "UpscaleModelLoader"
},
"widgets_values": [
"4xUltrasharp_4xUltrasharpV10.pth"
]
},
{
"id": 21,
"type": "KSampler",
"pos": [
1431.6376953125,
1713.1708984375
],
"size": [
315,
474
],
"flags": {},
"order": 41,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 39
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 40
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 41
},
{
"name": "latent_image",
"type": "LATENT",
"link": 26
}
],
"outputs": [
{
"name": "LATENT",
"shape": 3,
"type": "LATENT",
"slot_index": 0,
"links": [
27
]
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
1010398738051311,
"fixed",
20,
5,
"euler_ancestral",
"karras",
0.5500000000000002,
""
]
},
{
"id": 2,
"type": "CLIPTextEncode",
"pos": [
1080,
300
],
"size": [
400,
200
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 1
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
5,
40
]
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"pixel art, bird, sky, trees, clouds,"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 6,
"type": "VAEDecode",
"pos": [
1129.41796875,
615.8209228515625
],
"size": [
210,
46
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 7
},
{
"name": "vae",
"type": "VAE",
"link": 8
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
9,
10,
13
]
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 3,
"type": "CLIPTextEncode",
"pos": [
1500,
300
],
"size": [
400,
200
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 2
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
6,
41
]
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"nsfw"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 15,
"type": "ImageUpscaleWithModel",
"pos": [
786.8377685546875,
1834.770751953125
],
"size": [
241.79998779296875,
46
],
"flags": {},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "upscale_model",
"type": "UPSCALE_MODEL",
"link": 17
},
{
"name": "image",
"type": "IMAGE",
"link": 47
}
],
"outputs": [
{
"name": "IMAGE",
"shape": 3,
"type": "IMAGE",
"slot_index": 0,
"links": [
20
]
}
],
"properties": {
"Node name for S&R": "ImageUpscaleWithModel"
},
"widgets_values": []
},
{
"id": 12,
"type": "PreviewImage",
"pos": [
2163.876220703125,
762.851318359375
],
"size": [
489.7520751953125,
638.0399780273438
],
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 15
}
],
"outputs": [],
"title": "Mosaic applied image",
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 8,
"type": "MosaicEffectNode",
"pos": [
1647.70361328125,
639.6339721679688
],
"size": [
315,
58
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 10
}
],
"outputs": [
{
"name": "MosaicImage",
"type": "IMAGE",
"links": [
11,
15,
47
]
}
],
"properties": {
"Node name for S&R": "MosaicEffectNode"
},
"widgets_values": [
8
]
},
{
"id": 35,
"type": "CLIPTextEncode",
"pos": [
4234.90185546875,
198.44786071777344
],
"size": [
400,
200
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 53
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
50,
61,
65,
68,
111
]
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"nsfw"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 1,
"type": "CheckpointLoaderSimple",
"pos": [
720,
300
],
"size": [
315,
98
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
4,
39,
48,
59,
63,
109
]
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
1,
2,
52,
53
]
},
{
"name": "VAE",
"type": "VAE",
"links": [
8,
37,
38,
72
]
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"glances_v1.safetensors"
]
},
{
"id": 49,
"type": "PreviewImage",
"pos": [
6161.8291015625,
315.66595458984375
],
"size": [
325.48321533203125,
427.4737854003906
],
"flags": {},
"order": 46,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 85
}
],
"outputs": [],
"title": "Output (1)",
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 48,
"type": "PreviewImage",
"pos": [
6500.998046875,
313.1698913574219
],
"size": [
330.55950927734375,
437.6261291503906
],
"flags": {},
"order": 48,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 84
}
],
"outputs": [],
"title": "Output (2)",
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 34,
"type": "CLIPTextEncode",
"pos": [
3804.415283203125,
199.40135192871094
],
"size": [
400,
200
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 52
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
49,
60,
64,
67,
110
]
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"1girl, portrait, face focus, head tilt, v-sign, grinning, incredibly absurdres, highres, masterpiece, newest"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 55,
"type": "PreviewImage",
"pos": [
6500.998046875,
793.1698608398438
],
"size": [
334.59722900390625,
445.5865783691406
],
"flags": {},
"order": 56,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 95
}
],
"outputs": [],
"title": " Input to Output (2)",
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 60,
"type": "PreviewImage",
"pos": [
6863.27099609375,
833.5726318359375
],
"size": [
334.59722900390625,
445.5865783691406
],
"flags": {},
"order": 60,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 99
}
],
"outputs": [],
"title": "Difference of Differences (1 vs 2)",
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 37,
"type": "PreviewImage",
"pos": [
4258.08984375,
555.7373657226562
],
"size": [
210,
246
],
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 56
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 36,
"type": "VAEDecode",
"pos": [
4258.08984375,
465.7373352050781
],
"size": [
210,
46
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 54
},
{
"name": "vae",
"type": "VAE",
"link": 73
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
56,
58,
105
]
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 33,
"type": "KSampler",
"pos": [
3913.951904296875,
447.94122314453125
],
"size": [
315,
474
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 48
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 49
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 50
},
{
"name": "latent_image",
"type": "LATENT",
"link": 51
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
54
]
}
],
"title": "KSampler (Base)",
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
12345,
"fixed",
20,
5,
"euler_ancestral",
"karras",
1,
""
]
},
{
"id": 45,
"type": "Reroute",
"pos": [
3809.542236328125,
428.9940490722656
],
"size": [
75,
26
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 72
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
73,
74,
75,
81,
83,
114
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 56,
"type": "PreviewImage",
"pos": [
6170.998046875,
793.1698608398438
],
"size": [
306.4895324707031,
443.17425537109375
],
"flags": {},
"order": 54,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 96
}
],
"outputs": [],
"title": "Input to Output (1)",
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 52,
"type": "ImageScaleBy",
"pos": [
4737.07861328125,
435.7413635253906
],
"size": [
315,
82
],
"flags": {},
"order": 27,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 89
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
90,
91,
93,
102
]
}
],
"title": "Upscale Image By (1)",
"properties": {
"Node name for S&R": "ImageScaleBy"
},
"widgets_values": [
"nearest-exact",
0.5000000000000001
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 44,
"type": "VAEEncode",
"pos": [
5080.7705078125,
459.3191833496094
],
"size": [
210,
46
],
"flags": {},
"order": 32,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 90
},
{
"name": "vae",
"type": "VAE",
"link": 74
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
78,
79,
112
]
}
],
"properties": {
"Node name for S&R": "VAEEncode"
},
"widgets_values": [],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 39,
"type": "ImageUpscaleWithModel",
"pos": [
4721.27978515625,
341.3690185546875
],
"size": [
340.20001220703125,
46
],
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "upscale_model",
"type": "UPSCALE_MODEL",
"link": 57
},
{
"name": "image",
"type": "IMAGE",
"link": 58
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
70,
89,
100,
107
]
}
],
"title": "Upscale Image (using Model) (1)",
"properties": {
"Node name for S&R": "ImageUpscaleWithModel"
},
"widgets_values": [],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 38,
"type": "UpscaleModelLoader",
"pos": [
4728.50048828125,
232.18310546875
],
"size": [
315,
58
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "UPSCALE_MODEL",
"type": "UPSCALE_MODEL",
"links": [
57
]
}
],
"title": "Load Upscale Model (1)",
"properties": {
"Node name for S&R": "UpscaleModelLoader"
},
"widgets_values": [
"4xUltrasharp_4xUltrasharpV10.pth"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 40,
"type": "KSampler",
"pos": [
5360.998046875,
373.16998291015625
],
"size": [
315,
474
],
"flags": {},
"order": 37,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 59
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 60
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 61
},
{
"name": "latent_image",
"type": "LATENT",
"link": 78
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
80
]
}
],
"title": "KSampler (1)",
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
12345,
"fixed",
20,
5,
"euler_ancestral",
"karras",
0.5000000000000001,
""
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 42,
"type": "ControlNetApplyAdvanced",
"pos": [
5000.998046875,
913.1698608398438
],
"size": [
315,
186
],
"flags": {},
"order": 26,
"mode": 0,
"inputs": [
{
"name": "positive",
"type": "CONDITIONING",
"link": 67
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 68
},
{
"name": "control_net",
"type": "CONTROL_NET",
"link": 69
},
{
"name": "image",
"type": "IMAGE",
"link": 70
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": 75
}
],
"outputs": [
{
"name": "positive",
"type": "CONDITIONING",
"links": [
76
]
},
{
"name": "negative",
"type": "CONDITIONING",
"links": [
77
]
}
],
"properties": {
"Node name for S&R": "ControlNetApplyAdvanced"
},
"widgets_values": [
0.5000000000000001,
0,
1
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 41,
"type": "KSampler",
"pos": [
5330.998046875,
913.1698608398438
],
"size": [
315,
474
],
"flags": {},
"order": 38,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 63
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 76
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 77
},
{
"name": "latent_image",
"type": "LATENT",
"link": 79
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
82
]
}
],
"title": "KSampler (2)",
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
12345,
"fixed",
20,
5,
"euler_ancestral",
"karras",
0.7500000000000001,
""
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 47,
"type": "VAEDecode",
"pos": [
5705.435546875,
922.9949951171875
],
"size": [
210,
46
],
"flags": {},
"order": 43,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 82
},
{
"name": "vae",
"type": "VAE",
"link": 83
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
84,
87,
94
]
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": [],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 71,
"type": "VAEDecode",
"pos": [
5688.9326171875,
1448.0411376953125
],
"size": [
210,
46
],
"flags": {},
"order": 44,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 113
},
{
"name": "vae",
"type": "VAE",
"link": 114
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
119
]
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": [],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 75,
"type": "PreviewImage",
"pos": [
5996.080078125,
1431.6453857421875
],
"size": [
306.4895324707031,
443.17425537109375
],
"flags": {},
"order": 58,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 121
}
],
"outputs": [],
"title": "Comparing seeds (1 vs 3)",
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 31,
"type": "Note",
"pos": [
795.273681640625,
2018.8265380859375
],
"size": [
388.1405334472656,
139.1935577392578
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"A denoising upscale pass (aka HiRes fix) naturally introduces changes to an image, but what and were can sometimes be difficult to identify. Used this way the difference node is a simple and cmputationally efficient means of identify where and to what extent changes have been made.\n\nWhy not try experiment with different denoise levels?"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 19,
"type": "VAEEncode",
"pos": [
1076.293212890625,
1714.4996337890625
],
"size": [
210,
46
],
"flags": {},
"order": 35,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 21
},
{
"name": "vae",
"type": "VAE",
"link": 37
}
],
"outputs": [
{
"name": "LATENT",
"shape": 3,
"type": "LATENT",
"slot_index": 0,
"links": [
26
]
}
],
"properties": {
"Node name for S&R": "VAEEncode"
},
"widgets_values": []
},
{
"id": 18,
"type": "ImageScaleBy",
"pos": [
1054.7574462890625,
1840.5040283203125
],
"size": [
315,
82
],
"flags": {},
"order": 31,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 20
}
],
"outputs": [
{
"name": "IMAGE",
"shape": 3,
"type": "IMAGE",
"slot_index": 0,
"links": [
21,
42,
46
]
}
],
"properties": {
"Node name for S&R": "ImageScaleBy"
},
"widgets_values": [
"nearest-exact",
0.5
]
},
{
"id": 22,
"type": "VAEDecode",
"pos": [
1785.5029296875,
1714.1431884765625
],
"size": [
210,
46
],
"flags": {},
"order": 45,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 27
},
{
"name": "vae",
"type": "VAE",
"link": 38
}
],
"outputs": [
{
"name": "IMAGE",
"shape": 3,
"type": "IMAGE",
"slot_index": 0,
"links": [
29,
43
]
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 51,
"type": "PreviewImage",
"pos": [
6860.998046875,
313.1698913574219
],
"size": [
340.6231994628906,
477.68939208984375
],
"flags": {},
"order": 55,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 88
}
],
"outputs": [],
"title": "Comparing differing Outputs (1 vs 2)",
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 70,
"type": "KSampler",
"pos": [
5334.42626953125,
1444.2662353515625
],
"size": [
315,
474
],
"flags": {},
"order": 39,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 109
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 110
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 111
},
{
"name": "latent_image",
"type": "LATENT",
"link": 112
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
113
]
}
],
"title": "KSampler (3) - Changed seed",
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
987654321,
"fixed",
20,
5,
"euler_ancestral",
"karras",
0.5000000000000001,
""
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 69,
"type": "Note",
"pos": [
3891.152099609375,
975.359130859375
],
"size": [
364.2155456542969,
155.45184326171875
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"Upscaling is an area with an enormous posibility space of settings, methods and models to explore. Some changes you make can be subtle or hard to spot. The difference node can highlight the specific areas of difference so you don't have to play Spot The Difference.\n\nMany of these settings and options equally apply to base generations. The possibilities are endless."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 4,
"type": "KSampler",
"pos": [
723.8766479492188,
612.851318359375
],
"size": [
315,
474
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 4
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 5
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 6
},
{
"name": "latent_image",
"type": "LATENT",
"link": 3
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
7
]
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
12345,
"fixed",
20,
5,
"euler_ancestral",
"karras",
1,
""
]
},
{
"id": 46,
"type": "VAEDecode",
"pos": [
5709.59375,
471.7069396972656
],
"size": [
210,
46
],
"flags": {},
"order": 42,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 80
},
{
"name": "vae",
"type": "VAE",
"link": 81
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
85,
86,
92,
120
]
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": [],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 43,
"type": "ControlNetLoader",
"pos": [
4998.900390625,
1146.877197265625
],
"size": [
315,
58
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CONTROL_NET",
"type": "CONTROL_NET",
"links": [
69
]
}
],
"properties": {
"Node name for S&R": "ControlNetLoader"
},
"widgets_values": [
"controlnetxlCNXL_xinsirTile.safetensors"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 74,
"type": "ImageDifference",
"pos": [
5681.6865234375,
1543.9364013671875
],
"size": [
285.6000061035156,
102
],
"flags": {},
"order": 51,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 120
},
{
"name": "image2",
"type": "IMAGE",
"link": 119
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
121
]
}
],
"title": "Comparing different seeds (1 vs 3)",
"properties": {
"Node name for S&R": "ImageDifference"
},
"widgets_values": [
false,
false
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 54,
"type": "ImageDifference",
"pos": [
5700.2109375,
1018.3462524414062
],
"size": [
243.60000610351562,
102
],
"flags": {},
"order": 50,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 93
},
{
"name": "image2",
"type": "IMAGE",
"link": 94
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
95,
97
]
}
],
"title": "Comparing Input to Output (2)",
"properties": {
"Node name for S&R": "ImageDifference"
},
"widgets_values": [
false,
false
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 50,
"type": "ImageDifference",
"pos": [
5813.90283203125,
652.6207275390625
],
"size": [
226.8000030517578,
102
],
"flags": {},
"order": 49,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 86
},
{
"name": "image2",
"type": "IMAGE",
"link": 87
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
88
]
}
],
"title": "Comparing different outputs",
"properties": {
"Node name for S&R": "ImageDifference"
},
"widgets_values": [
false,
false
]
},
{
"id": 53,
"type": "ImageDifference",
"pos": [
5704.33837890625,
324.4176025390625
],
"size": [
243.60000610351562,
102
],
"flags": {},
"order": 47,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 91
},
{
"name": "image2",
"type": "IMAGE",
"link": 92
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
96,
98
]
}
],
"title": "Comparing Input to Output (1)",
"properties": {
"Node name for S&R": "ImageDifference"
},
"widgets_values": [
false,
false
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 59,
"type": "ImageDifference",
"pos": [
6738.97119140625,
1342.551513671875
],
"size": [
478.79998779296875,
102
],
"flags": {},
"order": 57,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 97
},
{
"name": "image2",
"type": "IMAGE",
"link": 98
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
99
]
}
],
"title": "Comparing differences between Input to Output differences",
"properties": {
"Node name for S&R": "ImageDifference"
},
"widgets_values": [
false,
false
]
},
{
"id": 32,
"type": "ImageDifference",
"pos": [
1780.3192138671875,
1814.271240234375
],
"size": [
210,
102
],
"flags": {},
"order": 53,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 43
},
{
"name": "image2",
"type": "IMAGE",
"link": 42
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
44
]
}
],
"properties": {
"Node name for S&R": "ImageDifference"
},
"widgets_values": [
false,
true
]
},
{
"id": 23,
"type": "PreviewImage",
"pos": [
2061.54541015625,
1711.515869140625
],
"size": [
521.0005493164062,
600.2293090820312
],
"flags": {},
"order": 52,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 29
}
],
"outputs": [],
"title": "Upscaled and denoised",
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 29,
"type": "PreviewImage",
"pos": [
2616.809814453125,
1712.3826904296875
],
"size": [
521.0005493164062,
600.2293090820312
],
"flags": {},
"order": 36,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 46
}
],
"outputs": [],
"title": "Upscale by model only",
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 30,
"type": "PreviewImage",
"pos": [
3171.544921875,
1712.3826904296875
],
"size": [
521.0005493164062,
600.2293090820312
],
"flags": {},
"order": 59,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 44
}
],
"outputs": [],
"title": "Image difference",
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
]
},
{
"id": 7,
"type": "ImageDifference",
"pos": [
1970.2216796875,
528.8937377929688
],
"size": [
210,
102
],
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 9
},
{
"name": "image2",
"type": "IMAGE",
"link": 11
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
16
]
}
],
"properties": {
"Node name for S&R": "ImageDifference"
},
"widgets_values": [
false,
true
]
},
{
"id": 66,
"type": "UpscaleModelLoader",
"pos": [
3930,
1290
],
"size": [
315,
58
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "UPSCALE_MODEL",
"type": "UPSCALE_MODEL",
"links": [
104
]
}
],
"title": "Load Upscale Model (Alternate)",
"properties": {
"Node name for S&R": "UpscaleModelLoader"
},
"widgets_values": [
"ESRGAN_4x.pth"
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 67,
"type": "ImageDifference",
"pos": [
3930,
1470
],
"size": [
310.79998779296875,
102
],
"flags": {},
"order": 29,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 107
},
{
"name": "image2",
"type": "IMAGE",
"link": 106
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
108
]
}
],
"title": "Comparing different upscale models",
"properties": {
"Node name for S&R": "ImageDifference"
},
"widgets_values": [
true,
true
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 68,
"type": "PreviewImage",
"pos": [
3930,
1620
],
"size": [
303.7694091796875,
264.7575378417969
],
"flags": {},
"order": 34,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 108
}
],
"outputs": [],
"title": "Comparing different upscale models",
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 65,
"type": "ImageUpscaleWithModel",
"pos": [
3930,
1380
],
"size": [
312.2809143066406,
46
],
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "upscale_model",
"type": "UPSCALE_MODEL",
"link": 104
},
{
"name": "image",
"type": "IMAGE",
"link": 105
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
106
]
}
],
"title": "Upscale Image (using Model) (2)",
"properties": {
"Node name for S&R": "ImageUpscaleWithModel"
},
"widgets_values": [],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 64,
"type": "PreviewImage",
"pos": [
4500,
1230
],
"size": [
310.79998779296875,
246
],
"flags": {},
"order": 40,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 103
}
],
"outputs": [],
"title": "Comparing different downscale methods",
"properties": {
"Node name for S&R": "PreviewImage"
},
"widgets_values": [
""
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 62,
"type": "ImageScaleBy",
"pos": [
4500,
930
],
"size": [
315,
82
],
"flags": {},
"order": 28,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 100
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
101
]
}
],
"title": "Upscale Image By (Alternate)",
"properties": {
"Node name for S&R": "ImageScaleBy"
},
"widgets_values": [
"bilinear",
0.5000000000000001
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 63,
"type": "ImageDifference",
"pos": [
4500,
1080
],
"size": [
310.79998779296875,
102
],
"flags": {},
"order": 33,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 102
},
{
"name": "image2",
"type": "IMAGE",
"link": 101
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
103
]
}
],
"title": "Comparing different downscale methods",
"properties": {
"Node name for S&R": "ImageDifference"
},
"widgets_values": [
true,
true
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 14,
"type": "Note",
"pos": [
1075.931396484375,
737.716796875
],
"size": [
395.48480224609375,
197.3542938232422
],
"flags": {
"collapsed": false
},
"order": 8,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"The image difference node calculates the simple pixel-wise difference between two identically sized images and outputs a visual representation of that difference. Here the difference is created by the mosaic effect node.\n\nYou can try out different tile_sizes.\n\nNote that the Mean Square Error value is printed to console as a percentage (0% = identical images, 100% = absolute difference, i.e. one black one white). This can de disabled by toggling console_mse to false.\n\nContrast Boost increases contrast by a factor of 5 for subtle, hard to spot differences."
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
1,
1,
1,
2,
0,
"CLIP"
],
[
2,
1,
1,
3,
0,
"CLIP"
],
[
3,
5,
0,
4,
3,
"LATENT"
],
[
4,
1,
0,
4,
0,
"MODEL"
],
[
5,
2,
0,
4,
1,
"CONDITIONING"
],
[
6,
3,
0,
4,
2,
"CONDITIONING"
],
[
7,
4,
0,
6,
0,
"LATENT"
],
[
8,
1,
2,
6,
1,
"VAE"
],
[
9,
6,
0,
7,
0,
"IMAGE"
],
[
10,
6,
0,
8,
0,
"IMAGE"
],
[
11,
8,
0,
7,
1,
"IMAGE"
],
[
13,
6,
0,
10,
0,
"IMAGE"
],
[
15,
8,
0,
12,
0,
"IMAGE"
],
[
16,
7,
0,
13,
0,
"IMAGE"
],
[
17,
16,
0,
15,
0,
"UPSCALE_MODEL"
],
[
20,
15,
0,
18,
0,
"IMAGE"
],
[
21,
18,
0,
19,
0,
"IMAGE"
],
[
26,
19,
0,
21,
3,
"LATENT"
],
[
27,
21,
0,
22,
0,
"LATENT"
],
[
29,
22,
0,
23,
0,
"IMAGE"
],
[
37,
1,
2,
19,
1,
"VAE"
],
[
38,
1,
2,
22,
1,
"VAE"
],
[
39,
1,
0,
21,
0,
"MODEL"
],
[
40,
2,
0,
21,
1,
"CONDITIONING"
],
[
41,
3,
0,
21,
2,
"CONDITIONING"
],
[
42,
18,
0,
32,
1,
"IMAGE"
],
[
43,
22,
0,
32,
0,
"IMAGE"
],
[
44,
32,
0,
30,
0,
"IMAGE"
],
[
46,
18,
0,
29,
0,
"IMAGE"
],
[
47,
8,
0,
15,
1,
"IMAGE"
],
[
48,
1,
0,
33,
0,
"MODEL"
],
[
49,
34,
0,
33,
1,
"CONDITIONING"
],
[
50,
35,
0,
33,
2,
"CONDITIONING"
],
[
51,
5,
0,
33,
3,
"LATENT"
],
[
52,
1,
1,
34,
0,
"CLIP"
],
[
53,
1,
1,
35,
0,
"CLIP"
],
[
54,
33,
0,
36,
0,
"LATENT"
],
[
56,
36,
0,
37,
0,
"IMAGE"
],
[
57,
38,
0,
39,
0,
"UPSCALE_MODEL"
],
[
58,
36,
0,
39,
1,
"IMAGE"
],
[
59,
1,
0,
40,
0,
"MODEL"
],
[
60,
34,
0,
40,
1,
"CONDITIONING"
],
[
61,
35,
0,
40,
2,
"CONDITIONING"
],
[
63,
1,
0,
41,
0,
"MODEL"
],
[
67,
34,
0,
42,
0,
"CONDITIONING"
],
[
68,
35,
0,
42,
1,
"CONDITIONING"
],
[
69,
43,
0,
42,
2,
"CONTROL_NET"
],
[
70,
39,
0,
42,
3,
"IMAGE"
],
[
72,
1,
2,
45,
0,
"*"
],
[
73,
45,
0,
36,
1,
"VAE"
],
[
74,
45,
0,
44,
1,
"VAE"
],
[
75,
45,
0,
42,
4,
"VAE"
],
[
76,
42,
0,
41,
1,
"CONDITIONING"
],
[
77,
42,
1,
41,
2,
"CONDITIONING"
],
[
78,
44,
0,
40,
3,
"LATENT"
],
[
79,
44,
0,
41,
3,
"LATENT"
],
[
80,
40,
0,
46,
0,
"LATENT"
],
[
81,
45,
0,
46,
1,
"VAE"
],
[
82,
41,
0,
47,
0,
"LATENT"
],
[
83,
45,
0,
47,
1,
"VAE"
],
[
84,
47,
0,
48,
0,
"IMAGE"
],
[
85,
46,
0,
49,
0,
"IMAGE"
],
[
86,
46,
0,
50,
0,
"IMAGE"
],
[
87,
47,
0,
50,
1,
"IMAGE"
],
[
88,
50,
0,
51,
0,
"IMAGE"
],
[
89,
39,
0,
52,
0,
"IMAGE"
],
[
90,
52,
0,
44,
0,
"IMAGE"
],
[
91,
52,
0,
53,
0,
"IMAGE"
],
[
92,
46,
0,
53,
1,
"IMAGE"
],
[
93,
52,
0,
54,
0,
"IMAGE"
],
[
94,
47,
0,
54,
1,
"IMAGE"
],
[
95,
54,
0,
55,
0,
"IMAGE"
],
[
96,
53,
0,
56,
0,
"IMAGE"
],
[
97,
54,
0,
59,
0,
"IMAGE"
],
[
98,
53,
0,
59,
1,
"IMAGE"
],
[
99,
59,
0,
60,
0,
"IMAGE"
],
[
100,
39,
0,
62,
0,
"IMAGE"
],
[
101,
62,
0,
63,
1,
"IMAGE"
],
[
102,
52,
0,
63,
0,
"IMAGE"
],
[
103,
63,
0,
64,
0,
"IMAGE"
],
[
104,
66,
0,
65,
0,
"UPSCALE_MODEL"
],
[
105,
36,
0,
65,
1,
"IMAGE"
],
[
106,
65,
0,
67,
1,
"IMAGE"
],
[
107,
39,
0,
67,
0,
"IMAGE"
],
[
108,
67,
0,
68,
0,
"IMAGE"
],
[
109,
1,
0,
70,
0,
"MODEL"
],
[
110,
34,
0,
70,
1,
"CONDITIONING"
],
[
111,
35,
0,
70,
2,
"CONDITIONING"
],
[
112,
44,
0,
70,
3,
"LATENT"
],
[
113,
70,
0,
71,
0,
"LATENT"
],
[
114,
45,
0,
71,
1,
"VAE"
],
[
119,
71,
0,
74,
1,
"IMAGE"
],
[
120,
46,
0,
74,
0,
"IMAGE"
],
[
121,
74,
0,
75,
0,
"IMAGE"
]
],
"groups": [
{
"id": 1,
"title": "Comparing native pixel art generation with mosaic effect",
"bounding": [
710.9974365234375,
169.73768615722656,
2462.631103515625,
1241.1536865234375
],
"color": "#3f789e",
"font_size": 48,
"flags": {}
},
{
"id": 2,
"title": "Upscaling difference demonstration",
"bounding": [
716.8377075195312,
1496.5621337890625,
2990.042236328125,
828.6504516601562
],
"color": "#88A",
"font_size": 48,
"flags": {}
},
{
"id": 3,
"title": "Image Difference for comparing alternate upscale settings",
"bounding": [
3794.415283203125,
91.24786376953125,
3433.355712890625,
1837.0184326171875
],
"color": "#a1309b",
"font_size": 48,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.20086298320163645,
"offset": [
596.9751212131199,
1014.5597151450561
]
}
},
"version": 0.4
}