Skip to content

Instantly share code, notes, and snippets.

@appliedintelligencelab
Last active August 2, 2023 17:43
Show Gist options
  • Save appliedintelligencelab/497cda87db5ce10a371a2a8c14872f1f to your computer and use it in GitHub Desktop.
Save appliedintelligencelab/497cda87db5ce10a371a2a8c14872f1f to your computer and use it in GitHub Desktop.
SDXL compact workflow for ComfyUI
{
"last_node_id": 56,
"last_link_id": 51,
"nodes": [
{
"id": 19,
"type": "SaveImage",
"pos": [
1282.60009765625,
108
],
"size": {
"0": 700.1509399414062,
"1": 735.9476318359375
},
"flags": {
"pinned": true
},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 28
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
1043.60009765625,
557
],
"size": {
"0": 210,
"1": 54
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 5
},
{
"name": "text",
"type": "STRING",
"link": 18,
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
},
"slot_index": 1
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
12
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 15,
"type": "CLIPTextEncode",
"pos": [
1043.60009765625,
664
],
"size": {
"0": 210,
"1": 54
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 19
},
{
"name": "text",
"type": "STRING",
"link": 21,
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
},
"slot_index": 1
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
23
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"American guy in relaxed clothes, walking in New York, cinematic photo, 35mm photograph, film, bokeh, professional, 4k, highly detailed\n"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 16,
"type": "CLIPTextEncode",
"pos": [
1043.60009765625,
780
],
"size": {
"0": 210,
"1": 54
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 20
},
{
"name": "text",
"type": "STRING",
"link": 22,
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
},
"slot_index": 1
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
24
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 17,
"type": "VAEDecode",
"pos": [
1043.60009765625,
881
],
"size": {
"0": 200,
"1": 50
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 25
},
{
"name": "vae",
"type": "VAE",
"link": 34
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
28
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
1043.60009765625,
448
],
"size": {
"0": 210,
"1": 54
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 3
},
{
"name": "text",
"type": "STRING",
"link": 16,
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
},
"slot_index": 1
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
11
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"American guy in relaxed clothes, walking in New York, cinematic photo, 35mm photograph, film, bokeh, professional, 4k, highly detailed\n"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 12,
"type": "CheckpointLoaderSimple",
"pos": [
895.60009765625,
109
],
"size": {
"0": 363.571533203125,
"1": 99.16487121582031
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
14
],
"shape": 3,
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
19,
20
],
"shape": 3,
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
34
],
"shape": 3,
"slot_index": 2
}
],
"title": "Load Checkpoint - REFINER",
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"sd_xl_refiner_1.0_0.9vae.safetensors"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 13,
"type": "PrimitiveNode",
"pos": [
510.60009765625,
262
],
"size": {
"0": 362.33953857421875,
"1": 133.95684814453125
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
16,
21
],
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
},
"slot_index": 0
}
],
"title": "Positive Prompt (Text)",
"properties": {},
"widgets_values": [
"American guy in relaxed clothes, walking in New York, cinematic photo, 35mm photograph, film, bokeh, professional, 4k, highly detailed\n"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 14,
"type": "PrimitiveNode",
"pos": [
899.60009765625,
261
],
"size": {
"0": 355.699462890625,
"1": 137.86083984375
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
18,
22
],
"widget": {
"name": "text",
"config": [
"STRING",
{
"multiline": true
}
]
},
"slot_index": 0
}
],
"title": "Negative Prompt (Text)",
"properties": {},
"widgets_values": [
"drawing, painting, crayon, sketch, graphite, impressionist, noisy, blurry, soft, deformed, ugly"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 11,
"type": "KSamplerAdvanced",
"pos": [
1638.60009765625,
918
],
"size": {
"0": 300,
"1": 340
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 14,
"slot_index": 0
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 23
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 24
},
{
"name": "latent_image",
"type": "LATENT",
"link": 13
},
{
"name": "steps",
"type": "INT",
"link": 38,
"widget": {
"name": "steps",
"config": [
"INT",
{
"default": 20,
"min": 1,
"max": 10000
}
]
},
"slot_index": 4
},
{
"name": "start_at_step",
"type": "INT",
"link": 44,
"widget": {
"name": "start_at_step",
"config": [
"INT",
{
"default": 0,
"min": 0,
"max": 10000
}
]
}
},
{
"name": "cfg",
"type": "FLOAT",
"link": 46,
"widget": {
"name": "cfg",
"config": [
"FLOAT",
{
"default": 8,
"min": 0,
"max": 100
}
]
}
},
{
"name": "sampler_name",
"type": "euler,euler_ancestral,heun,dpm_2,dpm_2_ancestral,lms,dpm_fast,dpm_adaptive,dpmpp_2s_ancestral,dpmpp_sde,dpmpp_sde_gpu,dpmpp_2m,dpmpp_2m_sde,dpmpp_2m_sde_gpu,ddim,uni_pc,uni_pc_bh2",
"link": 48,
"widget": {
"name": "sampler_name",
"config": [
[
"euler",
"euler_ancestral",
"heun",
"dpm_2",
"dpm_2_ancestral",
"lms",
"dpm_fast",
"dpm_adaptive",
"dpmpp_2s_ancestral",
"dpmpp_sde",
"dpmpp_sde_gpu",
"dpmpp_2m",
"dpmpp_2m_sde",
"dpmpp_2m_sde_gpu",
"ddim",
"uni_pc",
"uni_pc_bh2"
]
]
}
},
{
"name": "scheduler",
"type": "normal,karras,exponential,simple,ddim_uniform",
"link": 50,
"widget": {
"name": "scheduler",
"config": [
[
"normal",
"karras",
"exponential",
"simple",
"ddim_uniform"
]
]
}
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
25
],
"shape": 3,
"slot_index": 0
}
],
"title": "KSampler (Advanced) - REFINER",
"properties": {
"Node name for S&R": "KSamplerAdvanced"
},
"widgets_values": [
"disable",
0,
"fixed",
25,
8,
"dpm_adaptive",
"normal",
20,
10000,
"disable"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 10,
"type": "KSamplerAdvanced",
"pos": [
1302.60009765625,
918
],
"size": {
"0": 300,
"1": 334
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 10
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 11
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 12
},
{
"name": "latent_image",
"type": "LATENT",
"link": 27
},
{
"name": "steps",
"type": "INT",
"link": 41,
"widget": {
"name": "steps",
"config": [
"INT",
{
"default": 20,
"min": 1,
"max": 10000
}
]
},
"slot_index": 4
},
{
"name": "end_at_step",
"type": "INT",
"link": 43,
"widget": {
"name": "end_at_step",
"config": [
"INT",
{
"default": 10000,
"min": 0,
"max": 10000
}
]
},
"slot_index": 5
},
{
"name": "cfg",
"type": "FLOAT",
"link": 45,
"widget": {
"name": "cfg",
"config": [
"FLOAT",
{
"default": 8,
"min": 0,
"max": 100
}
]
}
},
{
"name": "sampler_name",
"type": "euler,euler_ancestral,heun,dpm_2,dpm_2_ancestral,lms,dpm_fast,dpm_adaptive,dpmpp_2s_ancestral,dpmpp_sde,dpmpp_sde_gpu,dpmpp_2m,dpmpp_2m_sde,dpmpp_2m_sde_gpu,ddim,uni_pc,uni_pc_bh2",
"link": 47,
"widget": {
"name": "sampler_name",
"config": [
[
"euler",
"euler_ancestral",
"heun",
"dpm_2",
"dpm_2_ancestral",
"lms",
"dpm_fast",
"dpm_adaptive",
"dpmpp_2s_ancestral",
"dpmpp_sde",
"dpmpp_sde_gpu",
"dpmpp_2m",
"dpmpp_2m_sde",
"dpmpp_2m_sde_gpu",
"ddim",
"uni_pc",
"uni_pc_bh2"
]
]
}
},
{
"name": "scheduler",
"type": "normal,karras,exponential,simple,ddim_uniform",
"link": 49,
"widget": {
"name": "scheduler",
"config": [
[
"normal",
"karras",
"exponential",
"simple",
"ddim_uniform"
]
]
}
},
{
"name": "noise_seed",
"type": "INT",
"link": 51,
"widget": {
"name": "noise_seed",
"config": [
"INT",
{
"default": 0,
"min": 0,
"max": 18446744073709552000
}
]
}
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
13
],
"shape": 3,
"slot_index": 0
}
],
"title": "KSampler (Advanced) - BASE",
"properties": {
"Node name for S&R": "KSamplerAdvanced"
},
"widgets_values": [
"enable",
429639320273534,
"increment",
25,
8,
"dpm_adaptive",
"normal",
0,
20,
"enable"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 53,
"type": "PrimitiveNode",
"pos": [
745.60009765625,
888
],
"size": {
"0": 210,
"1": 82
},
"flags": {
"collapsed": false
},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
51
],
"slot_index": 0,
"widget": {
"name": "noise_seed",
"config": [
"INT",
{
"default": 0,
"min": 0,
"max": 18446744073709552000
}
]
}
}
],
"title": "Seed",
"properties": {},
"widgets_values": [
429639320273533,
"fixed"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 52,
"type": "PrimitiveNode",
"pos": [
779,
748
],
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "COMBO",
"type": "normal,karras,exponential,simple,ddim_uniform",
"links": [
49,
50
],
"slot_index": 0,
"widget": {
"name": "scheduler",
"config": [
[
"normal",
"karras",
"exponential",
"simple",
"ddim_uniform"
]
]
}
}
],
"title": "Scheduler",
"properties": {},
"widgets_values": [
"normal",
"fixed"
],
"color": "#332922",
"bgcolor": "#593930"
},
{
"id": 45,
"type": "PrimitiveNode",
"pos": [
508.60009765625,
618
],
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
38,
41
],
"widget": {
"name": "steps",
"config": [
"INT",
{
"default": 20,
"min": 1,
"max": 10000
}
]
}
}
],
"title": "steps",
"properties": {},
"widgets_values": [
25,
"fixed"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 47,
"type": "PrimitiveNode",
"pos": [
778.60009765625,
618
],
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 6,
"mode": 0,
"outputs": [
{
"name": "INT",
"type": "INT",
"links": [
43,
44
],
"widget": {
"name": "end_at_step",
"config": [
"INT",
{
"default": 10000,
"min": 0,
"max": 10000
}
]
},
"slot_index": 0
}
],
"title": "end_at_step",
"properties": {},
"widgets_values": [
20,
"fixed"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 50,
"type": "PrimitiveNode",
"pos": [
508.60009765625,
888
],
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 7,
"mode": 0,
"outputs": [
{
"name": "FLOAT",
"type": "FLOAT",
"links": [
45,
46
],
"slot_index": 0,
"widget": {
"name": "cfg",
"config": [
"FLOAT",
{
"default": 8,
"min": 0,
"max": 100
}
]
}
}
],
"title": "CFG Scale",
"properties": {},
"widgets_values": [
8,
"fixed"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
510.60009765625,
108
],
"size": {
"0": 364.2754821777344,
"1": 98
},
"flags": {},
"order": 8,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
10
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
3,
5
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [],
"slot_index": 2
}
],
"title": "Load Checkpoint - BASE",
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"sd_xl_base_1.0_0.9vae.safetensors"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
510.60009765625,
447
],
"size": {
"0": 300,
"1": 110
},
"flags": {},
"order": 9,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
27
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1024,
1024,
1
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 51,
"type": "PrimitiveNode",
"pos": [
508.60009765625,
748
],
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 10,
"mode": 0,
"outputs": [
{
"name": "COMBO",
"type": "euler,euler_ancestral,heun,dpm_2,dpm_2_ancestral,lms,dpm_fast,dpm_adaptive,dpmpp_2s_ancestral,dpmpp_sde,dpmpp_sde_gpu,dpmpp_2m,dpmpp_2m_sde,dpmpp_2m_sde_gpu,ddim,uni_pc,uni_pc_bh2",
"links": [
47,
48
],
"slot_index": 0,
"widget": {
"name": "sampler_name",
"config": [
[
"euler",
"euler_ancestral",
"heun",
"dpm_2",
"dpm_2_ancestral",
"lms",
"dpm_fast",
"dpm_adaptive",
"dpmpp_2s_ancestral",
"dpmpp_sde",
"dpmpp_sde_gpu",
"dpmpp_2m",
"dpmpp_2m_sde",
"dpmpp_2m_sde_gpu",
"ddim",
"uni_pc",
"uni_pc_bh2"
]
]
}
}
],
"title": "Sampler",
"properties": {},
"widgets_values": [
"dpm_adaptive",
"fixed"
],
"color": "#332922",
"bgcolor": "#593930"
}
],
"links": [
[
3,
4,
1,
6,
0,
"CLIP"
],
[
5,
4,
1,
7,
0,
"CLIP"
],
[
10,
4,
0,
10,
0,
"MODEL"
],
[
11,
6,
0,
10,
1,
"CONDITIONING"
],
[
12,
7,
0,
10,
2,
"CONDITIONING"
],
[
13,
10,
0,
11,
3,
"LATENT"
],
[
14,
12,
0,
11,
0,
"MODEL"
],
[
16,
13,
0,
6,
1,
"STRING"
],
[
18,
14,
0,
7,
1,
"STRING"
],
[
19,
12,
1,
15,
0,
"CLIP"
],
[
20,
12,
1,
16,
0,
"CLIP"
],
[
21,
13,
0,
15,
1,
"STRING"
],
[
22,
14,
0,
16,
1,
"STRING"
],
[
23,
15,
0,
11,
1,
"CONDITIONING"
],
[
24,
16,
0,
11,
2,
"CONDITIONING"
],
[
25,
11,
0,
17,
0,
"LATENT"
],
[
27,
5,
0,
10,
3,
"LATENT"
],
[
28,
17,
0,
19,
0,
"IMAGE"
],
[
34,
12,
2,
17,
1,
"VAE"
],
[
38,
45,
0,
11,
4,
"INT"
],
[
41,
45,
0,
10,
4,
"INT"
],
[
43,
47,
0,
10,
5,
"INT"
],
[
44,
47,
0,
11,
5,
"INT"
],
[
45,
50,
0,
10,
6,
"FLOAT"
],
[
46,
50,
0,
11,
6,
"FLOAT"
],
[
47,
51,
0,
10,
7,
"euler,euler_ancestral,heun,dpm_2,dpm_2_ancestral,lms,dpm_fast,dpm_adaptive,dpmpp_2s_ancestral,dpmpp_sde,dpmpp_sde_gpu,dpmpp_2m,dpmpp_2m_sde,dpmpp_2m_sde_gpu,ddim,uni_pc,uni_pc_bh2"
],
[
48,
51,
0,
11,
7,
"euler,euler_ancestral,heun,dpm_2,dpm_2_ancestral,lms,dpm_fast,dpm_adaptive,dpmpp_2s_ancestral,dpmpp_sde,dpmpp_sde_gpu,dpmpp_2m,dpmpp_2m_sde,dpmpp_2m_sde_gpu,ddim,uni_pc,uni_pc_bh2"
],
[
49,
52,
0,
10,
8,
"normal,karras,exponential,simple,ddim_uniform"
],
[
50,
52,
0,
11,
8,
"normal,karras,exponential,simple,ddim_uniform"
],
[
51,
53,
0,
10,
9,
"INT"
]
],
"groups": [
{
"title": "SDXL Compact Workflow",
"bounding": [
484,
14,
1551,
1294
],
"color": "#3f789e"
}
],
"config": {},
"extra": {},
"version": 0.4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment