Files
adachi0130-Adachi-Inpaint-W…/examples/02-modular-inpaint.json
T

967 lines
17 KiB
JSON

{
"id": "00000000-0000-0000-0000-000000000000",
"revision": 0,
"last_node_id": 13,
"last_link_id": 19,
"nodes": [
{
"id": 1,
"type": "AdachiInlineMask",
"pos": [
40,
80
],
"size": [
660,
700
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"localized_name": "image",
"name": "image",
"type": "STRING",
"widget": {
"name": "image"
},
"link": null
},
{
"localized_name": "mask_data",
"name": "mask_data",
"type": "STRING",
"widget": {
"name": "mask_data"
},
"link": null
},
{
"localized_name": "source_data",
"name": "source_data",
"type": "STRING",
"widget": {
"name": "source_data"
},
"link": null
}
],
"outputs": [
{
"localized_name": "image",
"name": "image",
"type": "IMAGE",
"links": [
3,
17
]
},
{
"localized_name": "mask",
"name": "mask",
"type": "MASK",
"links": [
4
]
}
],
"properties": {
"Node name for S&R": "AdachiInlineMask"
},
"widgets_values": [
"",
"",
""
]
},
{
"id": 2,
"type": "CheckpointLoaderSimple",
"pos": [
780,
80
],
"size": [
340,
110
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"localized_name": "Checkpoint名称",
"name": "ckpt_name",
"type": "COMBO",
"widget": {
"name": "ckpt_name"
},
"link": null
}
],
"outputs": [
{
"localized_name": "模型",
"name": "MODEL",
"type": "MODEL",
"links": [
9
]
},
{
"localized_name": "CLIP",
"name": "CLIP",
"type": "CLIP",
"links": [
1,
2
]
},
{
"localized_name": "VAE",
"name": "VAE",
"type": "VAE",
"links": [
6,
14
]
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"CHOOSE_YOUR_CHECKPOINT.safetensors"
]
},
{
"id": 3,
"type": "CLIPTextEncode",
"pos": [
780,
250
],
"size": [
350,
150
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"localized_name": "clip",
"name": "clip",
"type": "CLIP",
"link": 1
},
{
"localized_name": "文本",
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": null
}
],
"outputs": [
{
"localized_name": "条件",
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
10
]
}
],
"title": "正面提示词 / Positive",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"A detailed natural photograph, coherent lighting, high quality"
]
},
{
"id": 4,
"type": "CLIPTextEncode",
"pos": [
780,
450
],
"size": [
350,
150
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"localized_name": "clip",
"name": "clip",
"type": "CLIP",
"link": 2
},
{
"localized_name": "文本",
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": null
}
],
"outputs": [
{
"localized_name": "条件",
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
11
]
}
],
"title": "负面提示词 / Negative",
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"blurry, distorted, artifacts"
]
},
{
"id": 5,
"type": "AdachiInpaintPrepare",
"pos": [
1220,
80
],
"size": [
350,
763
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"localized_name": "image",
"name": "image",
"type": "IMAGE",
"link": 3
},
{
"localized_name": "mask",
"name": "mask",
"type": "MASK",
"link": 4
},
{
"localized_name": "area",
"name": "area",
"type": "COMBO",
"widget": {
"name": "area"
},
"link": null
},
{
"localized_name": "width",
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": null
},
{
"localized_name": "height",
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": null
},
{
"localized_name": "padding",
"name": "padding",
"type": "INT",
"widget": {
"name": "padding"
},
"link": null
},
{
"localized_name": "mask_blur",
"name": "mask_blur",
"type": "FLOAT",
"widget": {
"name": "mask_blur"
},
"link": null
},
{
"localized_name": "mask_grow",
"name": "mask_grow",
"type": "INT",
"widget": {
"name": "mask_grow"
},
"link": null
},
{
"localized_name": "mask_mode",
"name": "mask_mode",
"type": "COMBO",
"widget": {
"name": "mask_mode"
},
"link": null
},
{
"localized_name": "fill",
"name": "fill",
"type": "COMBO",
"widget": {
"name": "fill"
},
"link": null
},
{
"localized_name": "resize_mode",
"name": "resize_mode",
"type": "COMBO",
"widget": {
"name": "resize_mode"
},
"link": null
},
{
"localized_name": "soft_edge",
"name": "soft_edge",
"shape": 7,
"type": "BOOLEAN",
"widget": {
"name": "soft_edge"
},
"link": null
},
{
"localized_name": "soft_strength",
"name": "soft_strength",
"shape": 7,
"type": "FLOAT",
"widget": {
"name": "soft_strength"
},
"link": null
}
],
"outputs": [
{
"localized_name": "pixels",
"name": "pixels",
"type": "IMAGE",
"links": [
5
]
},
{
"localized_name": "mask",
"name": "mask",
"type": "MASK",
"links": [
8
]
},
{
"localized_name": "context",
"name": "context",
"type": "ADACHI_INPAINT_CONTEXT",
"links": [
16
]
}
],
"properties": {
"Node name for S&R": "AdachiInpaintPrepare"
},
"widgets_values": [
"only_masked",
1024,
1024,
32,
4,
0,
"inside",
"original",
"stretch",
false,
0.5
]
},
{
"id": 6,
"type": "VAEEncode",
"pos": [
1640,
80
],
"size": [
240,
90
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"localized_name": "像素",
"name": "pixels",
"type": "IMAGE",
"link": 5
},
{
"localized_name": "vae",
"name": "vae",
"type": "VAE",
"link": 6
}
],
"outputs": [
{
"localized_name": "Latent",
"name": "LATENT",
"type": "LATENT",
"links": [
7
]
}
],
"properties": {
"Node name for S&R": "VAEEncode"
},
"widgets_values": []
},
{
"id": 7,
"type": "SetLatentNoiseMask",
"pos": [
1640,
260
],
"size": [
240,
100
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"localized_name": "Latent",
"name": "samples",
"type": "LATENT",
"link": 7
},
{
"localized_name": "遮罩",
"name": "mask",
"type": "MASK",
"link": 8
}
],
"outputs": [
{
"localized_name": "Latent",
"name": "LATENT",
"type": "LATENT",
"links": [
12
]
}
],
"properties": {
"Node name for S&R": "SetLatentNoiseMask"
},
"widgets_values": []
},
{
"id": 8,
"type": "KSampler",
"pos": [
1980,
80
],
"size": [
330,
317.3125
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"localized_name": "模型",
"name": "model",
"type": "MODEL",
"link": 9
},
{
"localized_name": "正面条件",
"name": "positive",
"type": "CONDITIONING",
"link": 10
},
{
"localized_name": "负面条件",
"name": "negative",
"type": "CONDITIONING",
"link": 11
},
{
"localized_name": "Latent图像",
"name": "latent_image",
"type": "LATENT",
"link": 12
},
{
"localized_name": "种子",
"name": "seed",
"type": "INT",
"widget": {
"name": "seed"
},
"link": null
},
{
"localized_name": "步数",
"name": "steps",
"type": "INT",
"widget": {
"name": "steps"
},
"link": null
},
{
"localized_name": "cfg",
"name": "cfg",
"type": "FLOAT",
"widget": {
"name": "cfg"
},
"link": null
},
{
"localized_name": "采样器名称",
"name": "sampler_name",
"type": "COMBO",
"widget": {
"name": "sampler_name"
},
"link": null
},
{
"localized_name": "调度器",
"name": "scheduler",
"type": "COMBO",
"widget": {
"name": "scheduler"
},
"link": null
},
{
"localized_name": "降噪",
"name": "denoise",
"type": "FLOAT",
"widget": {
"name": "denoise"
},
"link": null
}
],
"outputs": [
{
"localized_name": "Latent",
"name": "LATENT",
"type": "LATENT",
"links": [
13
]
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
42,
"fixed",
20,
7,
"dpmpp_2m",
"karras",
0.75
]
},
{
"id": 9,
"type": "VAEDecode",
"pos": [
2410,
80
],
"size": [
240,
90
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"localized_name": "Latent",
"name": "samples",
"type": "LATENT",
"link": 13
},
{
"localized_name": "vae",
"name": "vae",
"type": "VAE",
"link": 14
}
],
"outputs": [
{
"localized_name": "图像",
"name": "IMAGE",
"type": "IMAGE",
"links": [
15
]
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 10,
"type": "AdachiInpaintComposite",
"pos": [
2410,
260
],
"size": [
300,
110
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"localized_name": "generated",
"name": "generated",
"type": "IMAGE",
"link": 15
},
{
"localized_name": "context",
"name": "context",
"type": "ADACHI_INPAINT_CONTEXT",
"link": 16
}
],
"outputs": [
{
"localized_name": "image",
"name": "image",
"type": "IMAGE",
"links": [
18
]
}
],
"properties": {
"Node name for S&R": "AdachiInpaintComposite"
},
"widgets_values": []
},
{
"id": 11,
"type": "AdachiImageCompare",
"pos": [
2800,
80
],
"size": [
590,
620
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"localized_name": "original",
"name": "original",
"type": "IMAGE",
"link": 17
},
{
"localized_name": "result",
"name": "result",
"type": "IMAGE",
"link": 18
}
],
"outputs": [
{
"localized_name": "image",
"name": "image",
"type": "IMAGE",
"links": [
19
]
}
],
"properties": {
"Node name for S&R": "AdachiImageCompare"
},
"widgets_values": []
},
{
"id": 12,
"type": "SaveImage",
"pos": [
3500,
80
],
"size": [
430,
450
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"localized_name": "图片",
"name": "images",
"type": "IMAGE",
"link": 19
},
{
"localized_name": "文件名前缀",
"name": "filename_prefix",
"type": "STRING",
"widget": {
"name": "filename_prefix"
},
"link": null
}
],
"outputs": [],
"properties": {},
"widgets_values": [
"Adachi/Modular"
]
},
{
"id": 13,
"type": "Note",
"pos": [
1220,
600
],
"size": [
520,
230
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"安达工作台 / Adachi-Inpaint-Workbench — 标准节点组合\n选择模型,载入原图并涂抹,然后运行喵\nPrepare → VAE Encode → Set Latent Noise Mask → KSampler → VAE Decode → Composite 喵\n独立 Prepare 的 fill 请选择 original 或 fill 喵\nlatent_noise / latent_nothing 由一体采样节点实现,独立预处理不修改 latent 喵\n使用专用 inpaint checkpoint 时请改用原生 InpaintModelConditioning 或一体节点 inpaint_model 喵"
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
1,
2,
1,
3,
0,
"CLIP"
],
[
2,
2,
1,
4,
0,
"CLIP"
],
[
3,
1,
0,
5,
0,
"IMAGE"
],
[
4,
1,
1,
5,
1,
"MASK"
],
[
5,
5,
0,
6,
0,
"IMAGE"
],
[
6,
2,
2,
6,
1,
"VAE"
],
[
7,
6,
0,
7,
0,
"LATENT"
],
[
8,
5,
1,
7,
1,
"MASK"
],
[
9,
2,
0,
8,
0,
"MODEL"
],
[
10,
3,
0,
8,
1,
"CONDITIONING"
],
[
11,
4,
0,
8,
2,
"CONDITIONING"
],
[
12,
7,
0,
8,
3,
"LATENT"
],
[
13,
8,
0,
9,
0,
"LATENT"
],
[
14,
2,
2,
9,
1,
"VAE"
],
[
15,
9,
0,
10,
0,
"IMAGE"
],
[
16,
5,
2,
10,
1,
"ADACHI_INPAINT_CONTEXT"
],
[
17,
1,
0,
11,
0,
"IMAGE"
],
[
18,
10,
0,
11,
1,
"IMAGE"
],
[
19,
11,
0,
12,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1,
"offset": [
0,
0
]
}
},
"version": 0.4
}