This commit introduces the "Tiny Encoder" and "Tiny Decoder" nodes, providing direct access to the internal `tiny_encode(..)` and `tiny_decode(..)` functions. These nodes were primarily created to verify the correct operation of these internal functions. Furthermore, initial testing suggests that these implementations may offer performance improvements and reduced GPU resource consumption compared to the native VAE Encode and Decode nodes, particularly when processing larger images. This implementation allows for experimentation and refinement of the encoding and decoding process within the ComfyUI workflow.
630 lines
9.9 KiB
JSON
630 lines
9.9 KiB
JSON
{
|
|
"last_node_id": 34,
|
|
"last_link_id": 65,
|
|
"nodes": [
|
|
{
|
|
"id": 3,
|
|
"type": "VAEDecode",
|
|
"pos": [
|
|
660,
|
|
200
|
|
],
|
|
"size": [
|
|
140,
|
|
50
|
|
],
|
|
"flags": {},
|
|
"order": 6,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "samples",
|
|
"type": "LATENT",
|
|
"link": 20
|
|
},
|
|
{
|
|
"name": "vae",
|
|
"type": "VAE",
|
|
"link": 50
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
39
|
|
],
|
|
"slot_index": 0
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "VAEDecode"
|
|
},
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 17,
|
|
"type": "TinyEncode //TinyBreaker",
|
|
"pos": [
|
|
390,
|
|
200
|
|
],
|
|
"size": [
|
|
220,
|
|
50
|
|
],
|
|
"flags": {},
|
|
"order": 4,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"link": 19
|
|
},
|
|
{
|
|
"name": "vae",
|
|
"type": "VAE",
|
|
"link": 49
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "latent",
|
|
"type": "LATENT",
|
|
"links": [
|
|
20
|
|
],
|
|
"slot_index": 0
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "TinyEncode //TinyBreaker"
|
|
},
|
|
"widgets_values": [],
|
|
"color": "#232",
|
|
"bgcolor": "#353",
|
|
"shape": 1
|
|
},
|
|
{
|
|
"id": 20,
|
|
"type": "Image Comparer (rgthree)",
|
|
"pos": [
|
|
1000,
|
|
120
|
|
],
|
|
"size": [
|
|
400,
|
|
600
|
|
],
|
|
"flags": {},
|
|
"order": 9,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "image_a",
|
|
"type": "IMAGE",
|
|
"dir": 3,
|
|
"link": 57
|
|
},
|
|
{
|
|
"name": "image_b",
|
|
"type": "IMAGE",
|
|
"dir": 3,
|
|
"link": 39
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"properties": {
|
|
"comparer_mode": "Click"
|
|
},
|
|
"widgets_values": [
|
|
[
|
|
{
|
|
"name": "A",
|
|
"selected": true,
|
|
"url": "/api/view?filename=rgthree.compare._temp_xdnaq_00003_.png&type=temp&subfolder=&rand=0.9574105480109338"
|
|
},
|
|
{
|
|
"name": "B",
|
|
"selected": true,
|
|
"url": "/api/view?filename=rgthree.compare._temp_xdnaq_00004_.png&type=temp&subfolder=&rand=0.9851138353264501"
|
|
}
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": 30,
|
|
"type": "Image Comparer (rgthree)",
|
|
"pos": [
|
|
1000,
|
|
770
|
|
],
|
|
"size": [
|
|
400,
|
|
600
|
|
],
|
|
"flags": {},
|
|
"order": 11,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "image_a",
|
|
"type": "IMAGE",
|
|
"dir": 3,
|
|
"link": 58
|
|
},
|
|
{
|
|
"name": "image_b",
|
|
"type": "IMAGE",
|
|
"dir": 3,
|
|
"link": 55
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"properties": {
|
|
"comparer_mode": "Click"
|
|
},
|
|
"widgets_values": [
|
|
[
|
|
{
|
|
"name": "A",
|
|
"selected": true,
|
|
"url": "/api/view?filename=rgthree.compare._temp_rpzrx_00013_.png&type=temp&subfolder=&rand=0.7664049463602364"
|
|
},
|
|
{
|
|
"name": "B",
|
|
"selected": true,
|
|
"url": "/api/view?filename=rgthree.compare._temp_rpzrx_00014_.png&type=temp&subfolder=&rand=0.27212174115073984"
|
|
}
|
|
]
|
|
]
|
|
},
|
|
{
|
|
"id": 32,
|
|
"type": "Reroute",
|
|
"pos": [
|
|
790,
|
|
120
|
|
],
|
|
"size": [
|
|
75,
|
|
26
|
|
],
|
|
"flags": {},
|
|
"order": 3,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "",
|
|
"type": "*",
|
|
"link": 56
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
57,
|
|
58
|
|
],
|
|
"slot_index": 0
|
|
}
|
|
],
|
|
"properties": {
|
|
"showOutputText": false,
|
|
"horizontal": false
|
|
}
|
|
},
|
|
{
|
|
"id": 28,
|
|
"type": "VAEEncode",
|
|
"pos": [
|
|
490,
|
|
790
|
|
],
|
|
"size": [
|
|
150,
|
|
50
|
|
],
|
|
"flags": {},
|
|
"order": 7,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "pixels",
|
|
"type": "IMAGE",
|
|
"link": 60
|
|
},
|
|
{
|
|
"name": "vae",
|
|
"type": "VAE",
|
|
"link": 62
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "LATENT",
|
|
"type": "LATENT",
|
|
"links": [
|
|
54
|
|
],
|
|
"slot_index": 0
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "VAEEncode"
|
|
}
|
|
},
|
|
{
|
|
"id": 29,
|
|
"type": "TinyDecode //TinyBreaker",
|
|
"pos": [
|
|
690,
|
|
790
|
|
],
|
|
"size": [
|
|
226.79998779296875,
|
|
46
|
|
],
|
|
"flags": {},
|
|
"order": 10,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "latent",
|
|
"type": "LATENT",
|
|
"link": 54
|
|
},
|
|
{
|
|
"name": "vae",
|
|
"type": "VAE",
|
|
"link": 65
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
55
|
|
],
|
|
"slot_index": 0
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "TinyDecode //TinyBreaker"
|
|
},
|
|
"color": "#232",
|
|
"bgcolor": "#353",
|
|
"shape": 1
|
|
},
|
|
{
|
|
"id": 1,
|
|
"type": "LoadImage",
|
|
"pos": [
|
|
-40,
|
|
120
|
|
],
|
|
"size": [
|
|
310,
|
|
500
|
|
],
|
|
"flags": {},
|
|
"order": 0,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
19,
|
|
52,
|
|
56
|
|
],
|
|
"slot_index": 0
|
|
},
|
|
{
|
|
"name": "MASK",
|
|
"type": "MASK",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "LoadImage"
|
|
},
|
|
"widgets_values": [
|
|
"TB_0001_.png",
|
|
"image"
|
|
]
|
|
},
|
|
{
|
|
"id": 31,
|
|
"type": "Reroute",
|
|
"pos": [
|
|
360,
|
|
790
|
|
],
|
|
"size": [
|
|
75,
|
|
26
|
|
],
|
|
"flags": {},
|
|
"order": 2,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "",
|
|
"type": "*",
|
|
"link": 52
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
60
|
|
],
|
|
"slot_index": 0
|
|
}
|
|
],
|
|
"properties": {
|
|
"showOutputText": false,
|
|
"horizontal": false
|
|
}
|
|
},
|
|
{
|
|
"id": 16,
|
|
"type": "LoadAnyVAE //TinyBreaker",
|
|
"pos": [
|
|
-100,
|
|
660
|
|
],
|
|
"size": [
|
|
390,
|
|
60
|
|
],
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "VAE",
|
|
"type": "VAE",
|
|
"links": [
|
|
49,
|
|
50,
|
|
61
|
|
],
|
|
"slot_index": 0
|
|
}
|
|
],
|
|
"properties": {
|
|
"Node name for S&R": "LoadAnyVAE //TinyBreaker"
|
|
},
|
|
"widgets_values": [
|
|
"tiny_vae_sd.safetensors"
|
|
]
|
|
},
|
|
{
|
|
"id": 33,
|
|
"type": "Reroute",
|
|
"pos": [
|
|
360,
|
|
870
|
|
],
|
|
"size": [
|
|
75,
|
|
26
|
|
],
|
|
"flags": {},
|
|
"order": 5,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "",
|
|
"type": "*",
|
|
"link": 61
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "VAE",
|
|
"links": [
|
|
62,
|
|
64
|
|
],
|
|
"slot_index": 0
|
|
}
|
|
],
|
|
"properties": {
|
|
"showOutputText": false,
|
|
"horizontal": false
|
|
}
|
|
},
|
|
{
|
|
"id": 34,
|
|
"type": "Reroute",
|
|
"pos": [
|
|
570,
|
|
870
|
|
],
|
|
"size": [
|
|
75,
|
|
26
|
|
],
|
|
"flags": {},
|
|
"order": 8,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "",
|
|
"type": "*",
|
|
"link": 64
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "VAE",
|
|
"links": [
|
|
65
|
|
],
|
|
"slot_index": 0
|
|
}
|
|
],
|
|
"properties": {
|
|
"showOutputText": false,
|
|
"horizontal": false
|
|
}
|
|
}
|
|
],
|
|
"links": [
|
|
[
|
|
19,
|
|
1,
|
|
0,
|
|
17,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
20,
|
|
17,
|
|
0,
|
|
3,
|
|
0,
|
|
"LATENT"
|
|
],
|
|
[
|
|
39,
|
|
3,
|
|
0,
|
|
20,
|
|
1,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
49,
|
|
16,
|
|
0,
|
|
17,
|
|
1,
|
|
"VAE"
|
|
],
|
|
[
|
|
50,
|
|
16,
|
|
0,
|
|
3,
|
|
1,
|
|
"VAE"
|
|
],
|
|
[
|
|
52,
|
|
1,
|
|
0,
|
|
31,
|
|
0,
|
|
"*"
|
|
],
|
|
[
|
|
54,
|
|
28,
|
|
0,
|
|
29,
|
|
0,
|
|
"LATENT"
|
|
],
|
|
[
|
|
55,
|
|
29,
|
|
0,
|
|
30,
|
|
1,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
56,
|
|
1,
|
|
0,
|
|
32,
|
|
0,
|
|
"*"
|
|
],
|
|
[
|
|
57,
|
|
32,
|
|
0,
|
|
20,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
58,
|
|
32,
|
|
0,
|
|
30,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
60,
|
|
31,
|
|
0,
|
|
28,
|
|
0,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
61,
|
|
16,
|
|
0,
|
|
33,
|
|
0,
|
|
"*"
|
|
],
|
|
[
|
|
62,
|
|
33,
|
|
0,
|
|
28,
|
|
1,
|
|
"VAE"
|
|
],
|
|
[
|
|
64,
|
|
33,
|
|
0,
|
|
34,
|
|
0,
|
|
"*"
|
|
],
|
|
[
|
|
65,
|
|
34,
|
|
0,
|
|
29,
|
|
1,
|
|
"VAE"
|
|
]
|
|
],
|
|
"groups": [],
|
|
"config": {},
|
|
"extra": {
|
|
"ds": {
|
|
"scale": 0.6303940863128583,
|
|
"offset": [
|
|
434.0821283289704,
|
|
-41.91578139840641
|
|
]
|
|
}
|
|
},
|
|
"version": 0.4
|
|
} |