Files
1Kynx-ComfyUI-RefineNode/example_workflows/Reference-free Text Refinement.json

1208 lines
21 KiB
JSON

{
"id": "e8b4cea5-5f0d-4df2-9d05-42599abb05a8",
"revision": 0,
"last_node_id": 38,
"last_link_id": 76,
"nodes": [
{
"id": 1,
"type": "ModelSamplingAuraFlow",
"pos": [
1490,
30
],
"size": [
270,
80
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 1
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
2
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "ModelSamplingAuraFlow",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
3.1
]
},
{
"id": 2,
"type": "CFGNorm",
"pos": [
1850,
30
],
"size": [
270,
110
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 2
}
],
"outputs": [
{
"name": "patched_model",
"type": "MODEL",
"links": [
17
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "CFGNorm",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
1
]
},
{
"id": 3,
"type": "VAELoader",
"pos": [
940,
460
],
"size": [
400,
90
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"slot_index": 0,
"links": [
4,
6,
33
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "VAELoader",
"models": [
{
"name": "qwen_image_vae.safetensors",
"url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors",
"directory": "vae"
}
],
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
"qwen_image_vae.safetensors"
]
},
{
"id": 4,
"type": "UNETLoader",
"pos": [
930,
30
],
"size": [
400,
120
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
1
]
}
],
"title": "Load Qwen Image Edit 2511 bf16 model",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "UNETLoader",
"models": [
{
"name": "qwen_image_edit_2511_bf16.safetensors",
"url": "https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_2511_bf16.safetensors",
"directory": "diffusion_models"
}
],
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
"qwen_image_edit_2511_fp8mixed.safetensors",
"default"
]
},
{
"id": 5,
"type": "VAEDecode",
"pos": [
2830,
530
],
"size": [
230,
80
],
"flags": {
"collapsed": false
},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 3
},
{
"name": "vae",
"type": "VAE",
"link": 4
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
14,
23
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "VAEDecode",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": []
},
{
"id": 6,
"type": "VAEEncode",
"pos": [
1990,
590
],
"size": [
230,
80
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 72
},
{
"name": "vae",
"type": "VAE",
"link": 6
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
12
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "VAEEncode",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": []
},
{
"id": 7,
"type": "ConditioningZeroOut",
"pos": [
1990,
430
],
"size": [
230,
50
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 7
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
11
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.20.1",
"Node name for S&R": "ConditioningZeroOut"
},
"widgets_values": []
},
{
"id": 8,
"type": "CLIPLoader",
"pos": [
930,
240
],
"size": [
400,
160
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
32
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "CLIPLoader",
"models": [
{
"name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
"url": "https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors",
"directory": "text_encoders"
}
],
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
"qwen_2.5_vl_7b_fp8_scaled.safetensors",
"qwen_image",
"default"
]
},
{
"id": 9,
"type": "LoraLoaderModelOnly",
"pos": [
2620,
30
],
"size": [
290,
120
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 8
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
9
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "LoraLoaderModelOnly",
"models": [
{
"name": "Qwen-Image-Edit-2511-RefineAny.safetensors",
"directory": "loras"
}
],
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
"Qwen-Image-Edit-2511-RefineAny.safetensors",
1
]
},
{
"id": 10,
"type": "KSampler",
"pos": [
2490,
320
],
"size": [
270,
570
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 9
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 10
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 11
},
{
"name": "latent_image",
"type": "LATENT",
"link": 12
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
3
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.16.4",
"Node name for S&R": "KSampler"
},
"widgets_values": [
0,
"fixed",
4,
1,
"euler",
"simple",
1
]
},
{
"id": 12,
"type": "RefineNodePasteBack",
"pos": [
2810,
710
],
"size": [
300,
200
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "generated_image",
"type": "IMAGE",
"link": 14
},
{
"name": "info",
"type": "REFINENODE_INFO",
"link": 76
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
40
]
},
{
"name": "paste_mask",
"type": "MASK",
"links": []
}
],
"title": "Paste repaired product back",
"properties": {
"Node name for S&R": "RefineNodePasteBack"
},
"widgets_values": [
"mask",
3,
5
]
},
{
"id": 14,
"type": "LoraLoaderModelOnly",
"pos": [
2180,
30
],
"size": [
370,
120
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 17
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
8
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "LoraLoaderModelOnly",
"models": [
{
"name": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",
"url": "https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/resolve/main/Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",
"directory": "loras"
}
],
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
"Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",
1
]
},
{
"id": 18,
"type": "ImageCompare",
"pos": [
1210,
820
],
"size": [
1250,
970
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "image_a",
"shape": 7,
"type": "IMAGE",
"link": 23
},
{
"name": "image_b",
"shape": 7,
"type": "IMAGE",
"link": 73
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.20.1",
"Node name for S&R": "ImageCompare"
},
"widgets_values": []
},
{
"id": 19,
"type": "FluxKontextMultiReferenceLatentMethod",
"pos": [
1960,
240
],
"size": [
320,
110
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 25
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
10
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.20.1",
"Node name for S&R": "FluxKontextMultiReferenceLatentMethod"
},
"widgets_values": [
"index"
]
},
{
"id": 21,
"type": "LoadImage",
"pos": [
-360,
730
],
"size": [
690,
1140
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
64
]
},
{
"name": "MASK",
"type": "MASK",
"links": [
65
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "LoadImage",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"image": "clipspace/clipspace-painted-masked-1777579693456.png [input]"
},
"widgets_values": [
"clipspace/clipspace-painted-masked-1777579693456.png [input]",
"image"
]
},
{
"id": 25,
"type": "TextEncodeQwenImageEditPlus",
"pos": [
1540,
240
],
"size": [
310,
350
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 32
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": 33
},
{
"name": "image1",
"shape": 7,
"type": "IMAGE",
"link": 74
},
{
"name": "image2",
"shape": 7,
"type": "IMAGE",
"link": 75
},
{
"name": "image3",
"shape": 7,
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
25,
7
]
}
],
"properties": {
"Node name for S&R": "TextEncodeQwenImageEditPlus"
},
"widgets_values": [
"refine the text \"ABCD\""
]
},
{
"id": 26,
"type": "SaveImage",
"pos": [
3210,
710
],
"size": [
800,
1370
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 40
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.20.1",
"Node name for S&R": "SaveImage"
},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 37,
"type": "RefineNodePreprocessMask",
"pos": [
390,
730
],
"size": [
320,
240
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 64
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": 65
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
69
]
},
{
"name": "spatial_mask_image",
"type": "IMAGE",
"links": [
70
]
},
{
"name": "mask",
"type": "MASK",
"links": null
},
{
"name": "info",
"type": "REFINENODE_INFO",
"links": [
71
]
}
],
"properties": {
"Node name for S&R": "RefineNodePreprocessMask"
},
"widgets_values": [
true,
64,
"mask"
]
},
{
"id": 38,
"type": "RefineNodeReferenceImageProcess",
"pos": [
800,
730
],
"size": [
350,
250
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 69
},
{
"name": "image2",
"shape": 7,
"type": "IMAGE",
"link": 70
},
{
"name": "image3",
"shape": 7,
"type": "IMAGE",
"link": null
},
{
"name": "info",
"shape": 7,
"type": "REFINENODE_INFO",
"link": 71
}
],
"outputs": [
{
"name": "image1",
"type": "IMAGE",
"links": [
72,
73,
74
]
},
{
"name": "image2",
"type": "IMAGE",
"links": [
75
]
},
{
"name": "image3",
"type": "IMAGE",
"links": null
},
{
"name": "info",
"type": "REFINENODE_INFO",
"links": [
76
]
}
],
"properties": {
"Node name for S&R": "RefineNodeReferenceImageProcess"
},
"widgets_values": [
false,
"lanczos",
"crop"
]
}
],
"links": [
[
1,
4,
0,
1,
0,
"MODEL"
],
[
2,
1,
0,
2,
0,
"MODEL"
],
[
3,
10,
0,
5,
0,
"LATENT"
],
[
4,
3,
0,
5,
1,
"VAE"
],
[
6,
3,
0,
6,
1,
"VAE"
],
[
7,
25,
0,
7,
0,
"CONDITIONING"
],
[
8,
14,
0,
9,
0,
"MODEL"
],
[
9,
9,
0,
10,
0,
"MODEL"
],
[
10,
19,
0,
10,
1,
"CONDITIONING"
],
[
11,
7,
0,
10,
2,
"CONDITIONING"
],
[
12,
6,
0,
10,
3,
"LATENT"
],
[
14,
5,
0,
12,
0,
"IMAGE"
],
[
17,
2,
0,
14,
0,
"MODEL"
],
[
23,
5,
0,
18,
0,
"IMAGE"
],
[
25,
25,
0,
19,
0,
"CONDITIONING"
],
[
32,
8,
0,
25,
0,
"CLIP"
],
[
33,
3,
0,
25,
1,
"VAE"
],
[
40,
12,
0,
26,
0,
"IMAGE"
],
[
64,
21,
0,
37,
0,
"IMAGE"
],
[
65,
21,
1,
37,
1,
"MASK"
],
[
69,
37,
0,
38,
0,
"IMAGE"
],
[
70,
37,
1,
38,
1,
"IMAGE"
],
[
71,
37,
3,
38,
3,
"REFINENODE_INFO"
],
[
72,
38,
0,
6,
0,
"IMAGE"
],
[
73,
38,
0,
18,
1,
"IMAGE"
],
[
74,
38,
0,
25,
2,
"IMAGE"
],
[
75,
38,
1,
25,
3,
"IMAGE"
],
[
76,
38,
3,
12,
1,
"REFINENODE_INFO"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.5644739300537777,
"offset": [
680.9651611540171,
113.64139043113664
]
},
"frontendVersion": "1.44.14",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}