Files
1Kynx-ComfyUI-RefineNode/example_workflows/Reference-based Logo Refinement.json
T

1433 lines
25 KiB
JSON

{
"id": "refinenode-native-product-reference-repair",
"revision": 1,
"last_node_id": 345,
"last_link_id": 836,
"nodes": [
{
"id": 171,
"type": "ModelSamplingAuraFlow",
"pos": [
-730,
-700
],
"size": [
270,
80
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 378
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
387
]
}
],
"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": 178,
"type": "CFGNorm",
"pos": [
-370,
-700
],
"size": [
270,
110
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 387
}
],
"outputs": [
{
"name": "patched_model",
"type": "MODEL",
"links": [
388
]
}
],
"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": 172,
"type": "VAELoader",
"pos": [
-1280,
-270
],
"size": [
400,
90
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"slot_index": 0,
"links": [
390,
407,
814
]
}
],
"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": 183,
"type": "UNETLoader",
"pos": [
-1290,
-700
],
"size": [
400,
120
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": [
378
]
}
],
"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": 192,
"type": "VAEDecode",
"pos": [
610,
-200
],
"size": [
230,
80
],
"flags": {
"collapsed": false
},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 406
},
{
"name": "vae",
"type": "VAE",
"link": 407
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
454,
507
]
}
],
"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": 182,
"type": "VAEEncode",
"pos": [
-170,
-60
],
"size": [
230,
80
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 802
},
{
"name": "vae",
"type": "VAE",
"link": 390
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
403
]
}
],
"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": 196,
"type": "ConditioningZeroOut",
"pos": [
-190,
-280
],
"size": [
230,
50
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 490
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
423
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.20.1",
"Node name for S&R": "ConditioningZeroOut"
},
"widgets_values": []
},
{
"id": 184,
"type": "CLIPLoader",
"pos": [
-1290,
-490
],
"size": [
400,
160
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"links": [
813
]
}
],
"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": 219,
"type": "LoraLoaderModelOnly",
"pos": [
400,
-700
],
"size": [
290,
120
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 836
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
474
]
}
],
"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": 191,
"type": "KSampler",
"pos": [
240,
-410
],
"size": [
270,
570
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 474
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 703
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 423
},
{
"name": "latent_image",
"type": "LATENT",
"link": 403
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
406
]
}
],
"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": 201,
"type": "SaveImage",
"pos": [
990,
-20
],
"size": [
1240,
1830
],
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 453
}
],
"outputs": [],
"title": "Save final repaired target product",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.20.1",
"Node name for S&R": "SaveImage"
},
"widgets_values": [
"RefineNode_Product_Repair"
]
},
{
"id": 206,
"type": "RefineNodePasteBack",
"pos": [
590,
-20
],
"size": [
300,
200
],
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "generated_image",
"type": "IMAGE",
"link": 454
},
{
"name": "info",
"type": "REFINENODE_INFO",
"link": 809
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
453
]
},
{
"name": "paste_mask",
"type": "MASK",
"links": []
}
],
"title": "Paste repaired product back",
"properties": {
"Node name for S&R": "RefineNodePasteBack"
},
"widgets_values": [
"mask",
3,
5
]
},
{
"id": 217,
"type": "PreviewImage",
"pos": [
-830,
90
],
"size": [
490,
460
],
"flags": {
"collapsed": false
},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 801
}
],
"outputs": [],
"title": "Preview target model image for Qwen",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.20.1",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 179,
"type": "LoraLoaderModelOnly",
"pos": [
-30,
-700
],
"size": [
370,
120
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 388
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
836
]
}
],
"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": 226,
"type": "ImageCompare",
"pos": [
-890,
610
],
"size": [
1100,
1070
],
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "image_a",
"shape": 7,
"type": "IMAGE",
"link": 507
},
{
"name": "image_b",
"shape": 7,
"type": "IMAGE",
"link": 803
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.20.1",
"Node name for S&R": "ImageCompare"
},
"widgets_values": []
},
{
"id": 229,
"type": "FluxKontextMultiReferenceLatentMethod",
"pos": [
-220,
-490
],
"size": [
320,
110
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 818
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
703
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.20.1",
"Node name for S&R": "FluxKontextMultiReferenceLatentMethod"
},
"widgets_values": [
"index"
]
},
{
"id": 230,
"type": "LoadImage",
"pos": [
-2370,
-40
],
"size": [
510,
620
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
788
]
},
{
"name": "MASK",
"type": "MASK",
"links": [
789
]
}
],
"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-1777588978061.png [input]"
},
"widgets_values": [
"clipspace/clipspace-painted-masked-1777588978061.png [input]",
"image"
]
},
{
"id": 330,
"type": "RefineNodePreprocessMask",
"pos": [
-1780,
-40
],
"size": [
320,
240
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 788
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": 789
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
819
]
},
{
"name": "spatial_mask_image",
"type": "IMAGE",
"links": null
},
{
"name": "mask",
"type": "MASK",
"links": null
},
{
"name": "info",
"type": "REFINENODE_INFO",
"links": null
}
],
"properties": {
"Node name for S&R": "RefineNodePreprocessMask"
},
"widgets_values": [
true,
32,
"mask"
]
},
{
"id": 331,
"type": "RefineNodePreprocessMask",
"pos": [
-1780,
700
],
"size": [
320,
240
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 826
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": 827
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
797
]
},
{
"name": "spatial_mask_image",
"type": "IMAGE",
"links": [
820
]
},
{
"name": "mask",
"type": "MASK",
"links": null
},
{
"name": "info",
"type": "REFINENODE_INFO",
"links": [
800
]
}
],
"properties": {
"Node name for S&R": "RefineNodePreprocessMask"
},
"widgets_values": [
true,
32,
"mask"
]
},
{
"id": 332,
"type": "RefineNodeReferenceImageProcess",
"pos": [
-1300,
-60
],
"size": [
340,
260
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 797
},
{
"name": "image2",
"shape": 7,
"type": "IMAGE",
"link": 819
},
{
"name": "image3",
"shape": 7,
"type": "IMAGE",
"link": 820
},
{
"name": "info",
"shape": 7,
"type": "REFINENODE_INFO",
"link": 800
}
],
"outputs": [
{
"name": "image1",
"type": "IMAGE",
"links": [
801,
802,
803,
822
]
},
{
"name": "image2",
"type": "IMAGE",
"links": [
823,
834
]
},
{
"name": "image3",
"type": "IMAGE",
"links": [
824
]
},
{
"name": "info",
"type": "REFINENODE_INFO",
"links": [
809
]
}
],
"properties": {
"Node name for S&R": "RefineNodeReferenceImageProcess"
},
"widgets_values": [
false,
"lanczos",
"crop"
]
},
{
"id": 333,
"type": "TextEncodeQwenImageEditPlus",
"pos": [
-680,
-490
],
"size": [
410,
370
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 813
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": 814
},
{
"name": "image1",
"shape": 7,
"type": "IMAGE",
"link": 822
},
{
"name": "image2",
"shape": 7,
"type": "IMAGE",
"link": 823
},
{
"name": "image3",
"shape": 7,
"type": "IMAGE",
"link": 824
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
818,
490
]
}
],
"properties": {
"Node name for S&R": "TextEncodeQwenImageEditPlus"
},
"widgets_values": [
"refine the masked product using image2 as reference. Restore the logo, text, edges, material texture, color details, and exact product appearance while preserving the target photo lighting, pose, perspective, and background."
]
},
{
"id": 334,
"type": "LoadImage",
"pos": [
-2340,
700
],
"size": [
520,
640
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
826
]
},
{
"name": "MASK",
"type": "MASK",
"links": [
827
]
}
],
"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-1777588922276.png [input]"
},
"widgets_values": [
"clipspace/clipspace-painted-masked-1777588922276.png [input]",
"image"
]
},
{
"id": 345,
"type": "PreviewImage",
"pos": [
-320,
90
],
"size": [
450,
460
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 834
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.20.1",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
}
],
"links": [
[
378,
183,
0,
171,
0,
"MODEL"
],
[
387,
171,
0,
178,
0,
"MODEL"
],
[
388,
178,
0,
179,
0,
"MODEL"
],
[
390,
172,
0,
182,
1,
"VAE"
],
[
403,
182,
0,
191,
3,
"LATENT"
],
[
406,
191,
0,
192,
0,
"LATENT"
],
[
407,
172,
0,
192,
1,
"VAE"
],
[
423,
196,
0,
191,
2,
"CONDITIONING"
],
[
453,
206,
0,
201,
0,
"IMAGE"
],
[
454,
192,
0,
206,
0,
"IMAGE"
],
[
474,
219,
0,
191,
0,
"MODEL"
],
[
490,
333,
0,
196,
0,
"CONDITIONING"
],
[
507,
192,
0,
226,
0,
"IMAGE"
],
[
703,
229,
0,
191,
1,
"CONDITIONING"
],
[
788,
230,
0,
330,
0,
"IMAGE"
],
[
789,
230,
1,
330,
1,
"MASK"
],
[
797,
331,
0,
332,
0,
"IMAGE"
],
[
800,
331,
3,
332,
3,
"REFINENODE_INFO"
],
[
801,
332,
0,
217,
0,
"IMAGE"
],
[
802,
332,
0,
182,
0,
"IMAGE"
],
[
803,
332,
0,
226,
1,
"IMAGE"
],
[
809,
332,
3,
206,
1,
"REFINENODE_INFO"
],
[
813,
184,
0,
333,
0,
"CLIP"
],
[
814,
172,
0,
333,
1,
"VAE"
],
[
818,
333,
0,
229,
0,
"CONDITIONING"
],
[
819,
330,
0,
332,
1,
"IMAGE"
],
[
820,
331,
1,
332,
2,
"IMAGE"
],
[
822,
332,
0,
333,
2,
"IMAGE"
],
[
823,
332,
1,
333,
3,
"IMAGE"
],
[
824,
332,
2,
333,
4,
"IMAGE"
],
[
826,
334,
0,
331,
0,
"IMAGE"
],
[
827,
334,
1,
331,
1,
"MASK"
],
[
834,
332,
1,
345,
0,
"IMAGE"
],
[
836,
179,
0,
219,
0,
"MODEL"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.45041209887262396,
"offset": [
2880.6754318812186,
868.2047249255137
]
},
"frontendVersion": "1.44.14",
"workflowRendererVersion": "LG",
"groupNodes": {},
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}