BFS / workflows /Head Swap V4 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": 464,
"last_link_id": 757,
"nodes": [
{
"id": 38,
"type": "CLIPLoader",
"pos": [
-250,
160
],
"size": [
330,
110
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "CLIP",
"type": "CLIP",
"slot_index": 0,
"links": [
205
]
}
],
"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": 113,
"type": "MarkdownNote",
"pos": [
730,
1030
],
"size": [
330,
90
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "Note: About image size",
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"You can use the latent from the **EmptySD3LatentImage** to replace **VAE Encode**, so you can customize the image size."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 97,
"type": "MarkdownNote",
"pos": [
740,
610
],
"size": [
300,
160
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "Note: KSampler settings",
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"You can test and find the best setting by yourself. The following table is for reference.\n| Parameters | Qwen Team | Comfy Original | with 4steps LoRA |\n|--------|---------|------------|---------------------------|\n| Steps | 50 | 20 | 4 |\n| CFG | 4.0 | 2.5 | 1.0 |"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 388,
"type": "MarkdownNote",
"pos": [
-600,
1250
],
"size": [
310,
150
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "Note: Raw latent version",
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"Since the **TextEncodeQwenImageEditPlus** node will scale the image to 1M pixels, you might find that the output has a pixel-shifting issue.\n\nThe **Raw latent version** is to provide the raw latent to the sampler. This is the way you can provide the raw latent as an input condition."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 112,
"type": "EmptySD3LatentImage",
"pos": [
750,
860
],
"size": [
270,
106
],
"flags": {},
"order": 4,
"mode": 4,
"inputs": [],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": []
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "EmptySD3LatentImage",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
1024,
1024,
1
]
},
{
"id": 446,
"type": "Reroute",
"pos": [
2079.760492261495,
1054.6883039368697
],
"size": [
75,
26
],
"flags": {},
"order": 15,
"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": [
2086.7402531690495,
1114.016271651083
],
"size": [
75,
26
],
"flags": {},
"order": 18,
"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": 439,
"type": "ImageConcanate",
"pos": [
2225.261967228374,
964.0466808057298
],
"size": [
315,
102
],
"flags": {},
"order": 25,
"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": 440,
"type": "ImageConcanate",
"pos": [
2231.1788824759697,
1150.391686021368
],
"size": [
315,
102
],
"flags": {},
"order": 32,
"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": [
2754.569112571502,
1077.0285861888094
],
"size": [
270,
270
],
"flags": {},
"order": 33,
"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": 39,
"type": "VAELoader",
"pos": [
-250,
320
],
"size": [
330,
60
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VAE",
"type": "VAE",
"slot_index": 0,
"links": [
76,
168,
207
]
}
],
"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": 75,
"type": "CFGNorm",
"pos": [
740,
-20
],
"size": [
290,
60
],
"flags": {},
"order": 26,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 141
}
],
"outputs": [
{
"name": "patched_model",
"type": "MODEL",
"links": [
186
]
}
],
"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": 89,
"type": "LoraLoaderModelOnly",
"pos": [
254.35707832601116,
-285.091884725438
],
"size": [
310,
82
],
"flags": {},
"order": 16,
"mode": 4,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 744
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
185
]
}
],
"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": [
"qwen/Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",
1
]
},
{
"id": 88,
"type": "VAEEncode",
"pos": [
-108.03860503358251,
1028.0716416038072
],
"size": [
140,
46
],
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "pixels",
"type": "IMAGE",
"link": 736
},
{
"name": "vae",
"type": "VAE",
"link": 168
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
221
]
}
],
"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": 438,
"type": "ConditioningZeroOut",
"pos": [
410.7094050753585,
191.40181276004176
],
"size": [
204.134765625,
26
],
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 707
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
739
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.4.0",
"Node name for S&R": "ConditioningZeroOut",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
}
},
"widgets_values": []
},
{
"id": 450,
"type": "PrimitiveStringMultiline",
"pos": [
2257.138569462553,
1348.5903168709558
],
"size": [
400,
200
],
"flags": {},
"order": 6,
"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": [
"ddim + bong_tangent + 20 steps (Without Lightining LoRa) + CFG: 2.5, CFG Norm: 1.0, Model Sampling 1.0"
]
},
{
"id": 441,
"type": "SaveImage",
"pos": [
3271.5215051263663,
1001.0280801557411
],
"size": [
270,
270.0000000000001
],
"flags": {},
"order": 34,
"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"
]
},
{
"id": 60,
"type": "SaveImage",
"pos": [
2008.0175733541118,
-325.41813748655136
],
"size": [
950,
1040
],
"flags": {},
"order": 31,
"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": 435,
"type": "LoadImage",
"pos": [
25.791994160028672,
565.2632347050533
],
"size": [
299.77330184271614,
382.81902226286513
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
702
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"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
},
"widgets_values": [
"70437487707333.jpg",
"image"
]
},
{
"id": 111,
"type": "TextEncodeQwenImageEditPlus",
"pos": [
220,
-90
],
"size": [
400,
200
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 205
},
{
"name": "vae",
"shape": 7,
"type": "VAE",
"link": 207
},
{
"name": "image1",
"shape": 7,
"type": "IMAGE",
"link": 705
},
{
"name": "image2",
"shape": 7,
"type": "IMAGE",
"link": 745
},
{
"name": "image3",
"shape": 7,
"type": "IMAGE",
"link": null
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
707,
737
]
}
],
"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": [
"h34d_sw4p: replace the head of Picture 1 by the head from Picture 2, ensuring the new head mimics the identical expression, angle, and rotation found in Picture 1."
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 460,
"type": "FluxKontextMultiReferenceLatentMethod",
"pos": [
675.4474134575655,
98.66288208466511
],
"size": [
369.6734375,
58
],
"flags": {},
"order": 27,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 739
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
740
]
}
],
"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": 459,
"type": "FluxKontextMultiReferenceLatentMethod",
"pos": [
665.2899850814557,
-257.1049804383476
],
"size": [
369.6734375,
58
],
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "conditioning",
"type": "CONDITIONING",
"link": 737
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
738
]
}
],
"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": 461,
"type": "Reroute",
"pos": [
396.7905752942934,
914.831921187512
],
"size": [
75,
26
],
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 746
}
],
"outputs": [
{
"name": "",
"type": "INT",
"links": null
}
],
"properties": {
"showOutputText": false,
"horizontal": false,
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.5.1",
"input_ue_unconnectable": {}
}
}
},
{
"id": 437,
"type": "ImageResizeKJv2",
"pos": [
403.97307794906624,
581.1633123043811
],
"size": [
270,
336.00000000000006
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 702
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
717,
745
]
},
{
"name": "width",
"type": "INT",
"links": null
},
{
"name": "height",
"type": "INT",
"links": null
},
{
"name": "mask",
"type": "MASK",
"links": null
}
],
"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": 66,
"type": "ModelSamplingAuraFlow",
"pos": [
740,
-130
],
"size": [
290,
60
],
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 185
}
],
"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": 99,
"type": "MarkdownNote",
"pos": [
-840,
-140
],
"size": [
550,
550
],
"flags": {},
"order": 8,
"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": 455,
"type": "LoraLoaderModelOnly",
"pos": [
133.6948680323216,
-428.18260293205157
],
"size": [
435.40307534398517,
88.16408976437214
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 747
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
744
]
}
],
"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_swap_v4.safetensors",
1
]
},
{
"id": 37,
"type": "UNETLoader",
"pos": [
-254.6433333911787,
30.458787845716753
],
"size": [
330,
90
],
"flags": {},
"order": 9,
"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": 462,
"type": "UNETLoader",
"pos": [
-216.6297424062514,
-95.58123263411836
],
"size": [
270,
82
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
747
]
}
],
"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": 3,
"type": "KSampler",
"pos": [
1284.6712480485555,
252.20637418622113
],
"size": [
300,
474
],
"flags": {},
"order": 28,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 186
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 738
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 740
},
{
"name": "latent_image",
"type": "LATENT",
"link": 221
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"slot_index": 0,
"links": [
128
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.48",
"Node name for S&R": "KSampler",
"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": [
1099414053461553,
"fixed",
20,
2.5,
"ddim",
"bong_tangent",
1
]
},
{
"id": 463,
"type": "InpaintCropImproved",
"pos": [
-171.99597802106777,
1182.7924618147817
],
"size": [
348.095703125,
626
],
"flags": {},
"order": 21,
"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": {
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
},
"cnr_id": "comfyui-inpaint-cropandstitch",
"ver": "2.1.8",
"Node name for S&R": "InpaintCropImproved"
},
"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": 78,
"type": "LoadImage",
"pos": [
-791.5954482341597,
568.0137063996053
],
"size": [
274.080078125,
314.0000305175781
],
"flags": {},
"order": 11,
"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": [
"7dc6a9eeaad4da7c3694f9355fc2ac0f.jpg",
"image"
]
},
{
"id": 436,
"type": "ImageResizeKJv2",
"pos": [
-462.44572617809587,
570.720430238397
],
"size": [
270,
336
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 699
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": 753
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
705,
719,
736,
752
]
},
{
"name": "width",
"type": "INT",
"links": []
},
{
"name": "height",
"type": "INT",
"links": [
746
]
},
{
"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": 8,
"type": "VAEDecode",
"pos": [
1446.437447646571,
-50.68453514144258
],
"size": [
210,
46
],
"flags": {
"collapsed": false
},
"order": 29,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 128
},
{
"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": 464,
"type": "InpaintStitchImproved",
"pos": [
1441.1936374781715,
74.7215726954477
],
"size": [
225.7486328125,
46
],
"flags": {},
"order": 30,
"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": {
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.5.1"
},
"cnr_id": "comfyui-inpaint-cropandstitch",
"ver": "2.1.8",
"Node name for S&R": "InpaintStitchImproved"
}
}
],
"links": [
[
76,
39,
0,
8,
1,
"VAE"
],
[
128,
3,
0,
8,
0,
"LATENT"
],
[
141,
66,
0,
75,
0,
"MODEL"
],
[
168,
39,
0,
88,
1,
"VAE"
],
[
185,
89,
0,
66,
0,
"MODEL"
],
[
186,
75,
0,
3,
0,
"MODEL"
],
[
205,
38,
0,
111,
0,
"CLIP"
],
[
207,
39,
0,
111,
1,
"VAE"
],
[
221,
88,
0,
3,
3,
"LATENT"
],
[
699,
78,
0,
436,
0,
"IMAGE"
],
[
702,
435,
0,
437,
0,
"IMAGE"
],
[
705,
436,
0,
111,
2,
"IMAGE"
],
[
707,
111,
0,
438,
0,
"CONDITIONING"
],
[
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"
],
[
737,
111,
0,
459,
0,
"CONDITIONING"
],
[
738,
459,
0,
3,
1,
"CONDITIONING"
],
[
739,
438,
0,
460,
0,
"CONDITIONING"
],
[
740,
460,
0,
3,
2,
"CONDITIONING"
],
[
744,
455,
0,
89,
0,
"MODEL"
],
[
745,
437,
0,
111,
3,
"IMAGE"
],
[
746,
436,
2,
461,
0,
"INT"
],
[
747,
462,
0,
455,
0,
"MODEL"
],
[
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"
]
],
"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": [
-837.8987283873265,
445.4436815046448,
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": {}
},
{
"id": 4,
"title": "Step3 - Image Size",
"bounding": [
730,
780,
310,
200
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.520986848192454,
"offset": [
1599.5880111395113,
324.0030419503224
]
},
"frontendVersion": "1.34.9",
"ue_links": [],
"links_added_by_ue": [],
"VHS_latentpreview": true,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true,
"workflowRendererVersion": "LG"
},
"version": 0.4
}