Zen-Image-Edit-Comfy / workflows /image_edit_ui.json
t8star's picture
Add Zen Image Edit single checkpoint for ComfyUI
9fef057 verified
Raw History Blame Contribute Delete
9.33 kB
{
"id": "25998604-8c0c-5fab-85f0-2ea43e3c6752",
"revision": 0,
"last_node_id": 6,
"last_link_id": 10,
"nodes": [
{
"id": 1,
"type": "ZenImageEditCheckpointLoader",
"pos": [
0,
0
],
"size": [
340,
170
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"name": "checkpoint",
"type": "COMBO",
"widget": {
"name": "checkpoint"
},
"link": null
},
{
"name": "te_precision",
"type": "COMBO",
"widget": {
"name": "te_precision"
},
"link": null
},
{
"name": "shift",
"type": "FLOAT",
"widget": {
"name": "shift"
},
"link": null
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
2
]
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
1
]
},
{
"name": "VAE",
"type": "VAE",
"links": [
7,
9
]
}
],
"properties": {
"Node name for S&R": "ZenImageEditCheckpointLoader"
},
"widgets_values": [
"zen_image_edit_qwen21_single.safetensors",
"auto",
5.0
]
},
{
"id": 2,
"type": "ZenImageEditEncodeAdvanced",
"pos": [
410,
0
],
"size": [
420,
320
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 1
},
{
"name": "prompt",
"type": "STRING",
"widget": {
"name": "prompt"
},
"link": null
},
{
"name": "negative_prompt",
"type": "STRING",
"widget": {
"name": "negative_prompt"
},
"link": null
},
{
"name": "vae",
"type": "VAE",
"link": 9
},
{
"name": "resolution",
"type": "INT",
"widget": {
"name": "resolution"
},
"link": null
},
{
"name": "canvas_mode",
"type": "COMBO",
"widget": {
"name": "canvas_mode"
},
"link": null
},
{
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": null
},
{
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": null
},
{
"name": "image_1",
"type": "IMAGE",
"link": 10
}
],
"outputs": [
{
"name": "positive",
"type": "CONDITIONING",
"links": [
3
]
},
{
"name": "negative",
"type": "CONDITIONING",
"links": [
4
]
},
{
"name": "latent",
"type": "LATENT",
"links": [
5
]
}
],
"properties": {
"Node name for S&R": "ZenImageEditEncodeAdvanced"
},
"widgets_values": [
"turn the red square into a yellow circle",
"",
512,
"auto",
512,
512
]
},
{
"id": 3,
"type": "KSampler",
"pos": [
900,
0
],
"size": [
320,
450
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 2
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 3
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 4
},
{
"name": "latent_image",
"type": "LATENT",
"link": 5
},
{
"name": "seed",
"type": "INT",
"widget": {
"name": "seed"
},
"link": null
},
{
"name": "steps",
"type": "INT",
"widget": {
"name": "steps"
},
"link": null
},
{
"name": "cfg",
"type": "FLOAT",
"widget": {
"name": "cfg"
},
"link": null
},
{
"name": "sampler_name",
"type": "COMBO",
"widget": {
"name": "sampler_name"
},
"link": null
},
{
"name": "scheduler",
"type": "COMBO",
"widget": {
"name": "scheduler"
},
"link": null
},
{
"name": "denoise",
"type": "FLOAT",
"widget": {
"name": "denoise"
},
"link": null
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
6
]
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
42,
"fixed",
20,
4.0,
"euler",
"simple",
1.0
]
},
{
"id": 4,
"type": "VAEDecode",
"pos": [
1280,
0
],
"size": [
270,
100
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 6
},
{
"name": "vae",
"type": "VAE",
"link": 7
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
8
]
}
],
"properties": {
"Node name for S&R": "VAEDecode"
},
"widgets_values": []
},
{
"id": 5,
"type": "SaveImage",
"pos": [
1600,
0
],
"size": [
340,
300
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 8
},
{
"name": "filename_prefix",
"type": "STRING",
"widget": {
"name": "filename_prefix"
},
"link": null
}
],
"outputs": [],
"properties": {
"Node name for S&R": "SaveImage"
},
"widgets_values": [
"ZenImageEdit"
]
},
{
"id": 6,
"type": "LoadImage",
"pos": [
0,
260
],
"size": [
340,
350
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "COMBO",
"widget": {
"name": "image"
},
"link": null
},
{
"name": "upload",
"type": "IMAGEUPLOAD",
"widget": {
"name": "upload"
},
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
10
]
},
{
"name": "MASK",
"type": "MASK",
"links": []
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"reference.png",
"image"
]
}
],
"links": [
[
1,
1,
1,
2,
0,
"CLIP"
],
[
2,
1,
0,
3,
0,
"MODEL"
],
[
3,
2,
0,
3,
1,
"CONDITIONING"
],
[
4,
2,
1,
3,
2,
"CONDITIONING"
],
[
5,
2,
2,
3,
3,
"LATENT"
],
[
6,
3,
0,
4,
0,
"LATENT"
],
[
7,
1,
2,
4,
1,
"VAE"
],
[
8,
4,
0,
5,
0,
"IMAGE"
],
[
9,
1,
2,
2,
3,
"VAE"
],
[
10,
6,
0,
2,
8,
"IMAGE"
]
],
"groups": [],
"config": {},
"definitions": {},
"extra": {
"ue_links": []
},
"version": 0.4
}