ComfyUI/user/default/workflows/img2img+facedetailer.json
2025-01-15 15:24:05 +09:00

876 lines
14 KiB
JSON

{
"last_node_id": 25,
"last_link_id": 35,
"nodes": [
{
"id": 3,
"type": "KSampler",
"pos": [
869,
170
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 13
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 4
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 6
},
{
"name": "latent_image",
"type": "LATENT",
"link": 18
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
7
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
521595645435417,
"randomize",
8,
1,
"lcm",
"normal",
0.4
]
},
{
"id": 11,
"type": "ModelSamplingDiscrete",
"pos": [
3,
799
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 12
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
13
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "ModelSamplingDiscrete"
},
"widgets_values": [
"lcm",
false
]
},
{
"id": 13,
"type": "VAEEncode",
"pos": [
550,
41
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 25
},
{
"name": "vae",
"type": "VAE",
"link": 19
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
18
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "VAEEncode"
}
},
{
"id": 20,
"type": "LoadImage",
"pos": [
-2,
2
],
"size": {
"0": 315,
"1": 314
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
25
],
"slot_index": 0,
"shape": 3
},
{
"name": "MASK",
"type": "MASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"다운로드.jpeg",
"image"
]
},
{
"id": 10,
"type": "LoraLoader",
"pos": [
4,
615
],
"size": {
"0": 315,
"1": 126
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 10
},
{
"name": "clip",
"type": "CLIP",
"link": 14
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
12
],
"slot_index": 0,
"shape": 3
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
15,
16
],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "LoraLoader"
},
"widgets_values": [
"pytorch_lora_weights.safetensors",
1,
1
]
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1209,
188
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 7
},
{
"name": "vae",
"type": "VAE",
"link": 8
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
26,
27
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 22,
"type": "FaceDetailer",
"pos": [
1157,
553
],
"size": {
"0": 519,
"1": 900
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 27
},
{
"name": "model",
"type": "MODEL",
"link": 29
},
{
"name": "clip",
"type": "CLIP",
"link": 33
},
{
"name": "vae",
"type": "VAE",
"link": 32
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 30
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 31
},
{
"name": "bbox_detector",
"type": "BBOX_DETECTOR",
"link": 35
},
{
"name": "sam_model_opt",
"type": "SAM_MODEL",
"link": 34
},
{
"name": "segm_detector_opt",
"type": "SEGM_DETECTOR",
"link": null
},
{
"name": "detailer_hook",
"type": "DETAILER_HOOK",
"link": null
},
{
"name": "scheduler_func_opt",
"type": "SCHEDULER_FUNC",
"link": null
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
28
],
"shape": 3,
"slot_index": 0
},
{
"name": "cropped_refined",
"type": "IMAGE",
"links": null,
"shape": 6
},
{
"name": "cropped_enhanced_alpha",
"type": "IMAGE",
"links": null,
"shape": 6
},
{
"name": "mask",
"type": "MASK",
"links": null,
"shape": 3
},
{
"name": "detailer_pipe",
"type": "DETAILER_PIPE",
"links": null,
"shape": 3
},
{
"name": "cnet_images",
"type": "IMAGE",
"links": null,
"shape": 6
}
],
"properties": {
"Node name for S&R": "FaceDetailer"
},
"widgets_values": [
512,
true,
1024,
36123094932766,
"randomize",
20,
8,
"euler",
"normal",
0.5,
5,
true,
true,
0.5,
10,
3,
"center-1",
0,
0.93,
0,
0.7,
"False",
10,
"",
1,
false,
20
]
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
415,
186
],
"size": {
"0": 422.84503173828125,
"1": 164.31304931640625
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 15
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
4,
30
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"(masterpiece, best quality, high quality:1.2), 8k, extremely detailed, girl, cute, (smile:0.7)"
]
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
413,
389
],
"size": {
"0": 425.27801513671875,
"1": 180.6060791015625
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 16
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
6,
31
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"text, watermark(worst quality, low quality:1.2), (makeup, mole), (nsfw, nude)"
]
},
{
"id": 24,
"type": "SAMLoader",
"pos": [
799,
805
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "SAM_MODEL",
"type": "SAM_MODEL",
"links": [
34
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "SAMLoader"
},
"widgets_values": [
"sam_vit_b_01ec64.pth",
"AUTO"
]
},
{
"id": 25,
"type": "UltralyticsDetectorProvider",
"pos": [
796,
682
],
"size": {
"0": 315,
"1": 78
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "BBOX_DETECTOR",
"type": "BBOX_DETECTOR",
"links": [
35
],
"shape": 3,
"slot_index": 0
},
{
"name": "SEGM_DETECTOR",
"type": "SEGM_DETECTOR",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "UltralyticsDetectorProvider"
},
"widgets_values": [
"bbox/face_yolov8m.pt"
]
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
-4,
428
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
10,
29
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
14,
33
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
8,
19,
32
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"caramelapple_v12.safetensors"
]
},
{
"id": 21,
"type": "SaveImage",
"pos": [
1530,
178
],
"size": [
315,
270
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 26
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 23,
"type": "PreviewImage",
"pos": [
1767,
527
],
"size": [
210,
246
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 28
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
}
],
"links": [
[
4,
6,
0,
3,
1,
"CONDITIONING"
],
[
6,
7,
0,
3,
2,
"CONDITIONING"
],
[
7,
3,
0,
8,
0,
"LATENT"
],
[
8,
4,
2,
8,
1,
"VAE"
],
[
10,
4,
0,
10,
0,
"MODEL"
],
[
12,
10,
0,
11,
0,
"MODEL"
],
[
13,
11,
0,
3,
0,
"MODEL"
],
[
14,
4,
1,
10,
1,
"CLIP"
],
[
15,
10,
1,
6,
0,
"CLIP"
],
[
16,
10,
1,
7,
0,
"CLIP"
],
[
18,
13,
0,
3,
3,
"LATENT"
],
[
19,
4,
2,
13,
1,
"VAE"
],
[
25,
20,
0,
13,
0,
"IMAGE"
],
[
26,
8,
0,
21,
0,
"IMAGE"
],
[
27,
8,
0,
22,
0,
"IMAGE"
],
[
28,
22,
0,
23,
0,
"IMAGE"
],
[
29,
4,
0,
22,
1,
"MODEL"
],
[
30,
6,
0,
22,
4,
"CONDITIONING"
],
[
31,
7,
0,
22,
5,
"CONDITIONING"
],
[
32,
4,
2,
22,
3,
"VAE"
],
[
33,
4,
1,
22,
2,
"CLIP"
],
[
34,
24,
0,
22,
7,
"SAM_MODEL"
],
[
35,
25,
0,
22,
6,
"BBOX_DETECTOR"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.8769226950000045,
"offset": [
361.9688512572715,
115.01943578718192
]
}
},
"version": 0.4
}