Files
martin-rizzo-ComfyUI-ZImage…/workflows/inpainting_example.json
T
Martin Rizzo ca15874c73 feat: Add mask inpainting example workflow
This commit includes an example workflow for mask inpainting, located in the
'workflows/inpainting_example.json' file. The addition leverages the recent
enhancements to the "Z-Sampler Turbo" node, which now supports mask inpainting
and adjustable denoising levels, providing users with a practical demonstration
of these features.
2026-02-15 13:26:43 -03:00

778 lines
14 KiB
JSON

{
"id": "f14c6566-993e-4413-bd11-9c7f2ca07fd1",
"revision": 0,
"last_node_id": 72,
"last_link_id": 108,
"nodes": [
{
"id": 35,
"type": "UnetLoaderGGUF",
"pos": [
-1150,
150
],
"size": [
380,
100
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
55
]
}
],
"properties": {
"Node name for S&R": "UnetLoaderGGUF",
"cnr_id": "comfyui-gguf",
"aux_id": "city96/ComfyUI-GGUF",
"ver": "1.1.8"
},
"widgets_values": [
"z_image_turbo-Q5_K_S.gguf"
],
"color": "#322",
"bgcolor": "#533",
"shape": 1
},
{
"id": 36,
"type": "CLIPLoaderGGUF",
"pos": [
-1150,
290
],
"size": [
380,
110
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
54
]
}
],
"properties": {
"Node name for S&R": "CLIPLoaderGGUF",
"cnr_id": "comfyui-gguf",
"aux_id": "city96/ComfyUI-GGUF",
"ver": "1.1.8"
},
"widgets_values": [
"Qwen3-4B.i1-Q5_K_S.gguf",
"lumina2"
],
"color": "#322",
"bgcolor": "#533",
"shape": 1
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1220,
150
],
"size": [
160,
50
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 71
},
{
"name": "vae",
"type": "VAE",
"link": 25
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
47
]
}
],
"properties": {
"Node name for S&R": "VAEDecode",
"cnr_id": "comfy-core",
"ver": "0.7.0"
},
"widgets_values": []
},
{
"id": 31,
"type": "SaveImage //ZImagePowerNodes",
"pos": [
1400,
150
],
"size": [
540,
760
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 47
}
],
"outputs": [],
"properties": {
"Node name for S&R": "SaveImage //ZImagePowerNodes"
},
"widgets_values": [
"ZImage/%date:yyyy_MM_dd%/ZI",
true
]
},
{
"id": 37,
"type": "VAELoader",
"pos": [
-1150,
440
],
"size": [
380,
90
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"links": [
56
]
}
],
"properties": {
"Node name for S&R": "VAELoader",
"cnr_id": "comfy-core",
"ver": "0.3.75"
},
"widgets_values": [
"ae.safetensors"
],
"color": "#322",
"bgcolor": "#533",
"shape": 1
},
{
"id": 47,
"type": "ZSamplerTurbo2 //ZImagePowerNodes",
"pos": [
880,
150
],
"size": [
320,
630
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 68
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 89
},
{
"name": "latent_input",
"type": "LATENT",
"link": 104
}
],
"outputs": [
{
"name": "latent_output",
"type": "LATENT",
"links": [
71
]
}
],
"properties": {
"Node name for S&R": "ZSamplerTurbo2 //ZImagePowerNodes"
},
"widgets_values": [
2,
"fixed",
9,
0.92,
"experimental"
]
},
{
"id": 71,
"type": "Reroute",
"pos": [
730,
820
],
"size": [
75,
26
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 103
}
],
"outputs": [
{
"name": "",
"type": "LATENT",
"links": [
104
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 64,
"type": "VAEEncodeForInpaint",
"pos": [
160,
820
],
"size": [
282.0435546875,
98
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 91
},
{
"name": "vae",
"type": "VAE",
"link": 107
},
{
"name": "mask",
"type": "MASK",
"link": 92
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
103
]
}
],
"properties": {
"Node name for S&R": "VAEEncodeForInpaint"
},
"widgets_values": [
6
]
},
{
"id": 20,
"type": "Reroute",
"pos": [
1050,
930
],
"size": [
75,
26
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 108
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
25
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 54,
"type": "LoadImage",
"pos": [
-340,
210
],
"size": [
440,
530
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
91
]
},
{
"name": "MASK",
"type": "MASK",
"links": [
92
]
}
],
"properties": {
"Node name for S&R": "LoadImage",
"image": "clipspace/clipspace-painted-masked-1771169045280.png [input]"
},
"widgets_values": [
"clipspace/clipspace-painted-masked-1771169045280.png [input]",
"image"
]
},
{
"id": 38,
"type": "Reroute",
"pos": [
-690,
210
],
"size": [
75,
26
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 54
}
],
"outputs": [
{
"name": "",
"type": "CLIP",
"links": [
62
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 72,
"type": "Reroute",
"pos": [
-130,
930
],
"size": [
75,
26
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 105
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
107,
108
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 39,
"type": "Reroute",
"pos": [
-690,
150
],
"size": [
75,
26
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 55
}
],
"outputs": [
{
"name": "",
"type": "MODEL",
"links": [
68
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 40,
"type": "Reroute",
"pos": [
-690,
440
],
"size": [
75,
26
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 56
}
],
"outputs": [
{
"name": "",
"type": "VAE",
"links": [
105
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false
}
},
{
"id": 41,
"type": "Note",
"pos": [
-2040,
110
],
"size": [
870,
550
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "README",
"properties": {},
"widgets_values": [
"Z-Image Power Nodes\n\n## Workflow Prerequisites ##\n\nThis workflow requires the following custom nodes, which can be obtained via ComfyUI-Manager:\n\n * Z-Image Power Nodes: https://github.com/martin-rizzo/ComfyUI-ZImagePowerNodes\n * ComfyUI-GGUF : https://github.com/city96/ComfyUI-GGUF\n\n Additionally, ensure you have the following 3 models downloaded and placed in their respective\n directories within your ComfyUI installation:\n\n z_image_turbo-Q5_K_S.gguf\n * Download: https://huggingface.co/jayn7/Z-Image-Turbo-GGUF/blob/main/z_image_turbo-Q5_K_S.gguf\n * Local Directory: `ComfyUI/models/diffusion_models/`\n\n Qwen3-4B.i1-Q5_K_S.gguf\n * Download: https://huggingface.co/mradermacher/Qwen3-4B-i1-GGUF/blob/main/Qwen3-4B.i1-Q5_K_S.gguf\n * Local Directory: `ComfyUI/models/text_encoders/`\n\n ae.safetensors\n * Download: https://huggingface.co/Comfy-Org/z_image_turbo/blob/main/split_files/vae/ae.safetensors\n * Local Directory: `Comfyui/models/vae/`\n\n## More Info ##\n\n- https://github.com/martin-rizzo/ComfyUI-ZImagePowerNodes\n- https://civitai.com/models/2322533/z-image-power-nodes\n\nCreated by Martin Rizzo\n GitHub : https://github.com/martin-rizzo\n CivitAI: https://civitai.com/user/Photographer\n Reddit : https://www.reddit.com/user/FotografoVirtual\n"
],
"color": "#223",
"bgcolor": "#335",
"shape": 1
},
{
"id": 43,
"type": "StylePromptEncoder2 //ZImagePowerNodes",
"pos": [
160,
200
],
"size": [
670,
570
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 62
},
{
"name": "customization",
"shape": 7,
"type": "STRING",
"link": null
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
89
]
},
{
"name": "STRING",
"type": "STRING",
"links": null
}
],
"properties": {
"Node name for S&R": "StylePromptEncoder2 //ZImagePowerNodes"
},
"widgets_values": [
"\"Comic 1\"",
null,
null,
""
],
"color": "#232",
"bgcolor": "#353",
"shape": 1
}
],
"links": [
[
25,
20,
0,
8,
1,
"VAE"
],
[
47,
8,
0,
31,
0,
"IMAGE"
],
[
54,
36,
0,
38,
0,
"CLIP"
],
[
55,
35,
0,
39,
0,
"MODEL"
],
[
56,
37,
0,
40,
0,
"VAE"
],
[
62,
38,
0,
43,
0,
"CLIP"
],
[
68,
39,
0,
47,
0,
"MODEL"
],
[
71,
47,
0,
8,
0,
"LATENT"
],
[
89,
43,
0,
47,
1,
"CONDITIONING"
],
[
91,
54,
0,
64,
0,
"IMAGE"
],
[
92,
54,
1,
64,
2,
"MASK"
],
[
103,
64,
0,
71,
0,
"LATENT"
],
[
104,
71,
0,
47,
2,
"LATENT"
],
[
105,
40,
0,
72,
0,
"VAE"
],
[
107,
72,
0,
64,
1,
"VAE"
],
[
108,
72,
0,
20,
0,
"VAE"
]
],
"groups": [
{
"id": 2,
"title": "GGUF MODELS",
"bounding": [
-1160,
80,
400,
580
],
"color": "#A88",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.7513148009015781,
"offset": [
463.45862422937785,
124.97178192481454
]
},
"frontendVersion": "1.37.11",
"workflowRendererVersion": "LG"
},
"version": 0.4
}