ComfyUI_Workflows / help_basgen+hiresfix+adetailer_v3.json
Xeno443's picture
Rename sdxl_detailerpipe_v3.json to help_basgen+hiresfix+adetailer_v3.json
65df30a verified
{
"id": "0ccff36e-3b49-484b-b290-d605e5f407b6",
"revision": 0,
"last_node_id": 57,
"last_link_id": 84,
"nodes": [
{
"id": 29,
"type": "ToBasicPipe",
"pos": [
1930,
540
],
"size": [
154.294921875,
106
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 59
},
{
"name": "clip",
"type": "CLIP",
"link": 60
},
{
"name": "vae",
"type": "VAE",
"link": 43
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 41
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 42
}
],
"outputs": [
{
"name": "basic_pipe",
"type": "BASIC_PIPE",
"links": [
45
]
}
],
"properties": {
"cnr_id": "comfyui-impact-pack",
"ver": "8.21.1",
"Node name for S&R": "ToBasicPipe"
},
"widgets_values": []
},
{
"id": 4,
"type": "EmptyLatentImage",
"pos": [
1930,
730
],
"size": [
210,
110
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"label": "LATENT",
"name": "LATENT",
"type": "LATENT",
"slot_index": 0,
"links": [
46
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.18",
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
832,
1216,
1
]
},
{
"id": 34,
"type": "BasicPipeToDetailerPipe",
"pos": [
4080,
540
],
"size": [
410,
220
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "basic_pipe",
"type": "BASIC_PIPE",
"link": 80
},
{
"name": "bbox_detector",
"type": "BBOX_DETECTOR",
"link": 53
},
{
"name": "sam_model_opt",
"shape": 7,
"type": "SAM_MODEL",
"link": null
},
{
"name": "segm_detector_opt",
"shape": 7,
"type": "SEGM_DETECTOR",
"link": 54
},
{
"name": "detailer_hook",
"shape": 7,
"type": "DETAILER_HOOK",
"link": null
}
],
"outputs": [
{
"name": "detailer_pipe",
"type": "DETAILER_PIPE",
"links": [
48
]
}
],
"properties": {
"cnr_id": "comfyui-impact-pack",
"ver": "8.21.1",
"Node name for S&R": "BasicPipeToDetailerPipe"
},
"widgets_values": [
"",
"Select the LoRA to add to the text",
"Select Wildcard 🟢 Full Cache"
]
},
{
"id": 42,
"type": "SaveImage",
"pos": [
5560,
540
],
"size": [
300,
310
],
"flags": {},
"order": 22,
"mode": 4,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 58
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.43"
},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 48,
"type": "VAEDecode",
"pos": [
2600,
600
],
"size": [
140,
50
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 63
},
{
"name": "vae",
"type": "VAE",
"link": 64
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
66,
67
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.43",
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 51,
"type": "VAEEncode",
"pos": [
3200,
600
],
"size": [
140,
50
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 71
},
{
"name": "vae",
"type": "VAE",
"link": 73
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
78
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.43",
"Node name for S&R": "VAEEncode"
},
"widgets_values": []
},
{
"id": 52,
"type": "VAEDecode",
"pos": [
3810,
640
],
"size": [
140,
46
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 81
},
{
"name": "vae",
"type": "VAE",
"link": 82
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
77,
84
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.43",
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 54,
"type": "PreviewImage",
"pos": [
5000,
230
],
"size": [
210,
258
],
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 83
}
],
"outputs": [],
"title": "Detailer Masks",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.43",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 14,
"type": "LoraLoader",
"pos": [
140,
310
],
"size": [
320,
130
],
"flags": {},
"order": 4,
"mode": 4,
"inputs": [
{
"label": "model",
"name": "model",
"type": "MODEL",
"link": 24
},
{
"label": "clip",
"name": "clip",
"type": "CLIP",
"link": 25
}
],
"outputs": [
{
"label": "MODEL",
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
22
]
},
{
"label": "CLIP",
"name": "CLIP",
"type": "CLIP",
"slot_index": 1,
"links": [
23
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.18",
"Node name for S&R": "LoraLoader",
"models": [
{
"name": "blindbox_v1_mix.safetensors",
"url": "https://civitai.com/api/download/models/32988?type=Model&format=SafeTensor&size=full&fp=fp16",
"directory": "loras"
}
]
},
"widgets_values": [
"Potatomix20V2.safetensors",
0.9500000000000002,
1
]
},
{
"id": 3,
"type": "LoraLoader",
"pos": [
470,
310
],
"size": [
320,
130
],
"flags": {},
"order": 5,
"mode": 4,
"inputs": [
{
"label": "model",
"name": "model",
"type": "MODEL",
"link": 22
},
{
"label": "clip",
"name": "clip",
"type": "CLIP",
"link": 23
}
],
"outputs": [
{
"label": "MODEL",
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
5
]
},
{
"label": "CLIP",
"name": "CLIP",
"type": "CLIP",
"slot_index": 1,
"links": [
6
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.18",
"Node name for S&R": "LoraLoader",
"models": [
{
"name": "blindbox_v1_mix.safetensors",
"url": "https://civitai.com/api/download/models/32988?type=Model&format=SafeTensor&size=full&fp=fp16",
"directory": "loras"
}
]
},
"widgets_values": [
"Zaush_-_Art_Style_Illustrious.safetensors",
0.8000000000000002,
0.8000000000000002
]
},
{
"id": 5,
"type": "LoraLoader",
"pos": [
800,
310
],
"size": [
320,
130
],
"flags": {},
"order": 6,
"mode": 4,
"inputs": [
{
"label": "model",
"name": "model",
"type": "MODEL",
"link": 5
},
{
"label": "clip",
"name": "clip",
"type": "CLIP",
"link": 6
}
],
"outputs": [
{
"label": "MODEL",
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
59
]
},
{
"label": "CLIP",
"name": "CLIP",
"type": "CLIP",
"slot_index": 1,
"links": [
7,
21,
60
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.18",
"Node name for S&R": "LoraLoader",
"models": [
{
"name": "MoXinV1.safetensors",
"url": "https://civitai.com/api/download/models/14856?type=Model&format=SafeTensor&size=full&fp=fp16",
"directory": "loras"
}
]
},
"widgets_values": [
"tool-noob-Mega_Fluffy_for_Illustrious V2.safetensors",
0.9500000000000002,
1
]
},
{
"id": 47,
"type": "ImageScaleBy",
"pos": [
2860,
600
],
"size": [
270,
82
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 67
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
68,
71
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.43",
"Node name for S&R": "ImageScaleBy"
},
"widgets_values": [
"nearest-exact",
1.75
]
},
{
"id": 17,
"type": "UltralyticsDetectorProvider",
"pos": [
3680,
360
],
"size": [
310,
80
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "BBOX_DETECTOR",
"type": "BBOX_DETECTOR",
"links": [
53
]
},
{
"name": "SEGM_DETECTOR",
"type": "SEGM_DETECTOR",
"links": [
54
]
}
],
"properties": {
"cnr_id": "comfyui-impact-subpack",
"ver": "1.3.3",
"Node name for S&R": "UltralyticsDetectorProvider"
},
"widgets_values": [
"segm/fdetailerAdetailerFor_v11.pt"
]
},
{
"id": 13,
"type": "CLIPTextEncode",
"pos": [
1210,
330
],
"size": [
450,
250
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"label": "clip",
"name": "clip",
"type": "CLIP",
"link": 21
}
],
"outputs": [
{
"label": "CONDITIONING",
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
41
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.18",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"masterpiece, best quality, newest,\n\n"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
1210,
630
],
"size": [
450,
170
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"label": "clip",
"name": "clip",
"type": "CLIP",
"link": 7
}
],
"outputs": [
{
"label": "CONDITIONING",
"name": "CONDITIONING",
"type": "CONDITIONING",
"slot_index": 0,
"links": [
42
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.18",
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"worst quality,"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 57,
"type": "Note",
"pos": [
1210,
870
],
"size": [
450,
330
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "README",
"properties": {},
"widgets_values": [
"This workflow shows a basic basegen -> i2i upscale (hiresfix) -> detailer (adetailer) process. It is meant to demonstrate in which order the nodes are connected and which input goes where, so it's not very lean, but once you understand how everything works you can rearrange or modify however you want.\n\n1) It does not use any upscale model, as for 99% of cases the upscaler doesn't matter if you denoise (hiresfix) the upscaled image again.\n\n2) It uses the ComfyUI-Impactpack and Subpack for the Ultralytics-based detector and detailer nodes. Install it via ComfyUI manager first.\n\n3) It uses the fdetailer (https://civitai.com/models/1228695) detection model, download it from Civitai and put it into \"ComfyUI\\models\\ultralytics\\segm\". If this directory does not exist on your ComfyUI install, just create it. This is valid for the ComfyUI portable version.\n\nAll settings on the ksamplers and elsewhere are good default values for any Illustrious-XL/noobai-XL based model."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 32,
"type": "ImpactKSamplerAdvancedBasicPipe",
"pos": [
2240,
540
],
"size": [
310,
751.8461303710938
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "basic_pipe",
"type": "BASIC_PIPE",
"link": 45
},
{
"name": "latent_image",
"type": "LATENT",
"link": 46
},
{
"name": "scheduler_func_opt",
"shape": 7,
"type": "SCHEDULER_FUNC",
"link": null
}
],
"outputs": [
{
"name": "BASIC_PIPE",
"type": "BASIC_PIPE",
"links": [
79
]
},
{
"name": "LATENT",
"type": "LATENT",
"links": [
63
]
},
{
"name": "VAE",
"type": "VAE",
"links": [
64,
73
]
}
],
"title": "KSampler (Basegen)",
"properties": {
"cnr_id": "comfyui-impact-pack",
"ver": "8.21.1",
"Node name for S&R": "ImpactKSamplerAdvancedBasicPipe"
},
"widgets_values": [
true,
964171604988562,
"randomize",
30,
4,
"euler_ancestral",
"sgm_uniform",
0,
10000,
false
]
},
{
"id": 55,
"type": "PreviewImage",
"pos": [
4000,
840
],
"size": [
260,
410
],
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 84
}
],
"outputs": [],
"title": "\"Hiresfix\"",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.43",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 53,
"type": "ImpactKSamplerBasicPipe",
"pos": [
3490,
540
],
"size": [
279.7734375,
635.6688842773438
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "basic_pipe",
"type": "BASIC_PIPE",
"link": 79
},
{
"name": "latent_image",
"type": "LATENT",
"link": 78
},
{
"name": "scheduler_func_opt",
"shape": 7,
"type": "SCHEDULER_FUNC",
"link": null
}
],
"outputs": [
{
"name": "BASIC_PIPE",
"type": "BASIC_PIPE",
"links": [
80
]
},
{
"name": "LATENT",
"type": "LATENT",
"links": [
81
]
},
{
"name": "VAE",
"type": "VAE",
"links": [
82
]
}
],
"title": "KSampler (Upscale \"hiresfix\")",
"properties": {
"cnr_id": "comfyui-impact-pack",
"ver": "8.21.1",
"Node name for S&R": "ImpactKSamplerBasicPipe"
},
"widgets_values": [
279862057920363,
"randomize",
20,
4,
"euler_ancestral",
"sgm_uniform",
0.3500000000000001
]
},
{
"id": 33,
"type": "FaceDetailerPipe",
"pos": [
4580,
540
],
"size": [
348.533203125,
1233.3726806640625
],
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 77
},
{
"name": "detailer_pipe",
"type": "DETAILER_PIPE",
"link": 48
},
{
"name": "scheduler_func_opt",
"shape": 7,
"type": "SCHEDULER_FUNC",
"link": null
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
57,
58
]
},
{
"name": "cropped_refined",
"shape": 6,
"type": "IMAGE",
"links": null
},
{
"name": "cropped_enhanced_alpha",
"shape": 6,
"type": "IMAGE",
"links": [
83
]
},
{
"name": "mask",
"type": "MASK",
"links": null
},
{
"name": "detailer_pipe",
"type": "DETAILER_PIPE",
"links": null
},
{
"name": "cnet_images",
"shape": 6,
"type": "IMAGE",
"links": null
}
],
"title": "ADetailer",
"properties": {
"cnr_id": "comfyui-impact-pack",
"ver": "8.21.1",
"Node name for S&R": "FaceDetailerPipe"
},
"widgets_values": [
1024,
true,
1280,
721454547409513,
"randomize",
20,
4,
"euler_ancestral",
"sgm_uniform",
0.30000000000000004,
5,
true,
true,
0.5,
10,
1.5,
"center-1",
0,
0.93,
0,
0.7,
"False",
10,
0.2,
1,
false,
20,
false,
false
]
},
{
"id": 41,
"type": "PreviewImage",
"pos": [
4990,
540
],
"size": [
540,
820
],
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 57
}
],
"outputs": [],
"title": "Inpainted Upscaled Image",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.43",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 12,
"type": "CheckpointLoaderSimple",
"pos": [
-310,
530
],
"size": [
420,
100
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"label": "MODEL",
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
24
]
},
{
"label": "CLIP",
"name": "CLIP",
"type": "CLIP",
"slot_index": 1,
"links": [
25
]
},
{
"label": "VAE",
"name": "VAE",
"type": "VAE",
"slot_index": 2,
"links": [
43
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.18",
"Node name for S&R": "CheckpointLoaderSimple",
"models": [
{
"name": "dreamshaper_8.safetensors",
"url": "https://civitai.com/api/download/models/128713?type=Model&format=SafeTensor&size=pruned&fp=fp16",
"directory": "checkpoints"
}
]
},
"widgets_values": [
"StableMondAI-SDG.safetensors"
]
},
{
"id": 40,
"type": "PreviewImage",
"pos": [
2760,
810
],
"size": [
260,
410
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 66
}
],
"outputs": [],
"title": "Basegen",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.43",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 49,
"type": "PreviewImage",
"pos": [
3150,
810
],
"size": [
260,
410
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 68
}
],
"outputs": [],
"title": "Basegen (upscaled)",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.43",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
}
],
"links": [
[
5,
3,
0,
5,
0,
"MODEL"
],
[
6,
3,
1,
5,
1,
"CLIP"
],
[
7,
5,
1,
6,
0,
"CLIP"
],
[
21,
5,
1,
13,
0,
"CLIP"
],
[
22,
14,
0,
3,
0,
"MODEL"
],
[
23,
14,
1,
3,
1,
"CLIP"
],
[
24,
12,
0,
14,
0,
"MODEL"
],
[
25,
12,
1,
14,
1,
"CLIP"
],
[
41,
13,
0,
29,
3,
"CONDITIONING"
],
[
42,
6,
0,
29,
4,
"CONDITIONING"
],
[
43,
12,
2,
29,
2,
"VAE"
],
[
45,
29,
0,
32,
0,
"BASIC_PIPE"
],
[
46,
4,
0,
32,
1,
"LATENT"
],
[
48,
34,
0,
33,
1,
"DETAILER_PIPE"
],
[
53,
17,
0,
34,
1,
"BBOX_DETECTOR"
],
[
54,
17,
1,
34,
3,
"SEGM_DETECTOR"
],
[
57,
33,
0,
41,
0,
"IMAGE"
],
[
58,
33,
0,
42,
0,
"IMAGE"
],
[
59,
5,
0,
29,
0,
"MODEL"
],
[
60,
5,
1,
29,
1,
"CLIP"
],
[
63,
32,
1,
48,
0,
"LATENT"
],
[
64,
32,
2,
48,
1,
"VAE"
],
[
66,
48,
0,
40,
0,
"IMAGE"
],
[
67,
48,
0,
47,
0,
"IMAGE"
],
[
68,
47,
0,
49,
0,
"IMAGE"
],
[
71,
47,
0,
51,
0,
"IMAGE"
],
[
73,
32,
2,
51,
1,
"VAE"
],
[
77,
52,
0,
33,
0,
"IMAGE"
],
[
78,
51,
0,
53,
1,
"LATENT"
],
[
79,
32,
0,
53,
0,
"BASIC_PIPE"
],
[
80,
53,
0,
34,
0,
"BASIC_PIPE"
],
[
81,
53,
1,
52,
0,
"LATENT"
],
[
82,
53,
2,
52,
1,
"VAE"
],
[
83,
33,
2,
54,
0,
"IMAGE"
],
[
84,
52,
0,
55,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1.0152559799477527,
"offset": [
403.28893176746845,
9.254656693176006
]
},
"frontendVersion": "1.34.9",
"reroutes": [
{
"id": 4,
"pos": [
1220,
250
],
"linkIds": [
59
]
},
{
"id": 5,
"parentId": 4,
"pos": [
1650,
250
],
"linkIds": [
59
]
},
{
"id": 6,
"pos": [
1220,
270
],
"linkIds": [
60
]
},
{
"id": 7,
"parentId": 6,
"pos": [
1650,
270
],
"linkIds": [
60
]
},
{
"id": 8,
"pos": [
2580,
700
],
"linkIds": [
73
]
},
{
"id": 9,
"parentId": 8,
"pos": [
3180,
700
],
"linkIds": [
73
]
},
{
"id": 10,
"pos": [
4010,
790
],
"linkIds": [
77
]
},
{
"id": 11,
"parentId": 10,
"pos": [
4510,
790
],
"linkIds": [
77
]
}
],
"workflowRendererVersion": "LG",
"linkExtensions": [
{
"id": 59,
"parentId": 5
},
{
"id": 60,
"parentId": 7
},
{
"id": 73,
"parentId": 9
},
{
"id": 77,
"parentId": 11
}
]
},
"version": 0.4
}