BFS / workflows /Head Swap 2511 - V5 Simple Workflow.json
mr2along's picture
Duplicate from Alissonerdx/BFS-Best-Face-Swap
d9ffba9
{
"id": "91f6bbe2-ed41-4fd6-bac7-71d5b5864ecb",
"revision": 1,
"last_node_id": 507,
"last_link_id": 857,
"nodes": [
{
"id": 99,
"type": "MarkdownNote",
"pos": [
-840,
-140
],
"size": [
550,
550
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "Model links",
"properties": {
"ue_properties": {
"version": "7.5.1",
"widget_ue_connectable": {},
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"## Report Issue\n\nNote: please [update ComfyUI](https://docs.comfy.org/zh-CN/installation/update_comfyui) first and prepare required models. Desktop/Cloud ship stable builds; nightly-supported models may not be included yet, please wait for the next stable release.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n\n\n## Model Links\n\n**text_encoders**\n\n- [qwen_2.5_vl_7b_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/HunyuanVideo_1.5_repackaged/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors)\n\n**loras**\n\n- [Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors](https://huggingface.co/lightx2v/Qwen-Image-Edit-2511-Lightning/resolve/main/Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors)\n\n**diffusion_models**\n\n- [qwen_image_edit_2511_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_2511_bf16.safetensors)\n\n**vae**\n\n- [qwen_image_vae.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors)\n\n\nModel Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 text_encoders/\n│ │ └── qwen_2.5_vl_7b_fp8_scaled.safetensors\n│ ├── 📂 loras/\n│ │ └── Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors\n│ ├── 📂 diffusion_models/\n│ │ └── qwen_image_edit_2511_bf16.safetensors\n│ └── 📂 vae/\n│ └── qwen_image_vae.safetensors\n```\n"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 37,
"type": "UNETLoader",
"pos": [
-254.6433333911787,
30.458787845716753
],
"size": [
330,
90
],
"flags": {},
"order": 1,
"mode": 4,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"slot_index": 0,
"links": []
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.48",
"Node name for S&R": "UNETLoader",
"models": [
{
"name": "qwen_image_edit_2509_fp8_e4m3fn.safetensors",
"url": "https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors",
"directory": "diffusion_models"
}
],
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"ue_properties": {
"version": "7.5.1",
"widget_ue_connectable": {},
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"qwen_image_edit_2509_fp8_e4m3fn.safetensors",
"default"
]
},
{
"id": 459,
"type": "FluxKontextMultiReferenceLatentMethod",
"pos": [
665.2899850814557,
-257.1049804383476
],
"size": [
369.6734375,
58
],
"flags": {},
"order": 28,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 849
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
768
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "FluxKontextMultiReferenceLatentMethod",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": [
"index_timestep_zero"
]
},
{
"id": 38,
"type": "CLIPLoader",
"pos": [
-250,
160
],
"size": [
330,
110
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"slot_index": 0,
"links": [
205,
776
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.48",
"Node name for S&R": "CLIPLoader",
"models": [
{
"name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
"url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/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,
"ue_properties": {
"version": "7.5.1",
"widget_ue_connectable": {},
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"qwen_2.5_vl_7b_fp8_scaled.safetensors",
"qwen_image",
"default"
]
},
{
"id": 446,
"type": "Reroute",
"pos": [
765.9300330573769,
969.2423274128082
],
"size": [
75,
26
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 717
}
],
"outputs": [
{
"name": "",
"type": "IMAGE",
"links": [
718
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false,
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
}
},
{
"id": 447,
"type": "Reroute",
"pos": [
761.3931884674664,
1017.0536896295569
],
"size": [
75,
26
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 719
}
],
"outputs": [
{
"name": "",
"type": "IMAGE",
"links": [
720
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false,
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
}
},
{
"id": 440,
"type": "ImageConcanate",
"pos": [
946.1399370155114,
1130.2064739829382
],
"size": [
315,
102
],
"flags": {},
"order": 36,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 709
},
{
"name": "image2",
"type": "IMAGE",
"link": 757
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
726
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "e81f33508b0821ea2f53f4f46a833fa6215626bd",
"Node name for S&R": "ImageConcanate",
"ue_properties": {
"version": "7.1",
"widget_ue_connectable": {},
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"right",
true
]
},
{
"id": 449,
"type": "AddLabel",
"pos": [
1419.624876622031,
970.4688329193957
],
"size": [
270,
270
],
"flags": {},
"order": 37,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 726
},
{
"name": "caption",
"shape": 7,
"type": "STRING",
"link": null
},
{
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": 728
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
727
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "6ee278aa7d802c03ad713a7c5fbc02861b6773a8",
"Node name for S&R": "AddLabel",
"ue_properties": {
"widget_ue_connectable": {
"text_x": true,
"text_y": true,
"height": true,
"font_size": true,
"font_color": true,
"label_color": true,
"font": true,
"text": true,
"direction": true
},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
10,
2,
48,
32,
"white",
"black",
"FreeMono.ttf",
"Text",
"up"
]
},
{
"id": 450,
"type": "PrimitiveStringMultiline",
"pos": [
1264.1140971655236,
1381.4058669358246
],
"size": [
400,
200
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
728
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.64",
"Node name for S&R": "PrimitiveStringMultiline",
"ue_properties": {
"widget_ue_connectable": {
"value": true
},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"euler + simple + 20 steps (Without Lightining LoRa) + strength 1.1 + CFG: 2.5, CFG Norm: 1.0, Model Sampling 1.0, variant: merged rank 16"
]
},
{
"id": 462,
"type": "UNETLoader",
"pos": [
-247.29386306944045,
-105.7149841291857
],
"size": [
324.62124483854416,
107.96747705439657
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
803
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.6.0",
"Node name for S&R": "UNETLoader",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": [
"qwen_image_edit_2511_fp8mixed.safetensors",
"default"
]
},
{
"id": 88,
"type": "VAEEncode",
"pos": [
-358.4919340679892,
1030.261010633788
],
"size": [
140,
46
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 736
},
{
"name": "vae",
"type": "VAE",
"link": 168
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
764
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.50",
"Node name for S&R": "VAEEncode",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": []
},
{
"id": 476,
"type": "ImageCropByMask",
"pos": [
342.62847815145864,
1086.7154457181305
],
"size": [
177.1861328125,
46
],
"flags": {},
"order": 20,
"mode": 4,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 787
},
{
"name": "mask",
"type": "MASK",
"link": 789
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
790
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "06a60ac3fec854909f35aba20aa5be39ff59a6e3",
"Node name for S&R": "ImageCropByMask",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": []
},
{
"id": 477,
"type": "PreviewImage",
"pos": [
370.6946126750385,
1210.0387514747601
],
"size": [
140,
246
],
"flags": {},
"order": 26,
"mode": 4,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 790
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.6.0",
"Node name for S&R": "PreviewImage",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": []
},
{
"id": 66,
"type": "ModelSamplingAuraFlow",
"pos": [
634.7267466422586,
-396.7883817970144
],
"size": [
290,
60
],
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 795
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
141
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.48",
"Node name for S&R": "ModelSamplingAuraFlow",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"ue_properties": {
"version": "7.5.1",
"widget_ue_connectable": {},
"input_ue_unconnectable": {}
}
},
"widgets_values": [
1
]
},
{
"id": 75,
"type": "CFGNorm",
"pos": [
963.3811910289586,
-398.4068723434411
],
"size": [
290,
60
],
"flags": {},
"order": 27,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 141
}
],
"outputs": [
{
"name": "patched_model",
"type": "MODEL",
"links": [
767,
771
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.50",
"Node name for S&R": "CFGNorm",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"ue_properties": {
"widget_ue_connectable": {
"strength": true
},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
1
]
},
{
"id": 460,
"type": "FluxKontextMultiReferenceLatentMethod",
"pos": [
668.1523566972198,
-141.82476322087442
],
"size": [
369.6734375,
58
],
"flags": {},
"order": 29,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 832
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
769
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.5.1",
"Node name for S&R": "FluxKontextMultiReferenceLatentMethod",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": [
"index_timestep_zero"
]
},
{
"id": 465,
"type": "SamplerCustomAdvanced",
"pos": [
1470.1927991979896,
-229.37336790302214
],
"size": [
212.3638671875,
465.2955479452055
],
"flags": {},
"order": 32,
"mode": 0,
"inputs": [
{
"name": "noise",
"type": "NOISE",
"link": 758
},
{
"name": "guider",
"type": "GUIDER",
"link": 760
},
{
"name": "sampler",
"type": "SAMPLER",
"link": 761
},
{
"name": "sigmas",
"type": "SIGMAS",
"link": 775
},
{
"name": "latent_image",
"type": "LATENT",
"link": 764
}
],
"outputs": [
{
"name": "output",
"type": "LATENT",
"links": [
759
]
},
{
"name": "denoised_output",
"type": "LATENT",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.6.0",
"Node name for S&R": "SamplerCustomAdvanced",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": []
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1795.948975092359,
-202.2087992072579
],
"size": [
210,
46
],
"flags": {
"collapsed": false
},
"order": 33,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 759
},
{
"name": "vae",
"type": "VAE",
"link": 76
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
755
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.48",
"Node name for S&R": "VAEDecode",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"ue_properties": {
"version": "7.5.1",
"widget_ue_connectable": {},
"input_ue_unconnectable": {}
}
},
"widgets_values": []
},
{
"id": 475,
"type": "PreviewImage",
"pos": [
1055.2515666410325,
589.1370074810623
],
"size": [
140,
246.0000000000001
],
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 782
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.6.0",
"Node name for S&R": "PreviewImage",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": []
},
{
"id": 464,
"type": "InpaintStitchImproved",
"pos": [
1792.9180663935044,
-90.09120435276905
],
"size": [
225.7486328125,
46
],
"flags": {},
"order": 34,
"mode": 4,
"inputs": [
{
"name": "stitcher",
"type": "STITCHER",
"link": 751
},
{
"name": "inpainted_image",
"type": "IMAGE",
"link": 755
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
756,
757
]
}
],
"properties": {
"cnr_id": "comfyui-inpaint-cropandstitch",
"ver": "2.1.8",
"Node name for S&R": "InpaintStitchImproved",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": []
},
{
"id": 439,
"type": "ImageConcanate",
"pos": [
945.9813245166483,
966.8946797622277
],
"size": [
315,
102
],
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 718
},
{
"name": "image2",
"type": "IMAGE",
"link": 720
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
709
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "e81f33508b0821ea2f53f4f46a833fa6215626bd",
"Node name for S&R": "ImageConcanate",
"ue_properties": {
"version": "7.1",
"widget_ue_connectable": {},
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"down",
true
]
},
{
"id": 482,
"type": "LoraLoaderModelOnly",
"pos": [
155.79409260506574,
-358.91340256411917
],
"size": [
435.40307534398517,
88.16408976437214
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 804
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
795
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.4.0",
"Node name for S&R": "LoraLoaderModelOnly",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": [
"bfs_head_v5_2511_merged_version_rank_16_fp16.safetensors",
1
]
},
{
"id": 486,
"type": "Note",
"pos": [
-776.1346268610802,
-387.19205421357947
],
"size": [
480.23468644605293,
200.05049249482755
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"I made my own merge of the Lightning LoRA for QIE 2511 to slightly reduce the plasticky look. If you want to download it, the link is below.\n\nhttps://huggingface.co/Alissonerdx/CustomLightning/blob/main/custom_lightning_4or8steps_rank_4_fp32.safetensors\n\nIf you’re using Lightning LoRA, I recommend using LMS + sgm_uniform. I liked the results.\n"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 60,
"type": "SaveImage",
"pos": [
2043.2962384161788,
-724.5034003178639
],
"size": [
950,
1040
],
"flags": {},
"order": 35,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 756
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.48",
"Node name for S&R": "SaveImage",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"ue_properties": {
"version": "7.5.1",
"widget_ue_connectable": {},
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 463,
"type": "InpaintCropImproved",
"pos": [
-55.755387298558816,
1021.9694659312499
],
"size": [
348.095703125,
626
],
"flags": {},
"order": 17,
"mode": 4,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 752
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": 754
},
{
"name": "optional_context_mask",
"shape": 7,
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "stitcher",
"type": "STITCHER",
"links": [
751
]
},
{
"name": "cropped_image",
"type": "IMAGE",
"links": []
},
{
"name": "cropped_mask",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-inpaint-cropandstitch",
"ver": "2.1.8",
"Node name for S&R": "InpaintCropImproved",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": [
"lanczos",
"lanczos",
false,
"ensure minimum resolution",
1024,
1024,
16384,
16384,
true,
0,
false,
32,
0.1,
false,
1,
1,
1,
1,
1.2,
true,
1024,
1024,
"32"
]
},
{
"id": 473,
"type": "TextEncodeQwenImageEditPlus",
"pos": [
147.65103427015487,
162.77889021933368
],
"size": [
434.89880453777164,
308.18629406709215
],
"flags": {},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 776
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": 777
},
{
"name": "image1",
"shape": 7,
"type": "IMAGE",
"link": 779
},
{
"name": "image2",
"shape": 7,
"type": "IMAGE",
"link": 848
},
{
"name": "image3",
"shape": 7,
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
832
]
}
],
"title": "Negative",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "TextEncodeQwenImageEditPlus",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"bad quality, noise, blurry, worst quality, low resolution, blur, distortion, unnatural blending, cartoon, illustration, painting"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 39,
"type": "VAELoader",
"pos": [
-250,
320
],
"size": [
330,
60
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"slot_index": 0,
"links": [
76,
168,
207,
777
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.48",
"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,
"ue_properties": {
"version": "7.5.1",
"widget_ue_connectable": {},
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"qwen_image_vae.safetensors"
]
},
{
"id": 466,
"type": "RandomNoise",
"pos": [
1125.7157382089313,
-66.5698364709961
],
"size": [
270,
82
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "NOISE",
"type": "NOISE",
"links": [
758
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.6.0",
"Node name for S&R": "RandomNoise",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": [
47,
"fixed"
]
},
{
"id": 78,
"type": "LoadImage",
"pos": [
-794.5404298053338,
582.7282372247604
],
"size": [
274.080078125,
314.0000305175781
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
699
]
},
{
"name": "MASK",
"type": "MASK",
"links": [
753
]
}
],
"title": "Reference Body",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.50",
"Node name for S&R": "LoadImage",
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"ue_properties": {
"widget_ue_connectable": {
"image": true,
"upload": true
},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"pasted/image (318).png",
"image"
]
},
{
"id": 435,
"type": "LoadImage",
"pos": [
-56.91688937482721,
576.6454773930849
],
"size": [
299.77330184271614,
382.81902226286513
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
786
]
},
{
"name": "MASK",
"type": "MASK",
"links": [
788
]
}
],
"title": "Reference Face",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.50",
"Node name for S&R": "LoadImage",
"ue_properties": {
"widget_ue_connectable": {
"image": true,
"upload": true
},
"version": "7.5.1",
"input_ue_unconnectable": {}
},
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"image": "clipspace/clipspace-painted-masked-1767306307814.png [input]"
},
"widgets_values": [
"pasted/image (319).png",
"image"
]
},
{
"id": 89,
"type": "LoraLoaderModelOnly",
"pos": [
-191.28701254170065,
-366.8106745071695
],
"size": [
310,
82
],
"flags": {},
"order": 11,
"mode": 4,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 803
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
804
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.50",
"Node name for S&R": "LoraLoaderModelOnly",
"models": [
{
"name": "Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors",
"url": "https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors",
"directory": "loras"
}
],
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65,
"ue_properties": {
"widget_ue_connectable": {
"lora_name": true,
"strength_model": true
},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"custom_lightning_4or8steps_rank_4_fp32.safetensors",
1
]
},
{
"id": 468,
"type": "KSamplerSelect",
"pos": [
676.4162038949539,
-19.772574560314276
],
"size": [
270,
58
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "SAMPLER",
"type": "SAMPLER",
"links": [
761
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.6.0",
"Node name for S&R": "KSamplerSelect",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": [
"euler"
]
},
{
"id": 471,
"type": "BasicScheduler",
"pos": [
678.4447840563034,
104.89309901282743
],
"size": [
270,
106
],
"flags": {},
"order": 30,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 771
}
],
"outputs": [
{
"name": "SIGMAS",
"type": "SIGMAS",
"links": [
775
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.6.0",
"Node name for S&R": "BasicScheduler",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": [
"simple",
20,
1
]
},
{
"id": 467,
"type": "CFGGuider",
"pos": [
1126.8540432500502,
-225.17476289387528
],
"size": [
270,
98
],
"flags": {},
"order": 31,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 767
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 768
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 769
}
],
"outputs": [
{
"name": "GUIDER",
"type": "GUIDER",
"links": [
760
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.6.0",
"Node name for S&R": "CFGGuider",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": [
2.5
]
},
{
"id": 436,
"type": "ImageResizeKJv2",
"pos": [
-475.30663047996154,
586.1508934017932
],
"size": [
270,
336.00000000000006
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 699
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": 753
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
719,
736,
752,
779,
845
]
},
{
"name": "width",
"type": "INT",
"links": []
},
{
"name": "height",
"type": "INT",
"links": []
},
{
"name": "mask",
"type": "MASK",
"links": [
754
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "06a60ac3fec854909f35aba20aa5be39ff59a6e3",
"Node name for S&R": "ImageResizeKJv2",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": [
1024,
1024,
"lanczos",
"resize",
"0, 0, 0",
"center",
2,
"cpu"
]
},
{
"id": 437,
"type": "ImageResizeKJv2",
"pos": [
323.25484371200423,
580.1800627400199
],
"size": [
270,
336.00000000000006
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 786
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": 788
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
717,
783,
787
]
},
{
"name": "width",
"type": "INT",
"links": null
},
{
"name": "height",
"type": "INT",
"links": null
},
{
"name": "mask",
"type": "MASK",
"links": [
789
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "06a60ac3fec854909f35aba20aa5be39ff59a6e3",
"Node name for S&R": "ImageResizeKJv2",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": [
1024,
1024,
"lanczos",
"resize",
"0, 0, 0",
"center",
2,
"cpu"
]
},
{
"id": 474,
"type": "BiRefNetRMBG",
"pos": [
685.7209356824706,
589.2834858106131
],
"size": [
293.8140625,
254
],
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 783
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
782,
847,
848
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
},
{
"name": "MASK_IMAGE",
"type": "IMAGE",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-rmbg",
"ver": "2.9.5",
"Node name for S&R": "BiRefNetRMBG",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": [
"BiRefNet-general",
0,
0,
false,
false,
"Color",
"#ffffff"
],
"color": "#222e40",
"bgcolor": "#364254"
},
{
"id": 111,
"type": "TextEncodeQwenImageEditPlus",
"pos": [
163.40415507529795,
-181.70440936953673
],
"size": [
434.89880453777164,
308.18629406709215
],
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 205
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": 207
},
{
"name": "image1",
"shape": 7,
"type": "IMAGE",
"link": 845
},
{
"name": "image2",
"shape": 7,
"type": "IMAGE",
"link": 847
},
{
"name": "image3",
"shape": 7,
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
849
]
}
],
"title": "Positive",
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "TextEncodeQwenImageEditPlus",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"head_swap: start with Picture 1 as the base image, keeping its lighting, environment, and background. remove the head from Picture 1 completely and replace it with the head from Picture 2, strictly preserving the hair, eye color, nose structure of Picture 2. copy the direction of the eye, head rotation, micro expressions from Picture 1, high quality, sharp details, 4k"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 441,
"type": "SaveImage",
"pos": [
2182.3341837587345,
1116.4544592466575
],
"size": [
270,
270.0000000000001
],
"flags": {},
"order": 38,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 727
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.4.0",
"Node name for S&R": "SaveImage",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": [
"ComfyUI"
]
}
],
"links": [
[
76,
39,
0,
8,
1,
"VAE"
],
[
141,
66,
0,
75,
0,
"MODEL"
],
[
168,
39,
0,
88,
1,
"VAE"
],
[
205,
38,
0,
111,
0,
"CLIP"
],
[
207,
39,
0,
111,
1,
"VAE"
],
[
699,
78,
0,
436,
0,
"IMAGE"
],
[
709,
439,
0,
440,
0,
"IMAGE"
],
[
717,
437,
0,
446,
0,
"*"
],
[
718,
446,
0,
439,
0,
"IMAGE"
],
[
719,
436,
0,
447,
0,
"*"
],
[
720,
447,
0,
439,
1,
"IMAGE"
],
[
726,
440,
0,
449,
0,
"IMAGE"
],
[
727,
449,
0,
441,
0,
"IMAGE"
],
[
728,
450,
0,
449,
2,
"STRING"
],
[
736,
436,
0,
88,
0,
"IMAGE"
],
[
751,
463,
0,
464,
0,
"STITCHER"
],
[
752,
436,
0,
463,
0,
"IMAGE"
],
[
753,
78,
1,
436,
1,
"MASK"
],
[
754,
436,
3,
463,
1,
"MASK"
],
[
755,
8,
0,
464,
1,
"IMAGE"
],
[
756,
464,
0,
60,
0,
"IMAGE"
],
[
757,
464,
0,
440,
1,
"IMAGE"
],
[
758,
466,
0,
465,
0,
"NOISE"
],
[
759,
465,
0,
8,
0,
"LATENT"
],
[
760,
467,
0,
465,
1,
"GUIDER"
],
[
761,
468,
0,
465,
2,
"SAMPLER"
],
[
764,
88,
0,
465,
4,
"LATENT"
],
[
767,
75,
0,
467,
0,
"MODEL"
],
[
768,
459,
0,
467,
1,
"CONDITIONING"
],
[
769,
460,
0,
467,
2,
"CONDITIONING"
],
[
771,
75,
0,
471,
0,
"MODEL"
],
[
775,
471,
0,
465,
3,
"SIGMAS"
],
[
776,
38,
0,
473,
0,
"CLIP"
],
[
777,
39,
0,
473,
1,
"VAE"
],
[
779,
436,
0,
473,
2,
"IMAGE"
],
[
782,
474,
0,
475,
0,
"IMAGE"
],
[
783,
437,
0,
474,
0,
"IMAGE"
],
[
786,
435,
0,
437,
0,
"IMAGE"
],
[
787,
437,
0,
476,
0,
"IMAGE"
],
[
788,
435,
1,
437,
1,
"MASK"
],
[
789,
437,
3,
476,
1,
"MASK"
],
[
790,
476,
0,
477,
0,
"IMAGE"
],
[
795,
482,
0,
66,
0,
"MODEL"
],
[
803,
462,
0,
89,
0,
"MODEL"
],
[
804,
89,
0,
482,
0,
"MODEL"
],
[
832,
473,
0,
460,
0,
"CONDITIONING"
],
[
845,
436,
0,
111,
2,
"IMAGE"
],
[
847,
474,
0,
111,
3,
"IMAGE"
],
[
848,
474,
0,
473,
3,
"IMAGE"
],
[
849,
111,
0,
459,
0,
"CONDITIONING"
]
],
"groups": [
{
"id": 1,
"title": "Step1 - Load models",
"bounding": [
-270,
-170,
370,
570
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 2,
"title": "Step 2 - Upload image for editing",
"bounding": [
-828.1973326856164,
468.255071397856,
1533.1398004958141,
721.321404094501
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 3,
"title": "Step 4 - Prompt",
"bounding": [
130,
-170,
570,
570
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.16105100000000427,
"offset": [
5147.161702632316,
2094.4378015397147
]
},
"frontendVersion": "1.36.14",
"ue_links": [],
"links_added_by_ue": [],
"VHS_latentpreview": true,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true,
"workflowRendererVersion": "LG"
},
"version": 0.4
}