FLUX.1-controlnet-lineart-promeai / example-workflow.json
promeai's picture
add comfyui workflow
dd21f78 verified
raw
history blame
14.5 kB
{
"last_node_id": 74,
"last_link_id": 131,
"nodes": [
{
"id": 50,
"type": "ModelSamplingFlux",
"pos": {
"0": -269,
"1": 445
},
"size": [
315,
130
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 76
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
128,
129
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ModelSamplingFlux"
},
"widgets_values": [
1.1500000000000001,
0.5,
1024,
1024
]
},
{
"id": 51,
"type": "UNETLoader",
"pos": {
"0": -685,
"1": 443
},
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
76
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"FLUX.1-dev/flux1-dev.sft",
"default"
]
},
{
"id": 44,
"type": "DualCLIPLoader",
"pos": {
"0": -692,
"1": 198
},
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
62
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "DualCLIPLoader"
},
"widgets_values": [
"clip_l.safetensors",
"t5xxl_fp16.safetensors",
"flux"
]
},
{
"id": 43,
"type": "CLIPTextEncodeFlux",
"pos": {
"0": -282,
"1": 195
},
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 62
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
77,
83
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "CLIPTextEncodeFlux"
},
"widgets_values": [
"high quality cinematic photograph",
"a flag waving atop a building, surrounded by lush greenery. The flag has a white background with a red emblem in the center, which appears to be a castle or fortress. The building itself is of classical architecture, with intricate detailing on the facade and a balcony. The sky is clear, suggesting a sunny day",
3.5
]
},
{
"id": 54,
"type": "LoadImage",
"pos": {
"0": -291,
"1": 737
},
"size": [
366.1095459299487,
327.34221661316883
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
131
],
"slot_index": 0,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"ComfyUI_temp_egnkb_00001_.png",
"image"
]
},
{
"id": 56,
"type": "ControlNetLoader",
"pos": {
"0": -287,
"1": 613
},
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CONTROL_NET",
"type": "CONTROL_NET",
"links": [
85
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ControlNetLoader"
},
"widgets_values": [
"test_model/lineart/checkpoint-20000/flux_controlnet/diffusion_pytorch_model.safetensors"
]
},
{
"id": 46,
"type": "VAELoader",
"pos": {
"0": -678,
"1": 612
},
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
124,
130
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"FLUX.1-schnell/ae.sft"
]
},
{
"id": 55,
"type": "ConditioningZeroOut",
"pos": {
"0": -199,
"1": 100
},
"size": {
"0": 317.4000244140625,
"1": 26
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 83
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
84
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ConditioningZeroOut"
}
},
{
"id": 52,
"type": "ControlNetApplySD3",
"pos": {
"0": 182,
"1": 194
},
"size": {
"0": 325.5415344238281,
"1": 186
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "positive",
"type": "CONDITIONING",
"link": 77
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 84
},
{
"name": "control_net",
"type": "CONTROL_NET",
"link": 85
},
{
"name": "vae",
"type": "VAE",
"link": 130
},
{
"name": "image",
"type": "IMAGE",
"link": 131
}
],
"outputs": [
{
"name": "positive",
"type": "CONDITIONING",
"links": [
81
],
"slot_index": 0,
"shape": 3
},
{
"name": "negative",
"type": "CONDITIONING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ControlNetApplySD3"
},
"widgets_values": [
0.6,
0,
1
]
},
{
"id": 10,
"type": "RandomNoise",
"pos": {
"0": 606,
"1": 189
},
"size": {
"0": 256.0021667480469,
"1": 82
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "NOISE",
"type": "NOISE",
"links": [
43
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "RandomNoise"
},
"widgets_values": [
987654321,
"fixed"
]
},
{
"id": 11,
"type": "BasicGuider",
"pos": {
"0": 629,
"1": 334
},
"size": {
"0": 219.8668670654297,
"1": 46
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 128
},
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 81
}
],
"outputs": [
{
"name": "GUIDER",
"type": "GUIDER",
"links": [
44
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "BasicGuider"
}
},
{
"id": 13,
"type": "KSamplerSelect",
"pos": {
"0": 621,
"1": 451
},
"size": {
"0": 243.79904174804688,
"1": 58
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
45
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "KSamplerSelect"
},
"widgets_values": [
"euler"
]
},
{
"id": 14,
"type": "BasicScheduler",
"pos": {
"0": 639,
"1": 568
},
"size": {
"0": 210,
"1": 106
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 129
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
68
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "BasicScheduler"
},
"widgets_values": [
"sgm_uniform",
40,
1
]
},
{
"id": 7,
"type": "EmptyLatentImage",
"pos": {
"0": 621,
"1": 743
},
"size": [
234.06686401367188,
106
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
47
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1024,
1024,
1
]
},
{
"id": 32,
"type": "SamplerCustomAdvanced",
"pos": {
"0": 910,
"1": 199
},
"size": {
"0": 263.0255126953125,
"1": 106
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "noise",
"type": "NOISE",
"link": 43
},
{
"name": "guider",
"type": "GUIDER",
"link": 44
},
{
"name": "sampler",
"type": "SAMPLER",
"link": 45
},
{
"name": "sigmas",
"type": "SIGMAS",
"link": 68
},
{
"name": "latent_image",
"type": "LATENT",
"link": 47
}
],
"outputs": [
{
"name": "output",
"type": "LATENT",
"links": [],
"slot_index": 0,
"shape": 3
},
{
"name": "denoised_output",
"type": "LATENT",
"links": [
51
],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "SamplerCustomAdvanced"
}
},
{
"id": 33,
"type": "VAEDecode",
"pos": {
"0": 1211,
"1": 215
},
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 51
},
{
"name": "vae",
"type": "VAE",
"link": 124
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
120
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 71,
"type": "PreviewImage",
"pos": {
"0": 920,
"1": 363
},
"size": {
"0": 749.6515502929688,
"1": 696.7304077148438
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 120
}
],
"outputs": [],
"properties": {
"Node name for S&R": "PreviewImage"
}
}
],
"links": [
[
43,
10,
0,
32,
0,
"NOISE"
],
[
44,
11,
0,
32,
1,
"GUIDER"
],
[
45,
13,
0,
32,
2,
"SAMPLER"
],
[
47,
7,
0,
32,
4,
"LATENT"
],
[
51,
32,
1,
33,
0,
"LATENT"
],
[
62,
44,
0,
43,
0,
"CLIP"
],
[
68,
14,
0,
32,
3,
"SIGMAS"
],
[
76,
51,
0,
50,
0,
"MODEL"
],
[
77,
43,
0,
52,
0,
"CONDITIONING"
],
[
81,
52,
0,
11,
1,
"CONDITIONING"
],
[
83,
43,
0,
55,
0,
"CONDITIONING"
],
[
84,
55,
0,
52,
1,
"CONDITIONING"
],
[
85,
56,
0,
52,
2,
"CONTROL_NET"
],
[
120,
33,
0,
71,
0,
"IMAGE"
],
[
124,
46,
0,
33,
1,
"VAE"
],
[
128,
50,
0,
11,
0,
"MODEL"
],
[
129,
50,
0,
14,
0,
"MODEL"
],
[
130,
46,
0,
52,
3,
"VAE"
],
[
131,
54,
0,
52,
4,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.2593742460100015,
"offset": [
1672.997496325177,
1774.589676362718
]
}
},
"version": 0.4
}