Files
ComfyUI Wiki e7d5b47d3d Add wiki workflow templates migrated from comfyui-wiki.
Includes structured templates (3d, audio, flux, video, etc.) and legacy workflow-files paths under workflows/legacy/.
2026-06-28 16:42:49 +08:00

1046 lines
18 KiB
JSON

{
"last_node_id": 47,
"last_link_id": 72,
"nodes": [
{
"id": 25,
"type": "VAEDecode",
"pos": [
1128.4863246634325,
839.1350489725157
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 38,
"label": "samples"
},
{
"name": "vae",
"type": "VAE",
"link": 39,
"label": "vae"
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
37
],
"slot_index": 0,
"label": "IMAGE"
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 16,
"type": "SetLatentNoiseMask",
"pos": [
482.4863246634337,
1067.1350489725144
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 25,
"label": "samples"
},
{
"name": "mask",
"type": "MASK",
"link": 26,
"label": "mask"
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
36
],
"shape": 3,
"label": "LATENT",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "SetLatentNoiseMask"
}
},
{
"id": 26,
"type": "PreviewImage",
"pos": [
1399.4863246634325,
836.1350489725157
],
"size": {
"0": 210,
"1": 246
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 37,
"label": "images"
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 3,
"type": "KSampler",
"pos": [
771.5530517578131,
147.078547668457
],
"size": {
"0": 315,
"1": 474
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 1,
"label": "model"
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 4,
"label": "positive"
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 6,
"label": "negative"
},
{
"name": "latent_image",
"type": "LATENT",
"link": 22,
"label": "latent_image"
},
{
"name": "denoise",
"type": "FLOAT",
"link": 40,
"widget": {
"name": "denoise"
},
"label": "denoise",
"slot_index": 4
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
7
],
"slot_index": 0,
"label": "LATENT"
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
515403336543451,
"randomize",
20,
8,
"euler",
"normal",
0.5
]
},
{
"id": 14,
"type": "VAEEncode",
"pos": [
483.95372282273496,
982.450597719769
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 23,
"label": "pixels"
},
{
"name": "vae",
"type": "VAE",
"link": 24,
"label": "vae"
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
25
],
"shape": 3,
"label": "LATENT",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEEncode"
}
},
{
"id": 10,
"type": "PreviewImage",
"pos": [
1392,
158
],
"size": {
"0": 210,
"1": 246
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 10,
"label": "images"
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1123,
161
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 7,
"label": "samples"
},
{
"name": "vae",
"type": "VAE",
"link": 8,
"label": "vae"
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
10
],
"slot_index": 0,
"label": "IMAGE"
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 24,
"type": "KSampler",
"pos": [
780.4863246634341,
836.1350489725157
],
"size": {
"0": 315,
"1": 474
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 32,
"label": "model"
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 33,
"label": "positive"
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 34,
"label": "negative"
},
{
"name": "latent_image",
"type": "LATENT",
"link": 36,
"label": "latent_image"
},
{
"name": "denoise",
"type": "FLOAT",
"link": 41,
"widget": {
"name": "denoise"
},
"label": "denoise"
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
38
],
"slot_index": 0,
"label": "LATENT"
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
335440027332478,
"randomize",
20,
8,
"euler",
"normal",
0.5
]
},
{
"id": 13,
"type": "VAEEncodeForInpaint",
"pos": [
445,
279
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 11,
"label": "pixels"
},
{
"name": "vae",
"type": "VAE",
"link": 13,
"label": "vae"
},
{
"name": "mask",
"type": "MASK",
"link": 12,
"label": "mask"
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
22
],
"shape": 3,
"label": "LATENT",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEEncodeForInpaint"
},
"widgets_values": [
6
]
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
-778,
166
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
1,
32
],
"slot_index": 0,
"label": "MODEL"
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
3,
5
],
"slot_index": 1,
"label": "CLIP"
},
{
"name": "VAE",
"type": "VAE",
"links": [
8,
13,
24,
39
],
"slot_index": 2,
"label": "VAE"
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"v1-5-pruned.safetensors"
]
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
-436,
168
],
"size": {
"0": 422.84503173828125,
"1": 164.31304931640625
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 3,
"label": "clip"
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
4,
33
],
"slot_index": 0,
"label": "CONDITIONING"
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"dog,cute,full body,running in the forest,\nclose up,\nOil painting,masterpiece,"
]
},
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
-433,
376
],
"size": {
"0": 425.27801513671875,
"1": 180.6060791015625
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 5,
"label": "clip"
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
6,
34
],
"slot_index": 0,
"label": "CONDITIONING"
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"Multiple tail,Separated body,worst quality, low quality,"
]
},
{
"id": 27,
"type": "PrimitiveNode",
"pos": [
-253,
622
],
"size": {
"0": 210,
"1": 82
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "FLOAT",
"type": "FLOAT",
"links": [
40,
41
],
"widget": {
"name": "denoise"
},
"slot_index": 0,
"label": "FLOAT"
}
],
"title": "denoise",
"properties": {
"Run widget replace on values": false
},
"widgets_values": [
0.5,
"fixed"
]
},
{
"id": 12,
"type": "LoadImage",
"pos": [
-772,
359
],
"size": {
"0": 315,
"1": 314.0000305175781
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
11,
23
],
"shape": 3,
"label": "IMAGE",
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
12,
26
],
"shape": 3,
"label": "MASK",
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"clipspace/clipspace-mask-1530016.5.png [input]",
"image"
]
},
{
"id": 45,
"type": "VAEDecode",
"pos": [
335.9089349300011,
622.6064206744068
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": null,
"label": "Latent"
},
{
"name": "vae",
"type": "VAE",
"link": 71,
"label": "VAE"
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
72
],
"shape": 3,
"label": "图像",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 46,
"type": "VAELoader",
"pos": [
-44.091065069998876,
622.6064206744068
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
71
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"sd1.5\\vae-ft-mse-840000-ema-pruned.safetensors"
]
},
{
"id": 47,
"type": "PreviewImage",
"pos": [
587.9089349300011,
626.6064206744068
],
"size": {
"0": 210,
"1": 26
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 72,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 44,
"type": "Note",
"pos": [
-1229,
361
],
"size": [
403.78098520925346,
403.2989857172911
],
"flags": {},
"order": 4,
"mode": 0,
"title": "Read Me",
"properties": {
"text": ""
},
"widgets_values": [
"工作流介绍: 这个工作流使用了两个不同的节点,用于对比局部重绘的效果。\n\n1、修改 Load Checkpoint 处的模型设置,加载你本地的模型\n\n2、在 Load Image (加载图像)处点击上传你的图片\n\n3、然后在 Load Image 节点处右键激活菜单,选择 Open in Mask Editor (在蒙版编辑器中打开),编辑涂抹你需要局部重绘的区域\n\n4、 设置 Denoise 的 value 来对比效果\n\n5、 点击【添加提示词队列】运行生成\n\nhttp://comfyui-wiki.local/zh/tutorial/advanced/how-to-inpaint-an-image-in-comfyui\n\n----\n\nWorkflow Introduction: This workflow utilizes two distinct nodes to compare the effects of local redrawing.\n\n1. Modify the model settings at the Load Checkpoint and load your local model.\n\n2. Click to upload your image at the Load Image node.\n\n3. Then right-click on the Load Image node to activate the menu, and select Open in Mask Editor to edit and paint the area you want to redraw locally.\n\n4. Set the value for Denoise to compare the effects.\n\n5. Click on \"Add Prompt Queue\" to run and generate.\n\nhttp://comfyui-wiki.local/tutorial/advanced/how-to-inpaint-an-image-in-comfyui"
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
1,
4,
0,
3,
0,
"MODEL"
],
[
3,
4,
1,
6,
0,
"CLIP"
],
[
4,
6,
0,
3,
1,
"CONDITIONING"
],
[
5,
4,
1,
7,
0,
"CLIP"
],
[
6,
7,
0,
3,
2,
"CONDITIONING"
],
[
7,
3,
0,
8,
0,
"LATENT"
],
[
8,
4,
2,
8,
1,
"VAE"
],
[
10,
8,
0,
10,
0,
"IMAGE"
],
[
11,
12,
0,
13,
0,
"IMAGE"
],
[
12,
12,
1,
13,
2,
"MASK"
],
[
13,
4,
2,
13,
1,
"VAE"
],
[
22,
13,
0,
3,
3,
"LATENT"
],
[
23,
12,
0,
14,
0,
"IMAGE"
],
[
24,
4,
2,
14,
1,
"VAE"
],
[
25,
14,
0,
16,
0,
"LATENT"
],
[
26,
12,
1,
16,
1,
"MASK"
],
[
32,
4,
0,
24,
0,
"MODEL"
],
[
33,
6,
0,
24,
1,
"CONDITIONING"
],
[
34,
7,
0,
24,
2,
"CONDITIONING"
],
[
36,
16,
0,
24,
3,
"LATENT"
],
[
37,
25,
0,
26,
0,
"IMAGE"
],
[
38,
24,
0,
25,
0,
"LATENT"
],
[
39,
4,
2,
25,
1,
"VAE"
],
[
40,
27,
0,
3,
4,
"FLOAT"
],
[
41,
27,
0,
24,
4,
"FLOAT"
],
[
71,
46,
0,
45,
1,
"VAE"
],
[
72,
45,
0,
47,
0,
"IMAGE"
]
],
"groups": [
{
"title": "VAE Encode (for Inpainting)",
"bounding": [
425,
77,
1252,
648
],
"color": "#3f789e",
"font_size": 24,
"locked": false
},
{
"title": "Set Latent Noise Mask",
"bounding": [
428,
764,
1248,
588
],
"color": "#A88",
"font_size": 24,
"locked": false
},
{
"title": "Input",
"bounding": [
-795,
79,
830,
756
],
"color": "#3f789e",
"font_size": 24,
"locked": false
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.5559917313492373,
"offset": {
"0": 1773.0051242315867,
"1": 232.90076146319691
}
}
},
"version": 0.4
}