Files
cubiq-Block_Patcher_ComfyUI/workflows/block_patcher.json
T
2024-09-22 11:49:02 +02:00

589 lines
10 KiB
JSON

{
"last_node_id": 68,
"last_link_id": 146,
"nodes": [
{
"id": 11,
"type": "DualCLIPLoader",
"pos": {
"0": 138,
"1": 35
},
"size": {
"0": 210,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
10
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "DualCLIPLoader"
},
"widgets_values": [
"t5xxl_fp16.safetensors",
"clip_l.safetensors",
"flux"
]
},
{
"id": 12,
"type": "UNETLoader",
"pos": {
"0": 553,
"1": -111
},
"size": {
"0": 229.8605194091797,
"1": 82
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
140
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"flux1-dev.sft",
"fp8_e4m3fn"
]
},
{
"id": 65,
"type": "PlotBlockParams",
"pos": {
"0": 1584,
"1": 33
},
"size": {
"0": 210,
"1": 102
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 135
},
{
"name": "params",
"type": "SAMPLER_PARAMS",
"link": 142
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
137
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "PlotBlockParams"
},
"widgets_values": [
0,
"true"
]
},
{
"id": 26,
"type": "PreviewImage",
"pos": {
"0": 1851,
"1": 30
},
"size": {
"0": 865.0372314453125,
"1": 918.26025390625
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 137
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 8,
"type": "VAEDecode",
"pos": {
"0": 1365,
"1": 7
},
"size": {
"0": 140,
"1": 46
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 141
},
{
"name": "vae",
"type": "VAE",
"link": 12
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
135
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 10,
"type": "VAELoader",
"pos": {
"0": 1089,
"1": 445
},
"size": {
"0": 210,
"1": 58
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
12
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"ae.sft"
]
},
{
"id": 66,
"type": "FluxBlockPatcherSampler",
"pos": {
"0": 899,
"1": 45
},
"size": [
393.17110285341823,
321.31410750088173
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 140
},
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 139
},
{
"name": "latent_image",
"type": "LATENT",
"link": 146
}
],
"outputs": [
{
"name": "latent",
"type": "LATENT",
"links": [
141
],
"shape": 3,
"slot_index": 0
},
{
"name": "sampler_params",
"type": "SAMPLER_PARAMS",
"links": [
142
],
"shape": 3,
"slot_index": 1
},
{
"name": "patched_blocks",
"type": "STRING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "FluxBlockPatcherSampler"
},
"widgets_values": [
0,
"fixed",
24,
"euler",
"simple",
3.5,
0.8,
"double_blocks\\.([0-9]+)\\.(img|txt)_(mod|attn|mlp\\.[02])\\.(lin|qkv|proj)\\.(weight|bias)=1.1\nsingle_blocks\\.([0-9]+)\\.(linear[12]|modulation\\.lin)\\.(weight|bias)=1.05"
]
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": {
"0": 415,
"1": 35
},
"size": {
"0": 366.7709045410156,
"1": 201.41677856445312
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 10
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
139
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"black cat sniffing a succulent plant"
]
},
{
"id": 59,
"type": "EmptySD3LatentImage",
"pos": {
"0": 468,
"1": 303
},
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
146
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "EmptySD3LatentImage"
},
"widgets_values": [
1024,
1024,
1
]
}
],
"links": [
[
10,
11,
0,
6,
0,
"CLIP"
],
[
12,
10,
0,
8,
1,
"VAE"
],
[
135,
8,
0,
65,
0,
"IMAGE"
],
[
137,
65,
0,
26,
0,
"IMAGE"
],
[
139,
6,
0,
66,
1,
"CONDITIONING"
],
[
140,
12,
0,
66,
0,
"MODEL"
],
[
141,
66,
0,
8,
0,
"LATENT"
],
[
142,
66,
1,
65,
1,
"SAMPLER_PARAMS"
],
[
146,
59,
0,
66,
2,
"LATENT"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.7400249944258294,
"offset": [
-136.91856411173993,
632.3313593450009
]
},
"groupNodes": {
"test": {
"nodes": [
{
"type": "PrimitiveNode",
"pos": [
88,
617
],
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [],
"widget": {
"name": "width"
}
}
],
"title": "width",
"properties": {
"Run widget replace on values": false
},
"index": 0
},
{
"type": "PrimitiveNode",
"pos": [
87,
745
],
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 6,
"mode": 0,
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [],
"widget": {
"name": "height"
}
}
],
"title": "height",
"properties": {
"Run widget replace on values": false
},
"index": 1
},
{
"type": "EmptyLatentImage",
"pos": [
402,
596
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "width",
"type": "INT",
"link": null,
"widget": {
"name": "width"
},
"slot_index": 0
},
{
"name": "height",
"type": "INT",
"link": null,
"widget": {
"name": "height"
},
"slot_index": 1
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1024,
1024,
1
],
"index": 2
}
],
"links": [
[
0,
0,
2,
0,
32,
"INT"
],
[
1,
0,
2,
1,
33,
"INT"
]
],
"external": [
[
2,
0,
"LATENT"
]
]
}
}
},
"version": 0.4
}