Files
komojini-komojini-comfyui-n…/example_workflows/image_merger_example.json
T
2024-01-14 16:13:07 +09:00

809 lines
14 KiB
JSON

{
"last_node_id": 17,
"last_link_id": 21,
"nodes": [
{
"id": 12,
"type": "VAEEncode",
"pos": [
1567,
620
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 9
},
{
"name": "vae",
"type": "VAE",
"link": 10
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
12
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEEncode",
"ttNbgOverride": {
"color": "#222",
"bgcolor": "#000",
"groupcolor": "#444"
}
},
"color": "#222",
"bgcolor": "#000"
},
{
"id": 6,
"type": "ControlNetApply",
"pos": [
1877,
841
],
"size": {
"0": 317.4000244140625,
"1": 98
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 7
},
{
"name": "control_net",
"type": "CONTROL_NET",
"link": 4
},
{
"name": "image",
"type": "IMAGE",
"link": 5
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
11
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ControlNetApply",
"ttNbgOverride": {
"color": "#222",
"bgcolor": "#000",
"groupcolor": "#444"
}
},
"widgets_values": [
1
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 10,
"type": "CLIPTextEncode",
"pos": [
1437,
1258
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 8
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
13
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode",
"ttNbgOverride": {
"color": "#222",
"bgcolor": "#000",
"groupcolor": "#444"
}
},
"widgets_values": [
"low quality, worst quality, text, watermark"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 4,
"type": "LineArtPreprocessor",
"pos": [
1462,
729
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 3
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
5
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "LineArtPreprocessor",
"ttNbgOverride": {
"color": "#222",
"bgcolor": "#000",
"groupcolor": "#444"
}
},
"widgets_values": [
"enable",
512
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 9,
"type": "CheckpointLoaderSimple",
"pos": [
958,
934
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
14
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
6,
8
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
10,
16
],
"shape": 3,
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple",
"ttNbgOverride": {
"color": "#222",
"bgcolor": "#000",
"groupcolor": "#444"
}
},
"widgets_values": [
"SD1.5/chilloutmix_NiPrunedFp32Fix.safetensors"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 5,
"type": "ControlNetLoader",
"pos": [
1468,
873
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "CONTROL_NET",
"type": "CONTROL_NET",
"links": [
4
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ControlNetLoader",
"ttNbgOverride": {
"color": "#222",
"bgcolor": "#000",
"groupcolor": "#444"
}
},
"widgets_values": [
"ControlNet-v1-1/control_v11p_sd15_lineart.pth"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
1438,
985
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 6
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
7
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode",
"ttNbgOverride": {
"color": "#222",
"bgcolor": "#000",
"groupcolor": "#444"
}
},
"widgets_values": [
"A beautiful girl in city, night, masterpiece, 4k, dark background"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 13,
"type": "KSampler",
"pos": [
1887,
999
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 14
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 11
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 13
},
{
"name": "latent_image",
"type": "LATENT",
"link": 12
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
15
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler",
"ttNbgOverride": {
"color": "#222",
"bgcolor": "#000",
"groupcolor": "#444"
}
},
"widgets_values": [
1056212845093504,
"randomize",
30,
8,
"euler",
"normal",
1
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 17,
"type": "PreviewImage",
"pos": [
2535,
1095
],
"size": [
405.241493286132,
388.9299367675776
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 21
}
],
"properties": {
"Node name for S&R": "PreviewImage",
"ttNbgOverride": {
"color": "#222",
"bgcolor": "#000",
"groupcolor": "#444"
}
},
"color": "#222",
"bgcolor": "#000"
},
{
"id": 16,
"type": "SaveImage",
"pos": [
2985,
918
],
"size": [
535.2378607177716,
570.2888000488274
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 20
}
],
"properties": {
"ttNbgOverride": {
"color": "#222",
"bgcolor": "#000",
"groupcolor": "#444"
}
},
"widgets_values": [
"ComfyUI"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 15,
"type": "Note",
"pos": [
2982,
635
],
"size": [
541.3411071777327,
99.29258911132774
],
"flags": {},
"order": 2,
"mode": 0,
"properties": {
"text": ""
},
"widgets_values": [
"(60%, 0);(50%, 100%) will generate line of\n\npoint 1: (50%, 0) -> (width * 0.5, 0)\npoint 2: (60%, 100%) -> (width * 0.6, height * 1.0)\n\nThe dividing line will be the connection of point 1 and point 2."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 1,
"type": "ImageMerger",
"pos": [
2986,
791
],
"size": {
"0": 315,
"1": 102
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "images_1",
"type": "IMAGE",
"link": 19,
"slot_index": 0
},
{
"name": "images_2",
"type": "IMAGE",
"link": 18
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"links": [
20
],
"shape": 3,
"slot_index": 0
},
{
"name": "num_images",
"type": "INT",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ImageMerger",
"ttNbgOverride": {
"color": "#222",
"bgcolor": "#000",
"groupcolor": "#444"
}
},
"widgets_values": [
"(50%, 0);(60%, 100%)",
2
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 3,
"type": "LoadImage",
"pos": [
2537,
610
],
"size": {
"0": 411.8054504394531,
"1": 427.59283447265625
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
3,
9,
19
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage",
"ttNbgOverride": {
"color": "#222",
"bgcolor": "#000",
"groupcolor": "#444"
}
},
"widgets_values": [
"1111example (1).png",
"image"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 14,
"type": "VAEDecode",
"pos": [
2123,
704
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 15
},
{
"name": "vae",
"type": "VAE",
"link": 16
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
18,
21
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode",
"ttNbgOverride": {
"color": "#222",
"bgcolor": "#000",
"groupcolor": "#444"
}
},
"color": "#222",
"bgcolor": "#000"
}
],
"links": [
[
3,
3,
0,
4,
0,
"IMAGE"
],
[
4,
5,
0,
6,
1,
"CONTROL_NET"
],
[
5,
4,
0,
6,
2,
"IMAGE"
],
[
6,
9,
1,
7,
0,
"CLIP"
],
[
7,
7,
0,
6,
0,
"CONDITIONING"
],
[
8,
9,
1,
10,
0,
"CLIP"
],
[
9,
3,
0,
12,
0,
"IMAGE"
],
[
10,
9,
2,
12,
1,
"VAE"
],
[
11,
6,
0,
13,
1,
"CONDITIONING"
],
[
12,
12,
0,
13,
3,
"LATENT"
],
[
13,
10,
0,
13,
2,
"CONDITIONING"
],
[
14,
9,
0,
13,
0,
"MODEL"
],
[
15,
13,
0,
14,
0,
"LATENT"
],
[
16,
9,
2,
14,
1,
"VAE"
],
[
18,
14,
0,
1,
1,
"IMAGE"
],
[
19,
3,
0,
1,
0,
"IMAGE"
],
[
20,
1,
0,
16,
0,
"IMAGE"
],
[
21,
14,
0,
17,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}