diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..4a1c302ef999f19b3afab2f7065f7a9228127998 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,53 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text +images/ComfyUI_04745_.png filter=lfs diff=lfs merge=lfs -text +images/ComfyUI_04755_.png filter=lfs diff=lfs merge=lfs -text +images/ComfyUI_04759_.png filter=lfs diff=lfs merge=lfs -text +images/ComfyUI_04761_.png filter=lfs diff=lfs merge=lfs -text +images/bfs_body_swap_v1_krea2_example_closeup.png filter=lfs diff=lfs merge=lfs -text +images/bfs_body_swap_v1_krea2_example_kitchen.png filter=lfs diff=lfs merge=lfs -text +images/bfs_body_swap_v1_krea2_example_outdoors.png filter=lfs diff=lfs merge=lfs -text +images/bfs_body_swap_v1_krea2_example_restaurant.png filter=lfs diff=lfs merge=lfs -text +images/bfs_body_swap_v1_krea2_example_seated.png filter=lfs diff=lfs merge=lfs -text +images/bfs_body_swap_v1_krea2_example_yoga.png filter=lfs diff=lfs merge=lfs -text +images/bfs_qwen_2.1_1.png filter=lfs diff=lfs merge=lfs -text +images/bfs_qwen_2.1_2.png filter=lfs diff=lfs merge=lfs -text +images/bfs_qwen_2.1_3.png filter=lfs diff=lfs merge=lfs -text +images/bfs_qwen_2.1_4.png filter=lfs diff=lfs merge=lfs -text +images/bfs_qwen_2.1_5.png filter=lfs diff=lfs merge=lfs -text +images/bfs_qwen_2.1_6.png filter=lfs diff=lfs merge=lfs -text +images/bfs_qwen_2.1_7.png filter=lfs diff=lfs merge=lfs -text +images/bfs_qwen_2.1_8.png filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..bcf81390fea4eb5ca7b2c6b1f3a8d646e238cf43 --- /dev/null +++ b/README.md @@ -0,0 +1,77 @@ +--- +license: mit +base_model: +- Qwen/Qwen-Image-2.1 +- Qwen/Qwen-Image-Edit-2511 +- black-forest-labs/FLUX.2-klein-9B +- black-forest-labs/FLUX.2-klein-4B +- black-forest-labs/FLUX.2-klein-base-4B +- black-forest-labs/FLUX.2-klein-base-9B +- black-forest-labs/FLUX.2-klein-9b-fp8 +- black-forest-labs/FLUX.2-klein-4b-fp8 +- krea/Krea-2-Raw +pipeline_tag: image-to-image +tags: +- lora +- qwen-image +- qwen-image-2.1 +- qwen-image-edit +- face-swap +- head-swap +- body-swap +- image-editing +- comfyui +- bfs +language: +- en +library_name: diffusers +--- + +# BFS: Best Face Swap + +BFS is a collection of LoRAs for face, head, and body replacement across Qwen Image 2.1, Qwen +Image Edit 2509/2511, Flux 2 Klein, Krea 2, and experimental LTX-2 workflows. Each release has +its own base-model, input-order, prompt, and workflow contract. Use the guide for the exact +version you are loading. + +## Guides + +- [BFS Head V1 / V1.1 for Qwen Image 2.1](docs/qwen-image-2.1.md) +- [BFS Body Swap V1.0 for Qwen Image 2.1](docs/qwen-image-2.1-body.md) +- [Qwen Image Edit 2509/2511](docs/qwen-image-edit.md) +- [Flux 2 Klein](docs/flux-2-klein.md) +- [Krea 2](docs/krea-2.md) +- [Experimental LTX-2 weights](docs/ltx-2.md) + +## Downloads at a glance + +| Family | Weights | Workflow | +|---|---|---| +| Qwen Image 2.1 (head) | [`bfs_head_v1.1_qwen_2.1.safetensors`](bfs_head_v1.1_qwen_2.1.safetensors) (recommended), [`bfs_head_v1.1_alternative_qwen_2.1.safetensors`](bfs_head_v1.1_alternative_qwen_2.1.safetensors), [`bfs_head_v1_qwen_2.1.safetensors`](bfs_head_v1_qwen_2.1.safetensors) | +| Qwen Image 2.1 (body) | [`bfs_body_swap_v1.0_qwen_2.1.safetensors`](bfs_body_swap_v1.0_qwen_2.1.safetensors) | See the [body swap guide](docs/qwen-image-2.1-body.md) | [`Head Swap V1 Qwen 2.1 Workflow.json`](workflows/Head%20Swap%20V1%20Qwen%202.1%20Workflow.json) | +| Qwen Image Edit 2509 | [`bfs_face_v1_qwen_image_edit_2509.safetensors`](bfs_face_v1_qwen_image_edit_2509.safetensors), [`bfs_head_v1_qwen_image_edit_2509.safetensors`](bfs_head_v1_qwen_image_edit_2509.safetensors), [`bfs_head_v2_qwen_image_edit_2509.safetensors`](bfs_head_v2_qwen_image_edit_2509.safetensors), [`bfs_head_v3_qwen_image_edit_2509.safetensors`](bfs_head_v3_qwen_image_edit_2509.safetensors), [`bfs_head_v4_qwen_image_edit_2509.safetensors`](bfs_head_v4_qwen_image_edit_2509.safetensors) | See the [Qwen Edit guide](docs/qwen-image-edit.md) | +| Qwen Image Edit 2511 | [`bfs_head_v5_2511_original.safetensors`](bfs_head_v5_2511_original.safetensors), [`bfs_head_v5_2511_merged_version_rank_16_fp16.safetensors`](bfs_head_v5_2511_merged_version_rank_16_fp16.safetensors), [`bfs_head_v5_2511_merged_version_rank_32_fp32.safetensors`](bfs_head_v5_2511_merged_version_rank_32_fp32.safetensors) | See the [Qwen Edit guide](docs/qwen-image-edit.md) | +| Flux 2 Klein | [`bfs_head_v1_flux-klein_4b.safetensors`](bfs_head_v1_flux-klein_4b.safetensors), [`bfs_head_v1_flux-klein_9b_step3500_rank128.safetensors`](bfs_head_v1_flux-klein_9b_step3500_rank128.safetensors), [`bfs_head_v1_flux-klein_9b_step3750_rank64.safetensors`](bfs_head_v1_flux-klein_9b_step3750_rank64.safetensors), [`bfs_head_v1.1_optional_flux-klein_4b.safetensors`](bfs_head_v1.1_optional_flux-klein_4b.safetensors) | See the [Flux guide](docs/flux-2-klein.md) | +| Krea 2 | [`bfs_head_swap_v1.1_krea2.safetensors`](bfs_head_swap_v1.1_krea2.safetensors), [`bfs_body_swap_v1_krea2.safetensors`](bfs_body_swap_v1_krea2.safetensors) | See the [Krea 2 guide](docs/krea-2.md) | +| Experimental LTX-2 | [`bfs_head_swap_v1_ltx2_ic_lora_5000.safetensors`](bfs_head_swap_v1_ltx2_ic_lora_5000.safetensors), [`bfs_head_swap_v1_ltx2_ic_lora_6000.safetensors`](bfs_head_swap_v1_ltx2_ic_lora_6000.safetensors), [`bfs_head_swap_v1_ltx2_ic_lora_12000_train_3.safetensors`](bfs_head_swap_v1_ltx2_ic_lora_12000_train_3.safetensors) | See the [LTX-2 guide](docs/ltx-2.md) | + +## General rules + +- Use the LoRA with its matching base model whenever possible. +- Follow the input order in the version guide; several BFS head releases intentionally use body + first and reference face second. +- Start at LoRA strength `1.0`, then adjust for the base model, resolution, and reference image. +- The examples and workflows in this repository are demonstrations, not a guarantee of identical + results on every image. +- Do not use or share results involving public figures or people who have not given consent. + +## Examples + +The existing examples are grouped by workflow family in the individual guides. Qwen Image 2.1 +examples are `images/bfs_qwen_2.1_1.png` through `images/bfs_qwen_2.1_8.png`. + +## Support + +Feel free to experiment and share your results responsibly. For workflow issues, first update +ComfyUI and verify that the base model, text encoder, VAE, workflow, and LoRA all belong to the +same model family. diff --git a/bfs_body_swap_v1.0_qwen_2.1.safetensors b/bfs_body_swap_v1.0_qwen_2.1.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..8f536f5dc64032aecc655b0348b055a9e8aac595 --- /dev/null +++ b/bfs_body_swap_v1.0_qwen_2.1.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7dc0a53aba4dbc70c204f498936a619d226559da11011f748c389189af46b664 +size 209753576 diff --git a/bfs_body_swap_v1_krea2.safetensors b/bfs_body_swap_v1_krea2.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..ef94e122f9b5c196fa6ccd0fe484f455834fc4f6 --- /dev/null +++ b/bfs_body_swap_v1_krea2.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b3d043714c912c55c525ac68a53f50dbfaa6a024d735c28dfed12cd214a0d79 +size 914160176 diff --git a/bfs_face_v1_qwen_image_edit_2509.safetensors b/bfs_face_v1_qwen_image_edit_2509.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..6f37d56665ca448cae9d5fea20ca26e3cb00158c --- /dev/null +++ b/bfs_face_v1_qwen_image_edit_2509.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c9f18ba062d0c8aa3c98169005b616bc95866fe9956c2608dcfd29b1e9b20359 +size 590058816 diff --git a/bfs_head_swap_v1.1_krea2.safetensors b/bfs_head_swap_v1.1_krea2.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..5eeceb72a8156e57adc669b4c2d2e1182f00ea1f --- /dev/null +++ b/bfs_head_swap_v1.1_krea2.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abc6c468c578b36e6bd960106ad5886afd3f5321e4fe2de26c05bb5c6585b836 +size 914159816 diff --git a/bfs_head_swap_v1_ltx2_ic_lora_12000_train_3.safetensors b/bfs_head_swap_v1_ltx2_ic_lora_12000_train_3.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..138f058c0f0077291ba279535c2549b802f08e7b --- /dev/null +++ b/bfs_head_swap_v1_ltx2_ic_lora_12000_train_3.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27bb754d5c5029e64131d854217ddb37dfa17eb07864201e911e9c89e633ecaf +size 1308756368 diff --git a/bfs_head_swap_v1_ltx2_ic_lora_5000.safetensors b/bfs_head_swap_v1_ltx2_ic_lora_5000.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..0e0b2aa1fd55d9bfd88269d3a843cba3e4c773ec --- /dev/null +++ b/bfs_head_swap_v1_ltx2_ic_lora_5000.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e11d18bb009b2c2a938b99a32f3ab140705fdbea7b65029c3cda3ceeb89e654c +size 1308756368 diff --git a/bfs_head_swap_v1_ltx2_ic_lora_6000.safetensors b/bfs_head_swap_v1_ltx2_ic_lora_6000.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..eceaa0b0308af0a2d1a5f20eb78daaaf3ef8e819 --- /dev/null +++ b/bfs_head_swap_v1_ltx2_ic_lora_6000.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4021b4143bd935e565aeaaf5bf8ef43e8f3aa3faf7a9ae0a73f1879342f32d12 +size 1308756368 diff --git a/bfs_head_v1.1_alternative_qwen_2.1.safetensors b/bfs_head_v1.1_alternative_qwen_2.1.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..1527f3e91b2823653a0fe2b1529b5b94b1211554 --- /dev/null +++ b/bfs_head_v1.1_alternative_qwen_2.1.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5332bbc2f826856e7a09bce9740e97d39514b849368212e1f2c3c2c2d81c217 +size 318821008 diff --git a/bfs_head_v1.1_optional_flux-klein_4b.safetensors b/bfs_head_v1.1_optional_flux-klein_4b.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..621963a022455d41508eaf053b287729cf1e2f1b --- /dev/null +++ b/bfs_head_v1.1_optional_flux-klein_4b.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8234563b48b66b22aaaa0df9b4c70636e65f06d443c3b20a9356425040255839 +size 1478513544 diff --git a/bfs_head_v1.1_qwen_2.1.safetensors b/bfs_head_v1.1_qwen_2.1.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..f0f7d46c9d9bbe5a84c6a79b889a92f803713428 --- /dev/null +++ b/bfs_head_v1.1_qwen_2.1.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d1d748d5601077f3b6d05766f6823510e901970d916afa404a97e85dc92fa88e +size 260096144 diff --git a/bfs_head_v1_flux-klein_4b.safetensors b/bfs_head_v1_flux-klein_4b.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..224954dcce37c03d217241bc55bed628b758f1ea --- /dev/null +++ b/bfs_head_v1_flux-klein_4b.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:77aabcd6144612dd4873080b99283dd9a27977712548bee161894f62c91ff09c +size 369644384 diff --git a/bfs_head_v1_flux-klein_9b_step3500_rank128.safetensors b/bfs_head_v1_flux-klein_9b_step3500_rank128.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..39dd2d87b08ad0d519ead92dd60f97c17f336e05 --- /dev/null +++ b/bfs_head_v1_flux-klein_9b_step3500_rank128.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70d8aaf332d710b905d5085afaa87c3ef577edffd54ffcfadeb8c47a854f9044 +size 662729912 diff --git a/bfs_head_v1_flux-klein_9b_step3750_rank64.safetensors b/bfs_head_v1_flux-klein_9b_step3750_rank64.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..4df74013519018e277632c82acfb6ff76bc09100 --- /dev/null +++ b/bfs_head_v1_flux-klein_9b_step3750_rank64.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49907a240602488d2846861d7570dd95d80609f44be7e3347965735712b1be16 +size 331379568 diff --git a/bfs_head_v1_qwen_2.1.safetensors b/bfs_head_v1_qwen_2.1.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..ccc57e6a73b439d7004f6c78e156193b445a1b35 --- /dev/null +++ b/bfs_head_v1_qwen_2.1.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:facf18a8c4c2f62578c034fc4e7cbdb964c63fb2d678fe0d3d41677fba3d0606 +size 318820976 diff --git a/bfs_head_v1_qwen_image_edit_2509.safetensors b/bfs_head_v1_qwen_image_edit_2509.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..1867fd02304b4f137de8d4ae5edb1047e651ac3f --- /dev/null +++ b/bfs_head_v1_qwen_image_edit_2509.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d71ee1612e4b416fc0f62a1a59a3d66b7ee6d86a1a7c35aacc2f929e0326f68d +size 590058808 diff --git a/bfs_head_v2_qwen_image_edit_2509.safetensors b/bfs_head_v2_qwen_image_edit_2509.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..94a3d48f8fcfd6023a5c6e62ba1e8b4a007d474f --- /dev/null +++ b/bfs_head_v2_qwen_image_edit_2509.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a928f106fcba6e4b196ef511289f075b4690eba0f6bc3fa3755fdba2ec2a428c +size 147687224 diff --git a/bfs_head_v3_qwen_image_edit_2509.safetensors b/bfs_head_v3_qwen_image_edit_2509.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..736eb7dd9adfc02a043ca8f8a71aed35b2519f6d --- /dev/null +++ b/bfs_head_v3_qwen_image_edit_2509.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49aac5a55175ab5ebd89ffdae4c336eaca1899f5b725b70c0c039f6d4a8d86e6 +size 73957904 diff --git a/bfs_head_v4_qwen_image_edit_2509.safetensors b/bfs_head_v4_qwen_image_edit_2509.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..79384b5bea5e9c239c97aebc5fbff4b4b9ed09fe --- /dev/null +++ b/bfs_head_v4_qwen_image_edit_2509.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd3278c33c7df36bb87169d0a283851d60e88ecac48123b5c8dcc82551d6e402 +size 147794944 diff --git a/bfs_head_v5_2511_merged_version_rank_16_fp16.safetensors b/bfs_head_v5_2511_merged_version_rank_16_fp16.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..adb09c5c4686ab0f3b3c762cff4ede968aadc89f --- /dev/null +++ b/bfs_head_v5_2511_merged_version_rank_16_fp16.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1315a08947e5d6d7c53ea4fc59f272e0d54efd7f2da35999b7d873a7cf4fa89b +size 307464216 diff --git a/bfs_head_v5_2511_merged_version_rank_32_fp32.safetensors b/bfs_head_v5_2511_merged_version_rank_32_fp32.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..592eac6d73d698c2572b830e8af362b3a26f85cf --- /dev/null +++ b/bfs_head_v5_2511_merged_version_rank_32_fp32.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0a137e61245781412421f5dee5db4ccac28b6c9952c042d1123a84609107cd10 +size 1206402600 diff --git a/bfs_head_v5_2511_original.safetensors b/bfs_head_v5_2511_original.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..670a42cc4993c79d7672b20ccad999555d560164 --- /dev/null +++ b/bfs_head_v5_2511_original.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5055ec271228d4767fd327efa59dbdea6f2a628d6d890101eb4fd5015cb1ac57 +size 147685552 diff --git a/docs/flux-2-klein.md b/docs/flux-2-klein.md new file mode 100644 index 0000000000000000000000000000000000000000..4987a4c66ba906c21c9f6964b4e98abce9743f3a --- /dev/null +++ b/docs/flux-2-klein.md @@ -0,0 +1,33 @@ +# Flux 2 Klein Head-Swap LoRAs + +These BFS weights target Flux 2 Klein 4B/9B variants. They use the body-first input contract: + +- **Image 1:** target body/base image +- **Image 2:** reference face/head + +Do not reverse the images for these releases. + +## Downloads + +- [`bfs_head_v1_flux-klein_4b.safetensors`](../bfs_head_v1_flux-klein_4b.safetensors) +- [`bfs_head_v1_flux-klein_9b_step3500_rank128.safetensors`](../bfs_head_v1_flux-klein_9b_step3500_rank128.safetensors) +- [`bfs_head_v1_flux-klein_9b_step3750_rank64.safetensors`](../bfs_head_v1_flux-klein_9b_step3750_rank64.safetensors) +- [`bfs_head_v1.1_optional_flux-klein_4b.safetensors`](../bfs_head_v1.1_optional_flux-klein_4b.safetensors) + +## Prompt + +```text +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, and nose structure of Picture 2. copy the direction of the eye, head rotation, and micro-expressions from Picture 1. Keep the body, clothing, pose, framing, and background intact. +``` + +You can add a short expression or pose instruction when it is visible in the target image. Keep +the edit focused on the head and avoid requesting an unrelated scene change in the same prompt. + +## Workflow + +[`workflows/Head Swap V1 Flux 2 Klein 4b_9b (base_distill).json`](../workflows/Head%20Swap%20V1%20Flux%202%20Klein%204b_9b%20(base_distill).json) + +Start around LoRA strength `1.0`; adjust after checking identity preservation, hair boundaries, +expression transfer, and skin blending. + +[Back to the repository index](../README.md) diff --git a/docs/krea-2.md b/docs/krea-2.md new file mode 100644 index 0000000000000000000000000000000000000000..8f3696f8af5a2a5ea5f96eb8da19a7aa9ddb4a84 --- /dev/null +++ b/docs/krea-2.md @@ -0,0 +1,48 @@ +# Krea 2 Head and Body Swap LoRAs + +## Head Swap V1.1 + +[`bfs_head_swap_v1.1_krea2.safetensors`](../bfs_head_swap_v1.1_krea2.safetensors) is the updated +Krea 2 head-swap release and replaces the earlier V1 file. + +Use the included [`Head Swap Krea 2 - V1 Simple Workflow.json`](../workflows/Head%20Swap%20Krea%202%20-%20V1%20Simple%20Workflow.json). + +Inputs: + +- Image 1: base image +- Image 2: reference head + +Prompt: + +```text +head_swap: replace the head with the reference head. +``` + +## Body Swap V1 (experimental) + +[`bfs_body_swap_v1_krea2.safetensors`](../bfs_body_swap_v1_krea2.safetensors) replaces the +source person with the reference person. Exact pose transfer is not guaranteed. + +Use the included [`Body Swap Krea 2 - V1 Simple Workflow.json`](../workflows/Body%20Swap%20Krea%202%20-%20V1%20Simple%20Workflow.json). + +Inputs: + +- Image 1: base image +- Image 2: reference person + +Prompt: + +```text +body_swap: replace the person with the reference person. +``` + +To request a new background, append: + +```text +BG: [describe the new background] +``` + +Start around LoRA strength `0.5` for body swap and adjust from there. The head workflow can be +combined with the body workflow when additional head-identity control is useful. + +[Back to the repository index](../README.md) diff --git a/docs/ltx-2.md b/docs/ltx-2.md new file mode 100644 index 0000000000000000000000000000000000000000..2f31b954b4ab0bef1d4fe3ba8e61ef625993c914 --- /dev/null +++ b/docs/ltx-2.md @@ -0,0 +1,16 @@ +# Experimental LTX-2 Head-Swap Weights + +The repository also contains experimental LTX-2 in-context LoRA checkpoints: + +- [`bfs_head_swap_v1_ltx2_ic_lora_5000.safetensors`](../bfs_head_swap_v1_ltx2_ic_lora_5000.safetensors) +- [`bfs_head_swap_v1_ltx2_ic_lora_6000.safetensors`](../bfs_head_swap_v1_ltx2_ic_lora_6000.safetensors) +- [`bfs_head_swap_v1_ltx2_ic_lora_12000_train_3.safetensors`](../bfs_head_swap_v1_ltx2_ic_lora_12000_train_3.safetensors) + +These files are experimental and are kept separate from the Qwen, Flux, and Krea release guides. +Use them only with an LTX-2 workflow that supports the corresponding in-context LoRA contract. +No LTX-2 workflow is bundled in this repository at the moment. + +Do not assume that the Qwen or Flux image input order applies to LTX-2. Follow the input contract +of the LTX-2 workflow you are using and test the checkpoint before a long generation. + +[Back to the repository index](../README.md) diff --git a/docs/qwen-image-2.1-body.md b/docs/qwen-image-2.1-body.md new file mode 100644 index 0000000000000000000000000000000000000000..921ea8effb8a8d7653bef61b70bce5a485fe9bfb --- /dev/null +++ b/docs/qwen-image-2.1-body.md @@ -0,0 +1,71 @@ +# BFS Body Swap V1.0 for Qwen Image 2.1 + +[`bfs_body_swap_v1.0_qwen_2.1.safetensors`](../bfs_body_swap_v1.0_qwen_2.1.safetensors) replaces +the **whole person** in a scene with the person from a reference image, keeping the scene's pose, +framing, lighting and background. It is separate from the head-swap weights: use this one when the +body, clothing and proportions should come from the reference, not only the head. + +Base model: [`Qwen/Qwen-Image-2.1`](https://huggingface.co/Qwen/Qwen-Image-2.1). Strength `1.0`. + +## Inputs + +- **Image 1 / ``:** the scene. Its pose, framing, lighting and background are kept. +- **Image 2 / ``:** the reference person, whose face, clothing and body proportions are + transferred. + +Keep this order. + +## Prompt + +```text +body_swap: start with as the base image, keeping its lighting, environment, and background. replace the body from with the body from , strictly preserving the clothing, body shape and proportions from . copy the pose, direction of the eye, head rotation, micro expressions from +``` + +## The reference image matters more than anything else + +This model was trained with references in one consistent format: **the person standing, full body, +facing the camera, on a plain light background**, filling most of a square frame. A reference in +that format is inside the distribution the model learned. A tight portrait with a busy background +is not, and that is where results fall apart: the reference's own background starts bleeding into +the output and identity gets weaker. + +Two things follow from that. + +**Give the reference room, not resolution.** If you feed both images at their native size, a +reference larger than the scene takes more tokens and starts overriding it. Scaling the reference +to roughly 0.59 MP (about 768x768 of area) while keeping its aspect ratio measurably improved how +well the scene's background survived, at every output size tested. Scaling the reference *up* to +match the scene's size was the worst setting measured, worse than doing nothing. + +**Normalize the reference first if it is not full body.** A single pass through Qwen Image 2.1 +itself, with no LoRA, turns a portrait into a reference in the trained format: + +```text +full body studio reference photo of the person from : standing upright on both feet, facing the camera, front view, camera at chest height and perfectly level, arms relaxed at the sides, neutral expression, looking straight at the camera. plain seamless light background, soft even studio lighting, no props and no cast shadows on the backdrop. the person fills almost the whole height of the square frame, from the top of the head down to the shoes, with a small even margin above and below. strictly keep the same face, hairstyle, clothing and body proportions as . sharp photographic detail +``` + +Run that at 1024x1024 and use the result as ``. It reconstructs legs and shoes that the +original crop did not show, so expect some loss of facial likeness in the reference itself; whether +the round trip is worth it depends on how far your source is from the trained format. + +## ComfyUI setup + +1. Put the file in `ComfyUI/models/loras/`. +2. Load the Qwen Image 2.1 diffusion model, the Qwen3-VL text encoder and the matching VAE. +3. Scale the **scene** to about 2 MP and the **reference** to about 0.59 MP, both preserving aspect + ratio (`ImageScaleToTotalPixels` does this). +4. Feed both to `TextEncodeQwenImage21` with `resolution: 0`, scene first. +5. Take the sampler's latent from that node's `latent` output: it is already sized to the scene, so + the aspect ratio follows without a separate `EmptyLatentImage` to keep in sync. + +## Limitations + +Faces get less accurate as the subject gets smaller in frame; the drop is measurable and it is the +main open weakness. Very large changes between scene and reference (different sex, age or build at +the same time) are the cases most likely to fail outright. Pose is followed approximately, not +exactly, and prompt wording moves it only a few percent. Always check the result for unintended +changes to the background, clothing and text. + +Do not use or share results involving public figures or people who have not given consent. + +[Back to the repository index](../README.md) diff --git a/docs/qwen-image-2.1.md b/docs/qwen-image-2.1.md new file mode 100644 index 0000000000000000000000000000000000000000..e05306e712fe83765541921b8fa98e9952d7cf24 --- /dev/null +++ b/docs/qwen-image-2.1.md @@ -0,0 +1,134 @@ +# BFS Head V1 / V1.1 for Qwen Image 2.1 + +The BFS head-swap LoRA for [`Qwen/Qwen-Image-2.1`](https://huggingface.co/Qwen/Qwen-Image-2.1) +ships in three versions: +[`bfs_head_v1.1_qwen_2.1.safetensors`](../bfs_head_v1.1_qwen_2.1.safetensors) (recommended), +[`bfs_head_v1.1_alternative_qwen_2.1.safetensors`](../bfs_head_v1.1_alternative_qwen_2.1.safetensors), +and the original [`bfs_head_v1_qwen_2.1.safetensors`](../bfs_head_v1_qwen_2.1.safetensors). +All three are drop-in replacements for each other: same workflow, same prompt, strength `1.0`. + +This release is separate from the Qwen Image Edit 2509/2511 weights. Use the Qwen Image 2.1 +base model and the included workflow: + +[`workflows/Head Swap V1 Qwen 2.1 Workflow.json`](../workflows/Head%20Swap%20V1%20Qwen%202.1%20Workflow.json) + +## Versions + +### V1.1: reduced skin softening + +V1 transfers identity well, but it also softens skin: pores, freckles and fine lines get smoothed +out, and results can read as slightly plastic. That softening does not come from the whole LoRA. +It comes from one specific part of it. + +The LoRA touches six modules in each of the 32 transformer blocks: four attention projections +(`to_q`, `to_k`, `to_v`, `to_out.0`) and two MLP ones (`img_mlp.gate_up`, `img_mlp.out`). +Disabling them group by group and comparing generations under a fixed seed, prompt and sampler +shows the blur is carried by the `img_mlp.gate_up` path. Attention routes information from the +reference head; the MLP path is where the model's notion of how a surface looks gets rewritten, +so that is where training pulled skin texture toward the dataset. + +V1.1 is V1 with the `img_mlp.gate_up` modules removed from the second half of the network +(blocks 16-31), 16 of the 192 modules. Every attention module, every `img_mlp.out` module and +the first-half `gate_up` modules are byte-identical to V1. Nothing was rescaled, re-ranked or +retrained. + +The cut stops at block 16 for a reason. The early-block MLP path is what makes the LoRA copy head +rotation, eye direction and expression from ``. Removing `img_mlp.gate_up` everywhere +yields even more skin detail, but the LoRA then stops following the source pose and degenerates +into pasting the reference head onto the body, which is close to what the base model already does +without any LoRA. V1.1 sits at the point where texture improves while that behaviour still works. + +Measured across five image pairs at a fixed seed, V1.1 raises skin micro-detail inside the face +(bilateral residual) by about a third over V1, closing roughly two thirds of the distance to what +the base model produces without any LoRA. Identity similarity and head-pose error stay close to +V1. Expression transfer still works, but it is weaker than V1. On a deliberately extreme test +case (a wide-open mouth in ``), V1 reproduces the expression more fully than V1.1. + +### V1.1 alternative - stronger expression transfer + +`bfs_head_v1.1_alternative_qwen_2.1.safetensors` attacks the same problem from the other side. +Instead of removing `img_mlp.gate_up` modules, it keeps all 192 modules and scales the whole +`img_mlp` path down to 35% of its trained magnitude, leaving the 128 attention modules untouched. +Scaling preserves the direction of the weight update and only reduces its strength, so the +behaviour that depends on the MLP path survives instead of being switched off. + +In testing this version keeps more skin detail than V1.1 and copies expression from `` +noticeably better - on the wide-open-mouth test case it reproduces the expression more fully than +V1.1 and more fully than V1 itself. It pays for that with a slightly larger head-pose error, about +one degree on average across the test pairs. + +Pick this one when the source image has a strong expression or the mouth and eyes carry the shot. +Pick V1.1 when head angle fidelity matters most. + + +### V1: original release + +The original release, kept for reproducibility and for anyone who already tuned a pipeline around +it. It has the softest skin of the three. Note that the V1.1 alternative above matches or beats it +at copying expression while keeping more skin detail, so there is little reason to prefer V1 unless +you want to handle texture yourself in post. + + +## Inputs + +The workflow uses two images: + +- **Image 1 / ``:** the target or base image. Its body, pose, composition, lighting, and + environment provide the foundation for the result. +- **Image 2 / ``:** the reference face/head. Its identity, hair, eye color, nose + structure, and other visible head features are transferred. + +Keep this order. Reversing the images changes which person is treated as the target. + +## Prompt + +The included workflow uses this starting prompt: + +```text +head_swap: start with as the base image, keeping its lighting, environment, and background. remove the head from completely and replace it with the head from , strictly preserving the hair, eye color, nose structure from . copy the direction of the eye, head rotation, micro expressions from , high quality, sharp details, 4k +``` + +Replace `` and `` only if your node or workflow uses a different reference-token +notation. Keep the edit localized to the head when the body and background should remain unchanged. + +## ComfyUI setup + +1. Put `bfs_head_v1.1_qwen_2.1.safetensors` (or one of the other two versions) in `ComfyUI/models/loras/`. +2. Load the Qwen Image 2.1 diffusion model, Qwen3-VL text encoder, and matching Qwen Image 2.1 + VAE required by the workflow. +3. Open the included workflow and connect the target image to Image 1 and the reference head to + Image 2. +4. Start with LoRA strength `1.0` and adjust only after checking the identity, hair boundary, + skin blending, and expression transfer. + +The workflow also contains an optional Pruna 8-step acceleration LoRA. It is not part of BFS and +can be disabled if it is not installed. + +## Resolution and quality + +Qwen Image 2.1 supports native high-resolution generation. The included workflow starts from a +moderate resolution and supports custom sizing in multiples of 32. For this head-swap use case, +larger output sizes can help retain facial detail and reduce the broad color or softness shifts +that may appear at lower resolutions. Higher resolution does not guarantee perfect preservation. + +## Examples + +

+ + + + + + + + +

+ +## Limitations and responsible use + +Small faces, extreme angles, occlusion, hands over the face, hair boundaries, and strong lighting +changes can reduce fidelity. Always inspect the result for unintended changes to the body, +clothing, background, text, and identity. Do not use or share results involving public figures or +people who have not given consent. + +[Back to the repository index](../README.md) diff --git a/docs/qwen-image-edit.md b/docs/qwen-image-edit.md new file mode 100644 index 0000000000000000000000000000000000000000..510390d9100c71ace29ad350054b40029002654f --- /dev/null +++ b/docs/qwen-image-edit.md @@ -0,0 +1,67 @@ +# Qwen Image Edit LoRAs + +This family contains the original BFS releases for Qwen Image Edit 2509 and the later 2511 +head-swap continuation. Use the matching Qwen base model and keep the input order for the selected +version. + +## Downloads + +### Qwen Image Edit 2509 + +- [`bfs_face_v1_qwen_image_edit_2509.safetensors`](../bfs_face_v1_qwen_image_edit_2509.safetensors) +- [`bfs_head_v1_qwen_image_edit_2509.safetensors`](../bfs_head_v1_qwen_image_edit_2509.safetensors) +- [`bfs_head_v2_qwen_image_edit_2509.safetensors`](../bfs_head_v2_qwen_image_edit_2509.safetensors) +- [`bfs_head_v3_qwen_image_edit_2509.safetensors`](../bfs_head_v3_qwen_image_edit_2509.safetensors) +- [`bfs_head_v4_qwen_image_edit_2509.safetensors`](../bfs_head_v4_qwen_image_edit_2509.safetensors) + +### Qwen Image Edit 2511 + +- [`bfs_head_v5_2511_original.safetensors`](../bfs_head_v5_2511_original.safetensors) +- [`bfs_head_v5_2511_merged_version_rank_16_fp16.safetensors`](../bfs_head_v5_2511_merged_version_rank_16_fp16.safetensors) +- [`bfs_head_v5_2511_merged_version_rank_32_fp32.safetensors`](../bfs_head_v5_2511_merged_version_rank_32_fp32.safetensors) + +The V5 files are the latest 2511 release. The merged versions combine the V5 2511 training with +the earlier V4 behavior; the FP16 file is the practical default, while the FP32 file is kept for +maximum numerical fidelity when storage and VRAM allow it. + +## Input order + +| Version | Image 1 | Image 2 | +|---|---|---| +| Face V1 | Reference face | Target body | +| Head V1/V2 | Reference face | Target body | +| Head V3/V4/V5 | Target body | Reference face | + +The V3, V4, and V5 releases intentionally use the inverted body-first order. Do not reuse the +Face V1/V2 order with those files. + +## Prompts + +Face V1: + +```text +face swap face from Image 1 to Image 2. swap only the face, match the skin tone, and keep the target pose and lighting. +``` + +Head V1/V2: + +```text +head swap from Image 1 to Image 2 +``` + +Head V3/V4/V5: + +```text +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, and nose structure of Picture 2. copy the eye direction, head rotation, and micro-expressions from Picture 1. +``` + +## Workflow + +The repository contains workflows for the V3, V4, and V5-style Qwen setup. Use the workflow that +matches the base model and version, then start around LoRA strength `1.0` and adjust based on the +reference image and resolution. + +This family is separate from the [Qwen Image 2.1 release](qwen-image-2.1.md), which uses +``/`` in its dedicated workflow. + +[Back to the repository index](../README.md) diff --git a/hf_remote_info.json b/hf_remote_info.json new file mode 100644 index 0000000000000000000000000000000000000000..1965ddbd8229b5be700fed2be25b01ec06c7ebc5 --- /dev/null +++ b/hf_remote_info.json @@ -0,0 +1,251 @@ +{ + "id": "Alissonerdx/BFS-Best-Face-Swap", + "author": "Alissonerdx", + "sha": "c758d55502463bc5eb281326c107d0850d7a8b4a", + "created_at": "2025-11-07T09:50:28+00:00", + "last_modified": "2026-08-10T19:53:10+00:00", + "private": false, + "disabled": false, + "downloads": 110991, + "gated": false, + "inference": "warm", + "likes": 757, + "library_name": "diffusers", + "tags": [ + "diffusers", + "lora", + "qwen-image-edit", + "face-swap", + "head-swap", + "body-swap", + "image-editing", + "ai-generated", + "comfyui", + "bfs", + "flux 2", + "flux", + "klein", + "krea2", + "image-to-image", + "en", + "base_model:Qwen/Qwen-Image-Edit-2511", + "base_model:adapter:Qwen/Qwen-Image-Edit-2511", + "license:mit", + "region:us" + ], + "pipeline_tag": "image-to-image", + "card_data": {}, + "config": {}, + "siblings": [ + { + "rfilename": ".gitattributes" + }, + { + "rfilename": "README.md" + }, + { + "rfilename": "bfs_body_swap_v1_krea2.safetensors" + }, + { + "rfilename": "bfs_face_v1_qwen_image_edit_2509.safetensors" + }, + { + "rfilename": "bfs_head_swap_v1.1_krea2.safetensors" + }, + { + "rfilename": "bfs_head_swap_v1_ltx2_ic_lora_12000_train_3.safetensors" + }, + { + "rfilename": "bfs_head_swap_v1_ltx2_ic_lora_5000.safetensors" + }, + { + "rfilename": "bfs_head_swap_v1_ltx2_ic_lora_6000.safetensors" + }, + { + "rfilename": "bfs_head_v1.1_optional_flux-klein_4b.safetensors" + }, + { + "rfilename": "bfs_head_v1_flux-klein_4b.safetensors" + }, + { + "rfilename": "bfs_head_v1_flux-klein_9b_step3500_rank128.safetensors" + }, + { + "rfilename": "bfs_head_v1_flux-klein_9b_step3750_rank64.safetensors" + }, + { + "rfilename": "bfs_head_v1_qwen_image_edit_2509.safetensors" + }, + { + "rfilename": "bfs_head_v2_qwen_image_edit_2509.safetensors" + }, + { + "rfilename": "bfs_head_v3_qwen_image_edit_2509.safetensors" + }, + { + "rfilename": "bfs_head_v4_qwen_image_edit_2509.safetensors" + }, + { + "rfilename": "bfs_head_v5_2511_merged_version_rank_16_fp16.safetensors" + }, + { + "rfilename": "bfs_head_v5_2511_merged_version_rank_32_fp32.safetensors" + }, + { + "rfilename": "bfs_head_v5_2511_original.safetensors" + }, + { + "rfilename": "images/ComfyUI_04745_.png" + }, + { + "rfilename": "images/ComfyUI_04755_.png" + }, + { + "rfilename": "images/ComfyUI_04759_.png" + }, + { + "rfilename": "images/ComfyUI_04761_.png" + }, + { + "rfilename": "images/bfs_body_swap_v1_krea2_example_closeup.png" + }, + { + "rfilename": "images/bfs_body_swap_v1_krea2_example_kitchen.png" + }, + { + "rfilename": "images/bfs_body_swap_v1_krea2_example_outdoors.png" + }, + { + "rfilename": "images/bfs_body_swap_v1_krea2_example_restaurant.png" + }, + { + "rfilename": "images/bfs_body_swap_v1_krea2_example_seated.png" + }, + { + "rfilename": "images/bfs_body_swap_v1_krea2_example_yoga.png" + }, + { + "rfilename": "workflows/Body Swap Krea 2 - V1 Simple Workflow.json" + }, + { + "rfilename": "workflows/Head Swap 2511 - V5 Simple Workflow.json" + }, + { + "rfilename": "workflows/Head Swap Krea 2 - V1 Simple Workflow.json" + }, + { + "rfilename": "workflows/Head Swap V1 Flux 2 Klein 4b_9b (base_distill).json" + }, + { + "rfilename": "workflows/Head Swap V3 Simple Workflow (With Lightining LoRA) .json" + }, + { + "rfilename": "workflows/Head Swap V3 Simple Workflow (Without Lightining LoRA).json" + }, + { + "rfilename": "workflows/Head Swap V4 Simple Workflow.json" + } + ], + "spaces": [ + "cruisewagner2220/Qwen-Image-Edit-Rapid-AIO-Loras-Experimental-neo", + "M3st3rJ4k3l/FLUX.2-Klein-Multi-LoRA", + "linoyts/Flux2-Klein-Face-Swap", + "ovi054/Qwen-Image-Edit-2511-LoRA", + "laruss5/Flux2-Klein-Face-Swap", + "pnemrow/Qwen-Image-Edit-Rapid-AIO-Loras-Experimental-neo", + "Mccscs2/Qwen-Image-Edit-Rapid-AIO-Loras-Experimental", + "DanFrmSpace/BFS-Best-Face-Swap", + "mmmat32/FLUX.2-Klein-Multi-LoRA-3D-Angle", + "jt65/Qwen-Image-Edit-2511-LoRA-nsfw", + "prithivMLmods/FLUX.2-Klein-LoRA-Studio", + "someone-in-the-world/Selectable-Face-Swap", + "GTO83/Qwen-Image-Edit-Rapid-AIO-Loras-Experimental-neo", + "aet256/Qwen-Image-Edit-Rapid-AIO-Loras-Experimental", + "Onise/FLUX.2-Klein-LoRA-Studio", + "ahuggingface01/BFS-Best-Face-Swap", + "linoyts/Face-Swap-Frame", + "e1357/FLUX.2-Klein-Multi-LoRA", + "Alissonerdx/BFS-Best-Face-Swap", + "M3st3rJ4k3l/Qwen-Image-Edit-Rapid-AIO-Loras-Experimental", + "anonyketaa/Alissonerdx-BFS-Best-Face-Swap", + "ishrak-8495/Alissonerdx-BFS-Best-Face-Swap", + "Furkangundog18/Flux2-Klein-Face-Swap", + "Sebastiankay/bildbearbeitung", + "idcuso/Alissonerdx-BFS-Best-Face-Swap", + "blablaai11/Alissonerdx-BFS-Best-Face-Swap", + "linoyts/Subject-Swap-Frame", + "cereeenn120/Hogwarts_SBox_AI-RPG", + "yayite/FLUX.2-Klein-Multi-LoRA", + "Briante/BFS-Best-Face-Swap", + "Revo420/Alissonerdx-BFS-Best-Face-Swap", + "ideryang/Alissonerdx-BFS-Best-Face-Swap", + "ideryang/BFS-Best-Face-Swap", + "Mrwigglezz/Alissonerdx-BFS-Best-Face-Swap", + "ikolomiets/Flux2-Klein-Face-Swap", + "Dmitry1313/facefusion-api", + "akashgundgire78/zero123-views", + "raubatz/Qwen-Image-Edit-Rapid-AIO-Loras-Experimental-neo", + "masterp3000/FLUX.2-Klein-Multi-LoRA", + "MaxBardi/FLUX.2-Klein-LoRA-Studio", + "BigFaceChase/Flux2-Klein-Face-Swap", + "Hittler-AI/FLUX.2-Klein-Multi-LoRA", + "aniketb04/Alissonerdx-BFS-Best-Face-Swap", + "Pippolononone/Alissonerdx-BFS-Best-Face-Swap", + "Dnidbdnx/Alissonerdx-BFS-Best-Face-Swap", + "pyo8777/Alissonerdx-BFS-Best-Face-Swap", + "Jobanpreet/faceswap", + "Dreamer333/Alissonerdx-BFS-Best-Face-Swap", + "Idlyex/BFS-Best-Face-Swap", + "yuhuiwang/Alissonerdx-BFS-Best-Face-Swap", + "Andrew115/Alissonerdx-BFS-Best-Face-Swap", + "pormungtai/QwenPost-Image-Edit-Rapid-AIO-Loras", + "00Boobs00/Qwen-Image-Edit-Rapid-AIO-Lorasses", + "Arafat602/Alissonerdx-BFS-Best-Face-Swap", + "ziffir/Face-swap-FLUX-2", + "GioVar/Qwen-Image-Edit-Rapid-AIO-Loras-Experimental", + "DarkJ/Alissonerdx-BFS-Best-Face-Swap", + "chokoarbejde/Qwen-Image-Edit-Rapid-AIO-Loras", + "Rileygsjsj828292/Alissonerdx-BFS-Best-Face-Swap", + "priyesh08/pn-BFS-Best-Face-Swap", + "cereeenn120/AI-RPG", + "Karter93/QwenPost-Image-Edit-Rapid-AIO-Loras", + "noumanvyom/Alissonerdx-BFS-Best-Face-Swap", + "mr2along/Bfs", + "mr2along/Flux2-Klein", + "NYBinSJ/Alissonerdx-BFS-Best-Face-Swap", + "deepvoice/Alissonerdx-BFS-Best-Face-Swap", + "Vaadadim/Alissonerdx-BFS-Best-Face-Swap", + "airpm21/Alissonerdx-BFS-Best-Face-Swap", + "sinhachetu/Flux2-Klein-Face-Swap", + "rothel888/Alissonerdx-BFS-Best-Face-Swap", + "mcmcowen/Flux2-Klein-Face-Swap", + "GeBibawy/BFS-Best-Face-Swap", + "leonelhs/Flux2-Klein-Face-Swap", + "ilian007/FaceSwap", + "Poppy222/Alissonerdx-BFS-Best-Face-Swap", + "GiorgioV/FLUX.2-Klein-LoRA-Studio12", + "dxxslol/Alissonerdx-BFS-Best-Face-Swap", + "lahlaliy/Alissonerdx-BFS-Best-Face-Swap", + "Micha0103/Alissonerdx-BFS-Best-Face-Swap", + "ziffir/Flux2-Klein-Face-Swap", + "arabago96/FLUX.2-Klein-LoRA-Studio", + "Juliozama1989/FLUX.2-Klein-LoRA-Studio", + "Burberman/Alissonerdx-BFS-Best-Face-Swap", + "ad242/Flux2-Klein-Face-Swap", + "HHClub/Flux2-Klein-Face-Swap", + "grnacho/Flux2-Klein-Face-Swap", + "ranobe0/Flux2-Klein-Face-Swap2", + "EVO817/Flux2-Klein-Face-Swap", + "dssddsdf/flux-klein-studio", + "Oiknoohs/Alissonerdx-BFS-Best-Face-Swap", + "Fernk/Alissonerdx-BFS-Best-Face-Swap", + "qu33fy/Alissonerdx-BFS-Best-Face-Swap", + "Karter93/FLUX.2-Klein-LoRA-Studio12", + "Jonnyquang104/Flux2-Klein-Face-Swap", + "Tshovon/Flux2-Klein-Face-Swap", + "Jaxxtherapper/Flux2-Klein-Face-Swap", + "ofunrein/Alissonerdx-BFS-Best-Face-Swap", + "EldMans/Flux2-Klein-Face-Swap", + "jp123454321/Flux2-Klein-Face-Swap" + ] +} diff --git a/hf_upload.err.log b/hf_upload.err.log new file mode 100644 index 0000000000000000000000000000000000000000..4e6ef34b236e49c024008440706c3906064ef00f --- /dev/null +++ b/hf_upload.err.log @@ -0,0 +1,594 @@ +Start hashing 11 files. +Finished hashing 11 files. + Processing Files (0 / 0) : | | 0.00B / 0.00B + New Data Upload : | | 0.00B / 0.00B  + + ...ap_v1.1_krea2.safetensors: 5%|4 | 41.9MB / 914MB  + + ...ap_v1.1_krea2.safetensors: 5%|4 | 41.9MB / 914MB  Processing Files (0 / 1) : 2%|2 | 41.9MB / 1.84GB, 42.1MB/s + + + ...swap_v1_krea2.safetensors: 12%|#1 | 109MB / 914MB  + + ...ap_v1.1_krea2.safetensors: 17%|#7 | 159MB / 914MB  + + + ...swap_v1_krea2.safetensors: 12%|#1 | 109MB / 914MB  Processing Files (0 / 2) : 15%|#4 | 268MB / 1.84GB, 224MB/s + + ...ap_v1.1_krea2.safetensors: 30%|### | 277MB / 914MB  + + + ...swap_v1_krea2.safetensors: 24%|##3 | 218MB / 914MB  Processing Files (0 / 2) : 27%|##6 | 495MB / 1.84GB, 357MB/s + + ...ap_v1.1_krea2.safetensors: 42%|####2 | 386MB / 914MB  + + + ...swap_v1_krea2.safetensors: 37%|###6 | 335MB / 914MB  Processing Files (0 / 2) : 39%|###9 | 721MB / 1.84GB, 454MB/s + + ...ap_v1.1_krea2.safetensors: 55%|#####5 | 503MB / 914MB  + + + ...swap_v1_krea2.safetensors: 50%|####9 | 453MB / 914MB  Processing Files (0 / 2) : 52%|#####1 | 956MB / 1.84GB, 535MB/s + + ...ap_v1.1_krea2.safetensors: 69%|######8 | 629MB / 914MB  + + + ...swap_v1_krea2.safetensors: 62%|######2 | 570MB / 914MB  Processing Files (0 / 2) : 65%|######5 | 1.20GB / 1.84GB, 604MB/s + + ...ap_v1.1_krea2.safetensors: 82%|########1 | 747MB / 914MB  + + + ...swap_v1_krea2.safetensors: 76%|#######6 | 696MB / 914MB  Processing Files (0 / 2) : 78%|#######8 | 1.44GB / 1.84GB, 658MB/s + + ...ap_v1.1_krea2.safetensors: 95%|#########4| 864MB / 914MB  + + + ...swap_v1_krea2.safetensors: 89%|########9 | 814MB / 914MB  Processing Files (0 / 2) : 91%|######### | 1.68GB / 1.84GB, 703MB/s + + ...ap_v1.1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + ...swap_v1_krea2.safetensors: 100%|##########| 914MB / 914MB  Processing Files (2 / 2) : 99%|#########9| 1.83GB / 1.84GB, 705MB/s + + ...ap_v1.1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + ...swap_v1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + + ...krea2_example_closeup.png: 3%|3 | 86.0kB / 2.66MB  + + + + + ...krea2_example_kitchen.png: 3%|3 | 90.0kB / 2.79MB  + + + + + + ...rea2_example_outdoors.png: 3%|3 | 82.2kB / 2.54MB  + + + + + + + ...a2_example_restaurant.png: 3%|3 | 102kB / 3.16MB  + + + + + + + + ..._krea2_example_seated.png: 3%|3 | 80.6kB / 2.50MB  + + + + + + + + + ...v1_krea2_example_yoga.png: 3%|3 | 87.2kB / 2.70MB  + + ...ap_v1.1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + ...swap_v1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + + ...krea2_example_closeup.png: 3%|3 | 86.0kB / 2.66MB  + + + + + ...krea2_example_kitchen.png: 3%|3 | 90.0kB / 2.79MB  + + + + + + ...rea2_example_outdoors.png: 3%|3 | 82.2kB / 2.54MB  + + + + + + + ...a2_example_restaurant.png: 3%|3 | 102kB / 3.16MB  + + + + + + + + ..._krea2_example_seated.png: 3%|3 | 80.6kB / 2.50MB  + + + + + + + + + ...v1_krea2_example_yoga.png: 3%|3 | 87.2kB / 2.70MB  Processing Files (2 / 8) : 99%|#########9| 1.83GB / 1.84GB, 610MB/s + New Data Upload : 3%|3 | 528kB / 16.4MB, 176kB/s  + + ...ap_v1.1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + ...swap_v1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + + ...krea2_example_closeup.png: 3%|3 | 86.0kB / 2.66MB  + + + + + ...krea2_example_kitchen.png: 3%|3 | 90.0kB / 2.79MB  + + + + + + ...rea2_example_outdoors.png: 3%|3 | 82.2kB / 2.54MB  + + + + + + + ...a2_example_restaurant.png: 3%|3 | 102kB / 3.16MB  + + + + + + + + ..._krea2_example_seated.png: 3%|3 | 80.6kB / 2.50MB  + + + + + + + + + ...v1_krea2_example_yoga.png: 3%|3 | 87.2kB / 2.70MB  + + ...ap_v1.1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + ...swap_v1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + + ...krea2_example_closeup.png: 19%|#9 | 516kB / 2.66MB  + + + + + ...krea2_example_kitchen.png: 19%|#9 | 540kB / 2.79MB  + + + + + + ...rea2_example_outdoors.png: 19%|#9 | 493kB / 2.54MB  + + + + + + + ...a2_example_restaurant.png: 19%|#9 | 613kB / 3.16MB  + + + + + + + + ..._krea2_example_seated.png: 19%|#9 | 484kB / 2.50MB  + + + + + + + + + ...v1_krea2_example_yoga.png: 19%|#9 | 523kB / 2.70MB  Processing Files (2 / 8) : 99%|#########9| 1.83GB / 1.84GB, 540MB/s + New Data Upload : 19%|#9 | 3.17MB / 16.4MB, 935kB/s  + + ...ap_v1.1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + ...swap_v1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + + ...krea2_example_closeup.png: 48%|####8 | 1.29MB / 2.66MB  + + + + + ...krea2_example_kitchen.png: 48%|####8 | 1.35MB / 2.79MB  + + + + + + ...rea2_example_outdoors.png: 48%|####8 | 1.23MB / 2.54MB  + + + + + + + ...a2_example_restaurant.png: 48%|####8 | 1.53MB / 3.16MB  + + + + + + + + ..._krea2_example_seated.png: 48%|####8 | 1.21MB / 2.50MB  + + + + + + + + + ...v1_krea2_example_yoga.png: 48%|####8 | 1.31MB / 2.70MB  Processing Files (2 / 8) : 100%|#########9| 1.84GB / 1.84GB, 511MB/s + New Data Upload : 48%|####8 | 7.92MB / 16.4MB, 2.20MB/s  + + ...ap_v1.1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + ...swap_v1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + + ...krea2_example_closeup.png: 94%|#########3| 2.50MB / 2.66MB  + + + + + ...krea2_example_kitchen.png: 94%|#########3| 2.61MB / 2.79MB  + + + + + + ...rea2_example_outdoors.png: 94%|#########3| 2.38MB / 2.54MB  + + + + + + + ...a2_example_restaurant.png: 94%|#########3| 2.97MB / 3.16MB  + + + + + + + + ..._krea2_example_seated.png: 94%|#########3| 2.34MB / 2.50MB  + + + + + + + + + ...v1_krea2_example_yoga.png: 94%|#########3| 2.53MB / 2.70MB  Processing Files (2 / 8) : 100%|#########9| 1.84GB / 1.84GB, 485MB/s + New Data Upload : 94%|#########3| 15.3MB / 16.4MB, 4.03MB/s  + + ...ap_v1.1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + ...swap_v1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + + ...krea2_example_closeup.png: 97%|#########6| 2.58MB / 2.66MB  + + + + + ...krea2_example_kitchen.png: 97%|#########6| 2.70MB / 2.79MB  + + + + + + ...rea2_example_outdoors.png: 97%|#########6| 2.47MB / 2.54MB  + + + + + + + ...a2_example_restaurant.png: 97%|#########6| 3.07MB / 3.16MB  + + + + + + + + ..._krea2_example_seated.png: 97%|#########6| 2.42MB / 2.50MB  + + + + + + + + + ...v1_krea2_example_yoga.png: 97%|#########6| 2.62MB / 2.70MB  Processing Files (2 / 8) : 100%|#########9| 1.84GB / 1.84GB, 461MB/s + New Data Upload : 97%|#########6| 15.8MB / 16.4MB, 3.96MB/s  + + ...ap_v1.1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + ...swap_v1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + + ...krea2_example_closeup.png: 97%|#########6| 2.58MB / 2.66MB  + + + + + ...krea2_example_kitchen.png: 97%|#########6| 2.70MB / 2.79MB  + + + + + + ...rea2_example_outdoors.png: 97%|#########6| 2.47MB / 2.54MB  + + + + + + + ...a2_example_restaurant.png: 97%|#########6| 3.07MB / 3.16MB  + + + + + + + + ..._krea2_example_seated.png: 97%|#########6| 2.42MB / 2.50MB  + + + + + + + + + ...v1_krea2_example_yoga.png: 97%|#########6| 2.62MB / 2.70MB  + + ...ap_v1.1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + ...swap_v1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + + ...krea2_example_closeup.png: 100%|##########| 2.66MB / 2.66MB  + + + + + ...krea2_example_kitchen.png: 100%|##########| 2.79MB / 2.79MB  + + + + + + ...rea2_example_outdoors.png: 100%|##########| 2.54MB / 2.54MB  + + + + + + + ...a2_example_restaurant.png: 100%|##########| 3.16MB / 3.16MB  + + + + + + + + ..._krea2_example_seated.png: 100%|##########| 2.50MB / 2.50MB  + + + + + + + + + ...v1_krea2_example_yoga.png: 100%|##########| 2.70MB / 2.70MB  Processing Files (8 / 8) : 100%|##########| 1.84GB / 1.84GB, 420MB/s + New Data Upload : 100%|##########| 16.4MB / 16.4MB, 3.72MB/s  + + ...ap_v1.1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + ...swap_v1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + + ...krea2_example_closeup.png: 100%|##########| 2.66MB / 2.66MB  + + + + + ...krea2_example_kitchen.png: 100%|##########| 2.79MB / 2.79MB  + + + + + + ...rea2_example_outdoors.png: 100%|##########| 2.54MB / 2.54MB  + + + + + + + ...a2_example_restaurant.png: 100%|##########| 3.16MB / 3.16MB  + + + + + + + + ..._krea2_example_seated.png: 100%|##########| 2.50MB / 2.50MB  + + + + + + + + + ...v1_krea2_example_yoga.png: 100%|##########| 2.70MB / 2.70MB  + + ...ap_v1.1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + ...swap_v1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + + ...krea2_example_closeup.png: 100%|##########| 2.66MB / 2.66MB  + + + + + ...krea2_example_kitchen.png: 100%|##########| 2.79MB / 2.79MB  + + + + + + ...rea2_example_outdoors.png: 100%|##########| 2.54MB / 2.54MB  + + + + + + + ...a2_example_restaurant.png: 100%|##########| 3.16MB / 3.16MB  + + + + + + + + ..._krea2_example_seated.png: 100%|##########| 2.50MB / 2.50MB  + + + + + + + + + ...v1_krea2_example_yoga.png: 100%|##########| 2.70MB / 2.70MB  + + ...ap_v1.1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + ...swap_v1_krea2.safetensors: 100%|##########| 914MB / 914MB  + + + + ...krea2_example_closeup.png: 100%|##########| 2.66MB / 2.66MB  + + + + + ...krea2_example_kitchen.png: 100%|##########| 2.79MB / 2.79MB  + + + + + + ...rea2_example_outdoors.png: 100%|##########| 2.54MB / 2.54MB  + + + + + + + ...a2_example_restaurant.png: 100%|##########| 3.16MB / 3.16MB  + + + + + + + + ..._krea2_example_seated.png: 100%|##########| 2.50MB / 2.50MB  + + + + + + + + + ...v1_krea2_example_yoga.png: 100%|##########| 2.70MB / 2.70MB  Processing Files (8 / 8) : 100%|##########| 1.84GB / 1.84GB, 385MB/s + New Data Upload : 100%|##########| 16.4MB / 16.4MB, 3.42MB/s + ...ap_v1.1_krea2.safetensors: 100%|##########| 914MB / 914MB + ...swap_v1_krea2.safetensors: 100%|##########| 914MB / 914MB + ...krea2_example_closeup.png: 100%|##########| 2.66MB / 2.66MB + ...krea2_example_kitchen.png: 100%|##########| 2.79MB / 2.79MB + ...rea2_example_outdoors.png: 100%|##########| 2.54MB / 2.54MB + ...a2_example_restaurant.png: 100%|##########| 3.16MB / 3.16MB + ..._krea2_example_seated.png: 100%|##########| 2.50MB / 2.50MB + ...v1_krea2_example_yoga.png: 100%|##########| 2.70MB / 2.70MB diff --git a/hf_upload.out.log b/hf_upload.out.log new file mode 100644 index 0000000000000000000000000000000000000000..e2664b26c59363f509006ba0fb0f68feba240004 --- /dev/null +++ b/hf_upload.out.log @@ -0,0 +1 @@ +https://huggingface.co/Alissonerdx/BFS-Best-Face-Swap/commit/c758d55502463bc5eb281326c107d0850d7a8b4a diff --git a/images/ComfyUI_04745_.png b/images/ComfyUI_04745_.png new file mode 100644 index 0000000000000000000000000000000000000000..b58dc2cdc161a113bfa705f27db73ab703a7d285 --- /dev/null +++ b/images/ComfyUI_04745_.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c55e0266b901433cba62216a1e8c9f9fb1f2b0c0b96db3146717fb54ec6d6ff +size 6079062 diff --git a/images/ComfyUI_04755_.png b/images/ComfyUI_04755_.png new file mode 100644 index 0000000000000000000000000000000000000000..3073058334f339d8cf84bdaae8bfa12db7760287 --- /dev/null +++ b/images/ComfyUI_04755_.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b838ec72bf73acb657d840eb06668134c6ba9fda33d503db289d595bd97838ca +size 5061596 diff --git a/images/ComfyUI_04759_.png b/images/ComfyUI_04759_.png new file mode 100644 index 0000000000000000000000000000000000000000..96504803610f130b5941ba2d2323f64d3d3c71a1 --- /dev/null +++ b/images/ComfyUI_04759_.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a82de9bccec50c3fa6a459f5368569841f1ff83b8437e1c62994569ef0432f22 +size 5330009 diff --git a/images/ComfyUI_04761_.png b/images/ComfyUI_04761_.png new file mode 100644 index 0000000000000000000000000000000000000000..b1578b79c0807da94fdea06c469fa24e687cbbbf --- /dev/null +++ b/images/ComfyUI_04761_.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00b5ec60effecf8e38f9da05334a793e59f5e0a5dcc979eecb45e0e246c7fc4f +size 6064088 diff --git a/images/bfs_body_swap_v1_krea2_example_closeup.png b/images/bfs_body_swap_v1_krea2_example_closeup.png new file mode 100644 index 0000000000000000000000000000000000000000..66884f8b489ace5943f592e364e356a49a6d8704 --- /dev/null +++ b/images/bfs_body_swap_v1_krea2_example_closeup.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46e514c73657ef0f57a56cafcd064083e132012546af69ee19d5f1e266adf163 +size 2663186 diff --git a/images/bfs_body_swap_v1_krea2_example_kitchen.png b/images/bfs_body_swap_v1_krea2_example_kitchen.png new file mode 100644 index 0000000000000000000000000000000000000000..4e5d8b32a27fed2367399059b7efe18f1f681490 --- /dev/null +++ b/images/bfs_body_swap_v1_krea2_example_kitchen.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9bc2d608fcd45017876fbc104f67b3f6e0a70c33af9e3cf61a6f603b2e32fef3 +size 2785949 diff --git a/images/bfs_body_swap_v1_krea2_example_outdoors.png b/images/bfs_body_swap_v1_krea2_example_outdoors.png new file mode 100644 index 0000000000000000000000000000000000000000..f2183abc649d4b4952a624389ea7395d72013eb9 --- /dev/null +++ b/images/bfs_body_swap_v1_krea2_example_outdoors.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65e94b32b6918d510a5f67d56cc8fbd17dc5382ccff8670d81d3e1b5efc207c8 +size 2544502 diff --git a/images/bfs_body_swap_v1_krea2_example_restaurant.png b/images/bfs_body_swap_v1_krea2_example_restaurant.png new file mode 100644 index 0000000000000000000000000000000000000000..2f404b848cc12678625151b52b3860d5fc0fe492 --- /dev/null +++ b/images/bfs_body_swap_v1_krea2_example_restaurant.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20bdf1596295afe59f4b1edccdf638d6cd545b00aa7a37b29d2fe945de467b97 +size 3164809 diff --git a/images/bfs_body_swap_v1_krea2_example_seated.png b/images/bfs_body_swap_v1_krea2_example_seated.png new file mode 100644 index 0000000000000000000000000000000000000000..1c0b5907ce2076b3562020ddc9d0691b60578494 --- /dev/null +++ b/images/bfs_body_swap_v1_krea2_example_seated.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16d9e78c76f32efbf033fc027ee574aa531668a4e3e7d9667574873cf44ea172 +size 2495182 diff --git a/images/bfs_body_swap_v1_krea2_example_yoga.png b/images/bfs_body_swap_v1_krea2_example_yoga.png new file mode 100644 index 0000000000000000000000000000000000000000..ac50cdd428642cb49f873b7bc28782a9b531e006 --- /dev/null +++ b/images/bfs_body_swap_v1_krea2_example_yoga.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37c8f83894bafb212481103935fc3a5c125b819ca879bc750e1d8bc5bc77d5cf +size 2699005 diff --git a/images/bfs_qwen_2.1_1.png b/images/bfs_qwen_2.1_1.png new file mode 100644 index 0000000000000000000000000000000000000000..b6577231d3f1f84b28f08f98e1bc2fbad8b09d39 --- /dev/null +++ b/images/bfs_qwen_2.1_1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e04cd89a445d86cfe1bf3618ff657bdbdfa7ab2d0f18157f622b319a569fbd5 +size 5624795 diff --git a/images/bfs_qwen_2.1_2.png b/images/bfs_qwen_2.1_2.png new file mode 100644 index 0000000000000000000000000000000000000000..a2cc016cfcfb5f86e9fa7b3d75b9e7c91ec5142f --- /dev/null +++ b/images/bfs_qwen_2.1_2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f090851138e7450b954d1e367d0ad00becfccf0300604c146b8778569d695043 +size 6342400 diff --git a/images/bfs_qwen_2.1_3.png b/images/bfs_qwen_2.1_3.png new file mode 100644 index 0000000000000000000000000000000000000000..075130f0171c7bd2b1a38ba9ff88d199a299862b --- /dev/null +++ b/images/bfs_qwen_2.1_3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9fd14f1cefffde6aa7c060fa67da3ba5b0d357296f575af1dcb2efffb66c01da +size 7627218 diff --git a/images/bfs_qwen_2.1_4.png b/images/bfs_qwen_2.1_4.png new file mode 100644 index 0000000000000000000000000000000000000000..074f9a85aed7b8ef9f6df29581d17bf75c49abc9 --- /dev/null +++ b/images/bfs_qwen_2.1_4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c0bd6f85a780c3004f1bbaa6af1163e0c2e4fc90e3d14c1f8f60872c7cce8b2 +size 8312937 diff --git a/images/bfs_qwen_2.1_5.png b/images/bfs_qwen_2.1_5.png new file mode 100644 index 0000000000000000000000000000000000000000..9bb49c832036a0400a042cfb2458d24201f46d04 --- /dev/null +++ b/images/bfs_qwen_2.1_5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f2498ad74a62ad345da6e9ee897433b1f15541cdbcf159e9c9f74160f35c460 +size 8012027 diff --git a/images/bfs_qwen_2.1_6.png b/images/bfs_qwen_2.1_6.png new file mode 100644 index 0000000000000000000000000000000000000000..988e635efadc97442472bac7fdc2ad19e7f2fe97 --- /dev/null +++ b/images/bfs_qwen_2.1_6.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5958ddd8bfb147eb41ddba3a9129f52518a55d84ee0fe34d658954593b723ac +size 9411149 diff --git a/images/bfs_qwen_2.1_7.png b/images/bfs_qwen_2.1_7.png new file mode 100644 index 0000000000000000000000000000000000000000..02ffda80273bfb379e995332a14f22ed51ffbb52 --- /dev/null +++ b/images/bfs_qwen_2.1_7.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6dcc936c6efeed9a77a86e629bf0f9d48a31a58f0df670186e9e0619b77e446 +size 7087610 diff --git a/images/bfs_qwen_2.1_8.png b/images/bfs_qwen_2.1_8.png new file mode 100644 index 0000000000000000000000000000000000000000..dfd3c33fcccfbc3f739b46c4ec33f97bb7192dff --- /dev/null +++ b/images/bfs_qwen_2.1_8.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:840f2bfa31767df4b75636c8714474a7dba3f554b410e15ec632e8e5d6ef584f +size 8598640 diff --git a/remote_verify/README.md b/remote_verify/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6002e6fb7b6a1e2c1ecba1e953596b2a49e59407 --- /dev/null +++ b/remote_verify/README.md @@ -0,0 +1,248 @@ +--- +license: mit +base_model: +- black-forest-labs/FLUX.2-klein-9B +- black-forest-labs/FLUX.2-klein-4B +- black-forest-labs/FLUX.2-klein-base-4B +- black-forest-labs/FLUX.2-klein-base-9B +- black-forest-labs/FLUX.2-klein-9b-fp8 +- black-forest-labs/FLUX.2-klein-4b-fp8 +- Qwen/Qwen-Image-Edit-2511 +- krea/Krea-2-Raw +pipeline_tag: image-to-image +tags: +- lora +- qwen-image-edit +- face-swap +- head-swap +- body-swap +- image-editing +- ai-generated +- comfyui +- bfs +- flux 2 +- flux +- klein +- krea2 +language: +- en +library_name: diffusers +--- + +# 🧬 BFS — Best Face Swap (Qwen Image Edit, Flux 2 Klein, Krea 2) + +The **BFS (Best Face Swap)** LoRA series was created for **Qwen Image Edit 2509/2511, Flux 2 Klein 4b/9b, and Krea 2**, designed to perform high-fidelity face, head, and full-person swaps with natural tone blending and consistent lighting. + +Each version focuses on a different level of replacement, from subtle face swaps to full head transfers. +Use each LoRA with its matching base model and workflow. Krea 2 head/body workflows are included in the `workflows` folder. + +šŸ‘‰ **Workflows** for all BFS versions can be downloaded here: +[Head/Face Swap Workflow — Qwen Image Edit 2509 (Civitai)](https://civitai.com/articles/20190/headface-swap-workflow-qwen-image-edit-2509) + +--- + +## šŸ”¹ Versions Overview + +| Version | File(s) | Description | +|---|---|---| +| **BFS Face V1 – 2509** | `bfs_face_v1_qwen_image_edit_2509.safetensors` | Swaps **only the face**. Preserves target hair, lighting, and background. | +| **BFS Head V1 – 2509** | `bfs_head_v1_qwen_image_edit_2509.safetensors` | Full head swap with natural blending between head/hair and target body. | +| **BFS Head V2 – 2509** | `bfs_head_v2_qwen_image_edit_2509.safetensors` | Improved skin tone matching, pose alignment, and anatomical consistency. | +| **BFS Head V3 – 2509 (Recommended)** | `bfs_head_v3_qwen_image_edit_2509.safetensors` | Stable and accurate. **Input order is inverted** (body first, then face). | +| **BFS Head V4 – 2509/2511** | `bfs_head_v4_qwen_image_edit_2509.safetensors` | Stronger expression transfer and robustness. **Inverted input order**. | +| **BFS Head V5 – 2511 (Recommended)** | `bfs_head_v5_2511_original.safetensors`
`bfs_head_v5_2511_merged_version_rank_16_fp16.safetensors`
`bfs_head_v5_2511_merged_version_rank_32_fp32.safetensors` | Latest release for 2511 workflows. **Inverted input order**. See details below. | +| **BFS Head V1 – Flux 2 Klein 4/9b (Recommended)** | `bfs_head_v1_flux-klein_4b.safetensors`
`bfs_head_v1_flux-klein_9b_step3500_rank128.safetensors`
`bfs_head_v1_flux-klein_9b_step3750_rank64.safetensors` | **Inverted input order**. See details below. | +| **BFS Head Swap V1.1 – Krea 2** | `bfs_head_swap_v1.1_krea2.safetensors` | Updated Krea 2 head swap release. Replaces the previous V1 file. | +| **BFS Body Swap V1 – Krea 2 (Experimental)** | `bfs_body_swap_v1_krea2.safetensors` | Replaces the person with the reference person. Pose transfer may not always match exactly. | + +--- + +## 🧠 BFS Head V5 details (2511) + +This release includes multiple variants: + +- **100% original**: direct result of training for **5,500+ steps** on model 2511 +- **Merged versions**: a merge of **BFS Head V4 (2509)** into the 2511-trained original + +In my evaluation, the **merged version performs better**, especially at reproducing a wider range of expressions. +It is not perfect yet, but it indicates we are moving in the right direction. + +--- + +## 🧪 Krea 2 Head and Body Swap + +### BFS Head Swap V1.1 + +This is the updated Krea 2 head swap release and replaces `bfs_head_swap_v1_krea2.safetensors`. + +**Trigger prompt:** + +``` +head_swap: replace the head with the reference head. +``` + +Workflow: `workflows/Head Swap Krea 2 - V1 Simple Workflow.json` + +### BFS Body Swap V1 (Experimental) + +This is an experimental version. The pose will not always be copied exactly from the original image. + +**Trigger prompt:** + +``` +body_swap: replace the person with the reference person. +``` + +To also change the background, append this below the trigger prompt: + +``` +BG: [describe the new background] +``` + +You can combine the body swap LoRA with the Krea 2 head swap LoRA to improve head identity. As a starting point, use both LoRAs at `0.5` strength, then adjust based on your own tests. + +Workflow: `workflows/Body Swap Krea 2 - V1 Simple Workflow.json` + +Feel free to experiment and post your results. + +#### Body Swap examples + +

+ + + + + + +

+ +--- + +## šŸ–¼ļø Input Structure (Control Images) + +| Version | Image 1 | Image 2 | Notes | +|---|---|---|---| +| **Face V1** | Face | Body | Standard order. Swaps face only. | +| **Head V1** | Face | Body | Standard order. Full head swap with blending. | +| **Head V2** | Face | Body | Standard order. Improved tone and alignment. | +| **Head V3** | **Body** | **Face** | āš ļø Inverted order — send body first, then face. | +| **Head V4** | **Body** | **Face** | āš ļø Inverted order — send body first, then face. | +| **Head V5** | **Body** | **Face** | āš ļø Inverted order — send body first, then face. | +| **Head V1 Flux 2 Klein 4/9b** | **Body** | **Face** | āš ļø Inverted order — send body first, then face. | +| **Krea 2 Head Swap V1.1** | Base image | Reference head | Use the included Krea 2 head workflow. | +| **Krea 2 Body Swap V1** | Base image | Reference person | Experimental full-person replacement. | +--- + +## šŸ’¬ Prompts + +### 🧠 BFS Face V1 + +**Base prompt:** +``` + +face swap face from Image 1 to Image 2. + +``` + +**Alternative:** +``` + +face swap face from Image 1 to Image 2. swap only the face (not the hair), match the skin tone to Image 2, keep Image 2 pose and lighting. + +``` + +--- + +### 🧩 BFS Head V1 – 2509 (Likely works with 2511) + +**Base prompt:** +``` + +head swap from Image 1 to Image 2 + +``` + +**Alternatives:** +``` + +head swap from Image 1 to Image 2 with perfect skin match +Head swap from Image 1 to Image 2, keep all facial details and hair from Image 1, blend naturally with Image 2’s body. +head swap face from Image 1 to Image 2, keep all facial details and hair from Image 1, blend naturally with Image 2’s body, remove all hair of Image 2 and replace by hair from Image 1 and keep the same expression and head proportion as in Image 2 + +``` + +--- + +### 🧬 BFS Head V2 – 2509 (Likely works with 2511) + +``` + +head swap, transfer head from Image 1 to Image 2 + +``` + +--- + +### ⚔ BFS Head V3 – 2509 (Recommended) (Likely works with 2511) + +``` + +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. ensure the head and body have correct anatomical proportions, and blend the skin tones, shadows, and lighting naturally so the final result appears as one coherent, realistic person. + +``` + +--- + +### ⚔ BFS Head V4 – 2509 (Likely works with 2511) + +``` + +h34d_sw4p: replace the head of Picture 1 by the head from Picture 2, strictly preserving the identity, facial features (eyes, nose, mouth), and skin texture of Picture 2. ensure the new head mimics the identical expression, angle, and rotation found in Picture 1. + +``` + +--- + +### ⚔ BFS Head V5 – 2511 (Recommended) + +``` + +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, and nose structure of Picture 2. copy the eye direction, head rotation, and micro-expressions from Picture 1. high quality, sharp details, 4k + +``` + + +### ⚔ BFS Head V1/V2 – Flux 2 Klein 4b/9b (Recommended) + +``` + +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. + +[Optional]Describe the expression in Picture 1 and copy it to the new image. + +[Optional][You can describe the facial expression or other details here.] + +``` + +

+ +--- + +## 🧾 Notes + +- Works best with **Qwen Image Edit 2509** base model (and some versions also perform well on 2511). +- Control image order: + - **Face V1 / Head V1 / Head V2** → **Image 1 = Face**, **Image 2 = Body** + - **Head V3 / Head V4 / Head V5** → **Image 1 = Body**, **Image 2 = Face** (inverted order) +- For improved alignment, you may optionally use pose or face mesh controls. +- Krea 2 Body Swap V1 is experimental; exact pose transfer is not guaranteed. +- Please **do not use or share results involving public figures or individuals who have not given consent**. + +--- + +## ā˜• Support + +If this project helped you, consider supporting my work: +https://buymeacoffee.com/nrdx + +--- diff --git a/workflows/Body Swap Krea 2 - V1 Simple Workflow.json b/workflows/Body Swap Krea 2 - V1 Simple Workflow.json new file mode 100644 index 0000000000000000000000000000000000000000..ad5edb1f610e58099e42f750a94588fd9617440f --- /dev/null +++ b/workflows/Body Swap Krea 2 - V1 Simple Workflow.json @@ -0,0 +1,2045 @@ +{ + "id": "krea2-identity-edit-unified", + "revision": 0, + "last_node_id": 145, + "last_link_id": 149, + "nodes": [ + { + "id": 105, + "type": "Note", + "pos": [ + 2800, + 490 + ], + "size": [ + 320, + 280 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Sampling", + "properties": { + "Node name for S&R": "Note", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Turbo model: 10 steps, cfg 1.\n\nStep dial:\n 8 = stronger composition/instruction adherence\n 12 = more face detail\n 10 = balanced\n\nUsing krea2_raw instead of turbo:\n40 steps, cfg 3-4 (negative then matters)." + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 56, + "type": "CLIPLoader", + "pos": [ + 60, + 30 + ], + "size": [ + 480, + 140 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 5, + 78 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "CLIPLoader", + "models": [ + { + "name": "qwen3vl_4b_fp8_scaled.safetensors", + "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/text_encoders/qwen3vl_4b_fp8_scaled.safetensors", + "directory": "text_encoders" + } + ], + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "qwen3vl_4b_fp8_scaled.safetensors", + "krea2", + "default" + ] + }, + { + "id": 57, + "type": "VAELoader", + "pos": [ + 60, + 220 + ], + "size": [ + 480, + 90 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 6, + 7, + 62, + 83 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "VAELoader", + "models": [ + { + "name": "qwen_image_vae.safetensors", + "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/vae/qwen_image_vae.safetensors", + "directory": "vae" + } + ], + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "qwen_image_vae.safetensors" + ] + }, + { + "id": 54, + "type": "VAEDecode", + "pos": [ + 3023.118788300002, + 373.56646249999983 + ], + "size": [ + 223.05128289999993, + 46 + ], + "flags": { + "collapsed": true + }, + "order": 25, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 25 + }, + { + "name": "vae", + "type": "VAE", + "link": 6 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 26, + 126 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "VAEDecode", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 55, + "type": "UNETLoader", + "pos": [ + 60, + -160 + ], + "size": [ + 480, + 130 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 112 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "UNETLoader", + "models": [ + { + "name": "krea2_turbo_fp8_scaled.safetensors", + "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/diffusion_models/krea2_turbo_fp8_scaled.safetensors", + "directory": "diffusion_models" + } + ], + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Downloads/krea2_turbo_int8_convrot.safetensors", + "default" + ] + }, + { + "id": 131, + "type": "Reroute", + "pos": [ + 658.7139613927915, + 345.33146244228845 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 141 + } + ], + "outputs": [ + { + "name": "", + "type": "MODEL", + "links": [ + 116 + ] + } + ], + "properties": { + "showOutputText": false, + "horizontal": false, + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + } + }, + { + "id": 104, + "type": "Note", + "pos": [ + 2326.5302153490475, + 223.84986514153076 + ], + "size": [ + 420, + 420 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Fidelity dial", + "properties": { + "Node name for S&R": "Note", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "THE FIDELITY DIAL (ref_boost) - how hard the model looks at your\nreference. New in this release.\n\n 1.0 = classic v1.1 behavior\n 4.0 = recommended (pre-set): much stronger face + body likeness,\n more reliable edits\n >10 = over-copy: removals/replacements start failing\n <1 = suppress the reference (creative freedom)\n\nref_boost_a: the scene dial (image 1) in two-image mode -\nleave at 1.0 unless you are exploring. ref_boost applies to the\nperson (image 2) when group 2 is enabled, else to your image.\n\nfit_mode: how inputs fit a different output aspect\nratio. fit = resample to the output shape (default, recommended); crop (legacy) = center-crop\nonly for v1/v1.1 weights." + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 138, + "type": "AddLabel", + "pos": [ + 3141.1211220407545, + 965.0756909440062 + ], + "size": [ + 270, + 270 + ], + "flags": { + "collapsed": true + }, + "order": 27, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 126 + }, + { + "name": "caption", + "shape": 7, + "type": "STRING", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 143 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "d0d61754bf7fa57f2abb4714cdf79058f5862a55", + "Node name for S&R": "AddLabel", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 10, + 2, + 48, + 32, + "white", + "black", + "FreeMono.ttf", + "Output", + "up" + ] + }, + { + "id": 120, + "type": "Krea2EditModelPatch", + "pos": [ + 2347.2840537416273, + -155.05470208261704 + ], + "size": [ + 270, + 226 + ], + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 116 + }, + { + "name": "source_latent", + "type": "LATENT", + "link": 82 + }, + { + "name": "source_latent_b", + "shape": 7, + "type": "LATENT", + "link": 136 + }, + { + "name": "ref_boost_mask", + "shape": 7, + "type": "MASK", + "link": 139 + }, + { + "name": "vae", + "shape": 7, + "type": "VAE", + "link": 83 + }, + { + "name": "source_image", + "shape": 7, + "type": "IMAGE", + "link": 103 + }, + { + "name": "source_image_b", + "shape": 7, + "type": "IMAGE", + "link": 133 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 85 + ] + } + ], + "properties": { + "cnr_id": "comfyui-krea2edit", + "ver": "1.2.2", + "Node name for S&R": "Krea2EditModelPatch", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 1, + 1, + "fit" + ] + }, + { + "id": 123, + "type": "ImageResizeKJv2", + "pos": [ + 1289.4117708936583, + -14.310868979647031 + ], + "size": [ + 270, + 336 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 96 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 98, + 100, + 102, + 103, + 107, + 124 + ] + }, + { + "name": "width", + "type": "INT", + "links": null + }, + { + "name": "height", + "type": "INT", + "links": null + }, + { + "name": "mask", + "type": "MASK", + "links": [ + 139 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "d0d61754bf7fa57f2abb4714cdf79058f5862a55", + "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": 100, + "type": "Note", + "pos": [ + 111.10690974394367, + 790.677281607609 + ], + "size": [ + 480, + 150 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Model files", + "properties": { + "Node name for S&R": "Note", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Files (auto-downloadable via the manager links):\n- krea2_turbo_fp8_scaled (or krea2_raw_bf16 - see GENERATE note)\n- qwen3vl_4b_fp8_scaled text encoder, type 'krea2'\n- qwen_image_vae\n- bfs_body_swap_v1_krea2.safetensors LoRA (active)\n- bfs_head_swap_v1.1_krea2.safetensors LoRA (optional, bypassed by default; try both at 0.5 strength)" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 137, + "type": "AddLabel", + "pos": [ + 3155.570749286721, + 823.6454971861446 + ], + "size": [ + 270, + 270 + ], + "flags": { + "collapsed": true + }, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 124 + }, + { + "name": "caption", + "shape": 7, + "type": "STRING", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 125 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "d0d61754bf7fa57f2abb4714cdf79058f5862a55", + "Node name for S&R": "AddLabel", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 10, + 2, + 48, + 32, + "white", + "black", + "FreeMono.ttf", + "Input 1 (Pose)", + "up" + ] + }, + { + "id": 143, + "type": "AddLabel", + "pos": [ + 3142.1557996654074, + 887.5006546635302 + ], + "size": [ + 270, + 270 + ], + "flags": { + "collapsed": true + }, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 144 + }, + { + "name": "caption", + "shape": 7, + "type": "STRING", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 145 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "d0d61754bf7fa57f2abb4714cdf79058f5862a55", + "Node name for S&R": "AddLabel", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 10, + 2, + 48, + 32, + "white", + "black", + "FreeMono.ttf", + "Input 2 (Person)", + "up" + ] + }, + { + "id": 125, + "type": "ImageConcatMulti", + "pos": [ + 3512.887405672789, + 892.1482789106526 + ], + "size": [ + 270, + 170 + ], + "flags": {}, + "order": 28, + "mode": 0, + "inputs": [ + { + "name": "image_1", + "type": "IMAGE,MASK", + "link": 125 + }, + { + "name": "image_2", + "shape": 7, + "type": "IMAGE,MASK", + "link": 145 + }, + { + "name": "image_3", + "shape": 7, + "type": "IMAGE,MASK", + "link": 143 + } + ], + "outputs": [ + { + "name": "output", + "type": "IMAGE", + "links": [ + 146 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "d0d61754bf7fa57f2abb4714cdf79058f5862a55", + "Node name for S&R": "ImageConcatMulti", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 3, + "right", + true, + null + ] + }, + { + "id": 135, + "type": "EmptySD3LatentImage", + "pos": [ + 1919.6352540386056, + 531.0473339768944 + ], + "size": [ + 270, + 150 + ], + "flags": {}, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 130 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 131 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 122 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "EmptySD3LatentImage", + "ue_properties": { + "widget_ue_connectable": { + "width": true, + "height": true + }, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 1536, + 1024, + 1 + ] + }, + { + "id": 121, + "type": "GetImageSize", + "pos": [ + 1711.235606549378, + 544.9289947661408 + ], + "size": [ + 140, + 124.00000000000006 + ], + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 100 + } + ], + "outputs": [ + { + "name": "width", + "type": "INT", + "links": [ + 130 + ] + }, + { + "name": "height", + "type": "INT", + "links": [ + 131 + ] + }, + { + "name": "batch_size", + "type": "INT", + "links": null + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.28.0", + "Node name for S&R": "GetImageSize", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [] + }, + { + "id": 117, + "type": "VAEEncode", + "pos": [ + 1929.2824978897122, + 416.3740261590152 + ], + "size": [ + 225, + 46 + ], + "flags": { + "collapsed": false + }, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 135 + }, + { + "name": "vae", + "type": "VAE", + "link": 62 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 136 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "VAEEncode", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 73, + "type": "VAEEncode", + "pos": [ + 1945.5648004029624, + 304.0717584707849 + ], + "size": [ + 225, + 46 + ], + "flags": { + "collapsed": false + }, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 102 + }, + { + "name": "vae", + "type": "VAE", + "link": 7 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 82 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "VAEEncode", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 140, + "type": "ImageResizeKJv2", + "pos": [ + 1280.245646513178, + 415.4115503876369 + ], + "size": [ + 270, + 336.00000000000006 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 129 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 132, + 133, + 134, + 135, + 144 + ] + }, + { + "name": "width", + "type": "INT", + "links": null + }, + { + "name": "height", + "type": "INT", + "links": null + }, + { + "name": "mask", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "d0d61754bf7fa57f2abb4714cdf79058f5862a55", + "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": 29, + "type": "SaveImage", + "pos": [ + 3208.956637385698, + -156.72367912006615 + ], + "size": [ + 760, + 860 + ], + "flags": {}, + "order": 26, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 26 + } + ], + "outputs": [ + { + "name": "images", + "type": "IMAGE", + "links": null + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "SaveImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "krea2_identity_edit" + ] + }, + { + "id": 144, + "type": "AddLabel", + "pos": [ + 3876.9072496357708, + 947.3737550275938 + ], + "size": [ + 270, + 270 + ], + "flags": { + "collapsed": true + }, + "order": 29, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 146 + }, + { + "name": "caption", + "shape": 7, + "type": "STRING", + "link": null + }, + { + "name": "text", + "type": "STRING", + "widget": { + "name": "text" + }, + "link": 148 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 149 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "d0d61754bf7fa57f2abb4714cdf79058f5862a55", + "Node name for S&R": "AddLabel", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 10, + 2, + 80, + 32, + "white", + "black", + "FreeMono.ttf", + "body_swap: replace the person with the reference person.", + "down" + ] + }, + { + "id": 119, + "type": "Krea2EditGroundedEncode", + "pos": [ + 1801.8428869513218, + 23.95583391026262 + ], + "size": [ + 400, + 206 + ], + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 78 + }, + { + "name": "image", + "shape": 7, + "type": "IMAGE", + "link": 98 + }, + { + "name": "image_b", + "shape": 7, + "type": "IMAGE", + "link": 132 + }, + { + "name": "prompt", + "type": "STRING", + "widget": { + "name": "prompt" + }, + "link": 147 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 80 + ] + } + ], + "properties": { + "cnr_id": "comfyui-krea2edit", + "ver": "1.2.2", + "Node name for S&R": "Krea2EditGroundedEncode", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + "body_swap: replace the person with the reference person.", + 0, + "" + ] + }, + { + "id": 107, + "type": "Note", + "pos": [ + 1282.2101999999995, + -206.0309099999999 + ], + "size": [ + 270, + 110 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Resolution", + "properties": { + "Node name for S&R": "Note", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Output resolution. 1MP is the\nsweet spot; go higher only for\nsingle-person edits." + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 142, + "type": "LoraLoaderModelOnly", + "pos": [ + 73.8808005146242, + 528.8403308179645 + ], + "size": [ + 480, + 120 + ], + "flags": {}, + "order": 13, + "mode": 4, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 140 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 141 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "LoraLoaderModelOnly", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Downloads/bfs_head_swap_v1.1_krea2.safetensors", + 1 + ] + }, + { + "id": 53, + "type": "KSampler", + "pos": [ + 2806.7279048807945, + -162.5532725985141 + ], + "size": [ + 320, + 463.5 + ], + "flags": {}, + "order": 24, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 85 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 80 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 23 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 122 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 25 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "KSampler", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 43, + "fixed", + 10, + 1, + "euler", + "simple", + 1 + ] + }, + { + "id": 85, + "type": "Krea2EditGroundedEncode", + "pos": [ + 2400.31489852362, + 75.31678823084216 + ], + "size": [ + 225, + 206 + ], + "flags": { + "collapsed": false + }, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 5 + }, + { + "name": "image", + "shape": 7, + "type": "IMAGE", + "link": 107 + }, + { + "name": "image_b", + "shape": 7, + "type": "IMAGE", + "link": 134 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 23 + ] + } + ], + "title": "negative (leave empty)", + "properties": { + "cnr_id": "comfyui-krea2edit", + "ver": "1.2.2", + "Node name for S&R": "Krea2EditGroundedEncode", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "", + 0, + "" + ] + }, + { + "id": 127, + "type": "LoraLoaderModelOnly", + "pos": [ + 61.632888073777835, + 360.08664804426394 + ], + "size": [ + 480, + 120 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 112 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 140 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "LoraLoaderModelOnly", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Downloads/bfs_body_swap_v1_krea2.safetensors", + 1 + ] + }, + { + "id": 72, + "type": "LoadImage", + "pos": [ + 652.1327031656946, + -144.72451452172362 + ], + "size": [ + 520, + 440 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 96 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": [] + } + ], + "title": "Body Reference", + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "LoadImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "image": "clipspace/clipspace-painted-masked-1785600202328.png [input]" + }, + "widgets_values": [ + "ds1_pexels-photo-317157.png", + "image" + ] + }, + { + "id": 126, + "type": "PreviewImage", + "pos": [ + 4199.263157225949, + 895.992659231846 + ], + "size": [ + 619.0551801415504, + 567.4594573286292 + ], + "flags": {}, + "order": 30, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 149 + } + ], + "outputs": [ + { + "name": "images", + "type": "IMAGE", + "links": null + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.28.0", + "Node name for S&R": "PreviewImage", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [] + }, + { + "id": 145, + "type": "PrimitiveNode", + "pos": [ + 1812.5191222936064, + -134.79412200880603 + ], + "size": [ + 386.45148931489985, + 88 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "widget": { + "name": "prompt" + }, + "links": [ + 147, + 148 + ] + } + ], + "title": "prompt", + "properties": { + "Run widget replace on values": false, + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "body_swap: replace the person with the reference person." + ] + }, + { + "id": 139, + "type": "LoadImage", + "pos": [ + 651.5021386779788, + 480.18441233048367 + ], + "size": [ + 520, + 440 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 129 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "title": "Body Reference", + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "LoadImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Advertising_368.jpg", + "image" + ] + } + ], + "links": [ + [ + 5, + 56, + 0, + 85, + 0, + "CLIP" + ], + [ + 6, + 57, + 0, + 54, + 1, + "VAE" + ], + [ + 7, + 57, + 0, + 73, + 1, + "VAE" + ], + [ + 23, + 85, + 0, + 53, + 2, + "CONDITIONING" + ], + [ + 25, + 53, + 0, + 54, + 0, + "LATENT" + ], + [ + 26, + 54, + 0, + 29, + 0, + "IMAGE" + ], + [ + 62, + 57, + 0, + 117, + 1, + "VAE" + ], + [ + 78, + 56, + 0, + 119, + 0, + "CLIP" + ], + [ + 80, + 119, + 0, + 53, + 1, + "CONDITIONING" + ], + [ + 82, + 73, + 0, + 120, + 1, + "LATENT" + ], + [ + 83, + 57, + 0, + 120, + 4, + "VAE" + ], + [ + 85, + 120, + 0, + 53, + 0, + "MODEL" + ], + [ + 96, + 72, + 0, + 123, + 0, + "IMAGE" + ], + [ + 98, + 123, + 0, + 119, + 1, + "IMAGE" + ], + [ + 100, + 123, + 0, + 121, + 0, + "IMAGE" + ], + [ + 102, + 123, + 0, + 73, + 0, + "IMAGE" + ], + [ + 103, + 123, + 0, + 120, + 5, + "IMAGE" + ], + [ + 107, + 123, + 0, + 85, + 1, + "IMAGE" + ], + [ + 112, + 55, + 0, + 127, + 0, + "MODEL" + ], + [ + 116, + 131, + 0, + 120, + 0, + "MODEL" + ], + [ + 122, + 135, + 0, + 53, + 3, + "LATENT" + ], + [ + 124, + 123, + 0, + 137, + 0, + "IMAGE" + ], + [ + 125, + 137, + 0, + 125, + 0, + "IMAGE" + ], + [ + 126, + 54, + 0, + 138, + 0, + "IMAGE" + ], + [ + 129, + 139, + 0, + 140, + 0, + "IMAGE" + ], + [ + 130, + 121, + 0, + 135, + 0, + "INT" + ], + [ + 131, + 121, + 1, + 135, + 1, + "INT" + ], + [ + 132, + 140, + 0, + 119, + 2, + "IMAGE" + ], + [ + 133, + 140, + 0, + 120, + 6, + "IMAGE" + ], + [ + 134, + 140, + 0, + 85, + 2, + "IMAGE" + ], + [ + 135, + 140, + 0, + 117, + 0, + "IMAGE" + ], + [ + 136, + 117, + 0, + 120, + 2, + "LATENT" + ], + [ + 139, + 123, + 3, + 120, + 3, + "MASK" + ], + [ + 140, + 127, + 0, + 142, + 0, + "MODEL" + ], + [ + 141, + 142, + 0, + 131, + 0, + "MODEL" + ], + [ + 143, + 138, + 0, + 125, + 2, + "IMAGE" + ], + [ + 144, + 140, + 0, + 143, + 0, + "IMAGE" + ], + [ + 145, + 143, + 0, + 125, + 1, + "IMAGE" + ], + [ + 146, + 125, + 0, + 144, + 0, + "IMAGE" + ], + [ + 147, + 145, + 0, + 119, + 3, + "STRING" + ], + [ + 148, + 145, + 0, + 144, + 2, + "STRING" + ], + [ + 149, + 144, + 0, + 126, + 0, + "IMAGE" + ] + ], + "groups": [ + { + "id": 1, + "title": "MODELS", + "bounding": [ + 40, + -240, + 540, + 950 + ], + "color": "#3f789e", + "flags": {} + }, + { + "id": 2, + "title": "1 Ā· POSE REFERENCE", + "bounding": [ + 620, + -240, + 563.6492009173453, + 604.1954649698325 + ], + "color": "#8A8", + "flags": {} + }, + { + "id": 4, + "title": "3 Ā· INSTRUCTION", + "bounding": [ + 1600, + -240, + 680, + 930 + ], + "color": "#b58b2a", + "flags": {} + }, + { + "id": 5, + "title": "4 Ā· FIDELITY", + "bounding": [ + 2300, + -240, + 460, + 910 + ], + "color": "#c15f3c", + "flags": {} + }, + { + "id": 6, + "title": "5 Ā· GENERATE", + "bounding": [ + 2780, + -240, + 1200, + 1030 + ], + "color": "#3f789e", + "flags": {} + }, + { + "id": 7, + "title": "1 Ā· CHARACTER REFERENCE", + "bounding": [ + 628.0436461623126, + 387.41067172086974, + 563.6492009173453, + 604.1954649698325 + ], + "color": "#8A8", + "flags": {} + } + ], + "config": {}, + "extra": { + "frontendVersion": "1.45.20", + "ds": { + "scale": 0.3138428376721523, + "offset": [ + 687.7402899320481, + 794.8088385831009 + ] + }, + "VHS_latentpreview": true, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true, + "ue_links": [], + "links_added_by_ue": [] + }, + "version": 0.4 +} diff --git a/workflows/Body Swap Qwen Image 2.1 - V1.json b/workflows/Body Swap Qwen Image 2.1 - V1.json new file mode 100644 index 0000000000000000000000000000000000000000..056f5f17e82dc3622f4efb0ea6e13079c13b7795 --- /dev/null +++ b/workflows/Body Swap Qwen Image 2.1 - V1.json @@ -0,0 +1,2718 @@ +{ + "id": "54bb395d-3e60-4c94-b525-85523901575b", + "revision": 0, + "last_node_id": 545, + "last_link_id": 881, + "nodes": [ + { + "id": 472, + "type": "ImageCompare", + "pos": [ + 9296.368908118156, + 2564.443312668747 + ], + "size": [ + 660, + 760 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [ + { + "name": "image_a", + "shape": 7, + "type": "IMAGE", + "link": null + }, + { + "name": "image_b", + "shape": 7, + "type": "IMAGE", + "link": null + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "ImageCompare", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [], + "widgets_values_named": {} + }, + { + "id": 514, + "type": "GetNode", + "pos": [ + 3376.9188156397736, + 2624.337951069355 + ], + "size": [ + 210, + 60 + ], + "flags": { + "collapsed": true + }, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 820 + ] + } + ], + "title": "Get_width", + "properties": { + "Node name for S&R": "GetNode", + "aux_id": "kijai/ComfyUI-KJNodes", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "width" + ], + "widgets_values_named": { + "Constant": "width" + }, + "color": "#1b4669", + "bgcolor": "#29699c" + }, + { + "id": 515, + "type": "GetNode", + "pos": [ + 3380.726997985999, + 2675.818839566489 + ], + "size": [ + 210, + 60 + ], + "flags": { + "collapsed": true + }, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 821 + ] + } + ], + "title": "Get_height", + "properties": { + "Node name for S&R": "GetNode", + "aux_id": "kijai/ComfyUI-KJNodes", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "height" + ], + "widgets_values_named": { + "Constant": "height" + }, + "color": "#1b4669", + "bgcolor": "#29699c" + }, + { + "id": 485, + "type": "VAELoader", + "pos": [ + 2821.405479431937, + 2392.4917588838603 + ], + "size": [ + 510, + 70 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 754, + 774 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "VAELoader", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "models": [ + { + "name": "qwen_image_2.1_vae_bf16.safetensors", + "url": "https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors", + "directory": "vae" + } + ] + }, + "widgets_values": [ + "qwen_image_2.1_vae_bf16.safetensors" + ], + "widgets_values_named": { + "vae_name": "qwen_image_2.1_vae_bf16.safetensors" + } + }, + { + "id": 484, + "type": "CLIPLoader", + "pos": [ + 2822.847578793, + 2211.2390505776975 + ], + "size": [ + 510, + 120 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 772 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "CLIPLoader", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "models": [ + { + "name": "qwen3vl_8b_int8_convrot.safetensors", + "url": "https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors", + "directory": "text_encoders" + } + ] + }, + "widgets_values": [ + "qwen3vl_8b_int8_convrot.safetensors", + "qwen_image", + "default" + ], + "widgets_values_named": { + "clip_name": "qwen3vl_8b_int8_convrot.safetensors", + "type": "qwen_image", + "device": "default" + } + }, + { + "id": 491, + "type": "UNETLoader", + "pos": [ + 2819.8136501611643, + 1796.6143839671583 + ], + "size": [ + 510, + 90 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 770 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "UNETLoader", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "models": [ + { + "name": "qwen_image_2.1_int8_convrot.safetensors", + "url": "https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors", + "directory": "diffusion_models" + } + ] + }, + "widgets_values": [ + "qwen_image_2.1_int8_convrot.safetensors", + "default" + ], + "widgets_values_named": { + "unet_name": "qwen_image_2.1_int8_convrot.safetensors", + "weight_dtype": "default" + } + }, + { + "id": 463, + "type": "MarkdownNote", + "pos": [ + 1017.2388238307908, + 1731.7549997274505 + ], + "size": [ + 420, + 620 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Note: Usage", + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "## Size\nQwen Image 2.1 has native 2K (2048*2048) support for direct output.\n\n- resolution is a total pixel budget (not width or height). Aspect ratio is preserved.\n- Official default is 1024. The model supports up to 2048.\n- This template starts at 0: no resize beyond a multiple of 32.\n- Output follows image_1. Extra refs can differ in size or aspect.\n- custom_size off: canvas comes from the encode latent (image_1).\n- custom_size on: use ResolutionSelector width/height. Keep it close to the resized image_1 size, or the edit can shift.\n\n## Reference images\n- Up to 10 reference images (image_1 to image_10).\n- Mention them in the prompt as ``, ``, ...\n- image_1 is the edit target. The rest are references.\n\n## Custom settings\nIf you need custom settings, enter or unpack the subgraph to edit it. See the [Subgraph](https://docs.comfy.org/interface/features/subgraph) guide.\n\n## Parameters\n- prompt: edit instruction. Use `` ... ``.\n- negative_prompt: unused while cfg is 1.\n- cfg: keep 1 for the Qwen Image 2.1 official path. Raise it only if you use a negative prompt.\n- steps: Qwen Image 2.1 official pipeline uses about 40-50 with euler. This template starts at 25. More advanced samplers need fewer steps." + ], + "widgets_values_named": { + "text": "## Size\nQwen Image 2.1 has native 2K (2048*2048) support for direct output.\n\n- resolution is a total pixel budget (not width or height). Aspect ratio is preserved.\n- Official default is 1024. The model supports up to 2048.\n- This template starts at 0: no resize beyond a multiple of 32.\n- Output follows image_1. Extra refs can differ in size or aspect.\n- custom_size off: canvas comes from the encode latent (image_1).\n- custom_size on: use ResolutionSelector width/height. Keep it close to the resized image_1 size, or the edit can shift.\n\n## Reference images\n- Up to 10 reference images (image_1 to image_10).\n- Mention them in the prompt as ``, ``, ...\n- image_1 is the edit target. The rest are references.\n\n## Custom settings\nIf you need custom settings, enter or unpack the subgraph to edit it. See the [Subgraph](https://docs.comfy.org/interface/features/subgraph) guide.\n\n## Parameters\n- prompt: edit instruction. Use `` ... ``.\n- negative_prompt: unused while cfg is 1.\n- cfg: keep 1 for the Qwen Image 2.1 official path. Raise it only if you use a negative prompt.\n- steps: Qwen Image 2.1 official pipeline uses about 40-50 with euler. This template starts at 25. More advanced samplers need fewer steps." + }, + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 487, + "type": "VAEDecode", + "pos": [ + 4623.222809828765, + 1823.4029448711992 + ], + "size": [ + 230, + 60 + ], + "flags": {}, + "order": 31, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 756 + }, + { + "name": "vae", + "type": "VAE", + "link": 754 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 755 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "VAEDecode", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + } + }, + { + "id": 498, + "type": "ImageConcatMulti", + "pos": [ + 5665.770903183726, + 1842.7341556635074 + ], + "size": [ + 270, + 170 + ], + "flags": { + "collapsed": true + }, + "order": 34, + "mode": 0, + "inputs": [ + { + "name": "image_1", + "type": "IMAGE,MASK", + "link": 810 + }, + { + "name": "image_2", + "shape": 7, + "type": "IMAGE,MASK", + "link": 816 + }, + { + "name": "image_3", + "shape": 7, + "type": "IMAGE,MASK", + "link": 791 + } + ], + "outputs": [ + { + "name": "output", + "type": "IMAGE", + "links": [ + 793 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "60cd6bc1870db94c6eeb05fbe455147a8e91c4e9", + "Node name for S&R": "ImageConcatMulti", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 3, + "right", + true, + null + ], + "widgets_values_named": { + "inputcount": 3, + "direction": "right", + "match_image_size": true, + "Update inputs": null + } + }, + { + "id": 508, + "type": "GetNode", + "pos": [ + 5332.234517529806, + 1828.2237697555313 + ], + "size": [ + 210, + 58 + ], + "flags": { + "collapsed": true + }, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 810 + ] + } + ], + "title": "Get_scene_reference", + "properties": { + "Node name for S&R": "GetNode", + "aux_id": "kijai/ComfyUI-KJNodes", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "scene_reference" + ], + "widgets_values_named": { + "Constant": "scene_reference" + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 511, + "type": "GetNode", + "pos": [ + 5334.723141975721, + 1881.3244001707715 + ], + "size": [ + 210, + 58 + ], + "flags": { + "collapsed": true + }, + "order": 8, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 816 + ] + } + ], + "title": "Get_new_body_reference", + "properties": { + "Node name for S&R": "GetNode", + "aux_id": "kijai/ComfyUI-KJNodes", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "new_body_reference" + ], + "widgets_values_named": { + "Constant": "new_body_reference" + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 516, + "type": "Note", + "pos": [ + 4112.577645827912, + 2543.6690459261044 + ], + "size": [ + 402.9878624440562, + 88 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "To use res_2m/res_2s/deis_2m, you need res4lyf nodes installed.\n\nhttps://github.com/ClownsharkBatwing/RES4LYF" + ], + "widgets_values_named": { + "text": "To use res_2m/res_2s/deis_2m, you need res4lyf nodes installed.\n\nhttps://github.com/ClownsharkBatwing/RES4LYF" + }, + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 507, + "type": "GetNode", + "pos": [ + 5343.9563297190725, + 1933.4550971039575 + ], + "size": [ + 210, + 58 + ], + "flags": { + "collapsed": true + }, + "order": 10, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 809 + ] + } + ], + "title": "Get_scene_reference", + "properties": { + "Node name for S&R": "GetNode", + "aux_id": "kijai/ComfyUI-KJNodes", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "scene_reference" + ], + "widgets_values_named": { + "Constant": "scene_reference" + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 499, + "type": "AddLabel", + "pos": [ + 5979.144990335831, + 1838.6605769221933 + ], + "size": [ + 270, + 270 + ], + "flags": { + "collapsed": true + }, + "order": 35, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 793 + }, + { + "name": "caption", + "shape": 7, + "type": "STRING", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 794 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "60cd6bc1870db94c6eeb05fbe455147a8e91c4e9", + "Node name for S&R": "AddLabel", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 10, + 2, + 82, + 24, + "white", + "black", + "FreeMono.ttf", + "body_swap: start with as the base image, keeping its lighting, environment, and background. replace the body from with the body from , strictly preserving pose, background, lightning and structure from . copy the pose, direction of the eye, head rotation, micro expressions from ", + "down" + ], + "widgets_values_named": { + "text_x": 10, + "text_y": 2, + "height": 82, + "font_size": 24, + "font_color": "white", + "label_color": "black", + "font": "FreeMono.ttf", + "text": "body_swap: start with as the base image, keeping its lighting, environment, and background. replace the body from with the body from , strictly preserving pose, background, lightning and structure from . copy the pose, direction of the eye, head rotation, micro expressions from ", + "direction": "down" + } + }, + { + "id": 486, + "type": "EmptyLatentImage", + "pos": [ + 3564.0211792895375, + 2594.8540561338486 + ], + "size": [ + 300, + 120 + ], + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 820 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 821 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "EmptyLatentImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 1024, + 1024, + 1 + ], + "widgets_values_named": { + "width": 1024, + "height": 1024, + "batch_size": 1 + } + }, + { + "id": 476, + "type": "MarkdownNote", + "pos": [ + 572.0659855390135, + 1726.582161435673 + ], + "size": [ + 420, + 620 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Note: Model links", + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Input Assets\n\n- [portrait_model_denim.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/portrait_model_denim.png)\n- [clothing_light_blue_denim_shirt.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/clothing_light_blue_denim_shirt.png)\n\n\n## Model Links\n\n- [Hugging Face:Comfy-Org/Qwen-Image-2.1](https://huggingface.co/Comfy-Org/Qwen-Image-2.1)\n- [ModelScope:Comfy-Org/Qwen-Image-2.1](https://modelscope.cn/models/Comfy-Org/Qwen-Image-2.1)\n\n**diffusion_models**\n\n- [qwen_image_2.1_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_bf16.safetensors)\n- [qwen_image_2.1_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors)\n\n**text_encoders**\n\n- [qwen3vl_8b_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_bf16.safetensors)\n- [qwen3vl_8b_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors) \n\n**vae**\n\n- [qwen_image_2.1_vae_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors)\n\n**loras**\n\n- [p_qwen_image_2.1_5step_v0.1.safetensors](https://huggingface.co/PrunaAI/Pruna-Qwen-Image-2.1/blob/main/p_qwen_image_2.1_5step_v0.1.safetensors)\n\n- [p_qwen_image_2.1_8step_v0.1.safetensors](https://huggingface.co/PrunaAI/Pruna-Qwen-Image-2.1/blob/main/p_qwen_image_2.1_8step_v0.1.safetensors)\n\n**background_removal**\n\n- [birefnet/lucida](https://huggingface.co/Comfy-Org/BiRefNet)\n\n\n## Model Storage Location\n\n```\nšŸ“‚ ComfyUI/\nā”œā”€ā”€ šŸ“‚ models/\n│ ā”œā”€ā”€ šŸ“‚ diffusion_models/\n│ │ ā”œā”€ā”€ qwen_image_2.1_bf16.safetensors\n│ │ └── qwen_image_2.1_int8_convrot.safetensors\n│ ā”œā”€ā”€ šŸ“‚ text_encoders/\n│ │ ā”œā”€ā”€ qwen3vl_8b_bf16.safetensors\n│ │ └── qwen3vl_8b_int8_convrot.safetensors\n│ └── šŸ“‚ vae/\n│ └── qwen_image_2.1_vae_bf16.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\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" + ], + "widgets_values_named": { + "text": "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Input Assets\n\n- [portrait_model_denim.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/portrait_model_denim.png)\n- [clothing_light_blue_denim_shirt.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/clothing_light_blue_denim_shirt.png)\n\n\n## Model Links\n\n- [Hugging Face:Comfy-Org/Qwen-Image-2.1](https://huggingface.co/Comfy-Org/Qwen-Image-2.1)\n- [ModelScope:Comfy-Org/Qwen-Image-2.1](https://modelscope.cn/models/Comfy-Org/Qwen-Image-2.1)\n\n**diffusion_models**\n\n- [qwen_image_2.1_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_bf16.safetensors)\n- [qwen_image_2.1_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors)\n\n**text_encoders**\n\n- [qwen3vl_8b_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_bf16.safetensors)\n- [qwen3vl_8b_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors) \n\n**vae**\n\n- [qwen_image_2.1_vae_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors)\n\n**loras**\n\n- [p_qwen_image_2.1_5step_v0.1.safetensors](https://huggingface.co/PrunaAI/Pruna-Qwen-Image-2.1/blob/main/p_qwen_image_2.1_5step_v0.1.safetensors)\n\n- [p_qwen_image_2.1_8step_v0.1.safetensors](https://huggingface.co/PrunaAI/Pruna-Qwen-Image-2.1/blob/main/p_qwen_image_2.1_8step_v0.1.safetensors)\n\n**background_removal**\n\n- [birefnet/lucida](https://huggingface.co/Comfy-Org/BiRefNet)\n\n\n## Model Storage Location\n\n```\nšŸ“‚ ComfyUI/\nā”œā”€ā”€ šŸ“‚ models/\n│ ā”œā”€ā”€ šŸ“‚ diffusion_models/\n│ │ ā”œā”€ā”€ qwen_image_2.1_bf16.safetensors\n│ │ └── qwen_image_2.1_int8_convrot.safetensors\n│ ā”œā”€ā”€ šŸ“‚ text_encoders/\n│ │ ā”œā”€ā”€ qwen3vl_8b_bf16.safetensors\n│ │ └── qwen3vl_8b_int8_convrot.safetensors\n│ └── šŸ“‚ vae/\n│ └── qwen_image_2.1_vae_bf16.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\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" + }, + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 461, + "type": "SaveImageAdvanced", + "pos": [ + 4625.726219284064, + 1948.1822713144286 + ], + "size": [ + 534.5207875789044, + 342 + ], + "flags": {}, + "order": 32, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 755 + } + ], + "outputs": [ + { + "name": "images", + "type": "IMAGE", + "links": [ + 744, + 791 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "SaveImageAdvanced", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Qwen_image_2.1", + "png", + "8-bit", + "sRGB" + ], + "widgets_values_named": { + "filename_prefix": "Qwen_image_2.1", + "format": "png", + "format.bit_depth": "8-bit", + "format.input_color_space": "sRGB" + } + }, + { + "id": 480, + "type": "Image Comparer (rgthree)", + "pos": [ + 5625.511760146177, + 1905.2402170386895 + ], + "size": [ + 501.51692088861034, + 451.8398162306071 + ], + "flags": {}, + "order": 33, + "mode": 0, + "inputs": [ + { + "dir": 3, + "name": "image_a", + "type": "IMAGE", + "link": 809 + }, + { + "dir": 3, + "name": "image_b", + "type": "IMAGE", + "link": 744 + } + ], + "outputs": [ + { + "dir": 4, + "name": "images", + "shape": 3, + "type": "IMAGE", + "links": null + } + ], + "properties": { + "cnr_id": "rgthree-comfy", + "ver": "8ff50e4521881eca1fe26aec9615fc9362474931", + "comparer_mode": "Slide", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + [ + { + "name": "A", + "selected": true, + "url": "/api/view?filename=rgthree.compare._temp_kfebj_00007_.png&type=temp&subfolder=&rand=0.9469545526239541" + }, + { + "name": "B", + "selected": true, + "url": "/api/view?filename=rgthree.compare._temp_kfebj_00008_.png&type=temp&subfolder=&rand=0.6247896857205926" + } + ] + ], + "widgets_values_named": { + "rgthree_comparer": { + "images": [ + { + "name": "A", + "selected": true, + "url": "/api/view?filename=rgthree.compare._temp_kfebj_00007_.png&type=temp&subfolder=&rand=0.9469545526239541", + "img": {} + }, + { + "name": "B", + "selected": true, + "url": "/api/view?filename=rgthree.compare._temp_kfebj_00008_.png&type=temp&subfolder=&rand=0.6247896857205926", + "img": {} + } + ] + } + } + }, + { + "id": 530, + "type": "Note", + "pos": [ + 1502.703941943872, + 1603.2110812121748 + ], + "size": [ + 518.6520292347393, + 88 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "The resolution of the input and output images completely changes the LoRa result; in some cases, adjustments may be necessary." + ], + "widgets_values_named": { + "text": "The resolution of the input and output images completely changes the LoRa result; in some cases, adjustments may be necessary." + }, + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 512, + "type": "SetNode", + "pos": [ + 1933.0639888375122, + 2307.113537462195 + ], + "size": [ + 210, + 60 + ], + "flags": { + "collapsed": true + }, + "order": 26, + "mode": 0, + "inputs": [ + { + "name": "INT", + "type": "INT", + "link": 817 + } + ], + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": null + } + ], + "title": "Set_width", + "properties": { + "Node name for S&R": "SetNode", + "aux_id": "kijai/ComfyUI-KJNodes", + "previousName": "width", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "width" + ], + "widgets_values_named": { + "Constant": "width" + }, + "color": "#1b4669", + "bgcolor": "#29699c" + }, + { + "id": 513, + "type": "SetNode", + "pos": [ + 1930.633005766238, + 2351.7235971853293 + ], + "size": [ + 210, + 50 + ], + "flags": { + "collapsed": true + }, + "order": 27, + "mode": 0, + "inputs": [ + { + "name": "INT", + "type": "INT", + "link": 819 + } + ], + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [] + } + ], + "title": "Set_height", + "properties": { + "Node name for S&R": "SetNode", + "aux_id": "kijai/ComfyUI-KJNodes", + "previousName": "height", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "height" + ], + "widgets_values_named": { + "Constant": "height" + }, + "color": "#1b4669", + "bgcolor": "#29699c" + }, + { + "id": 506, + "type": "GetNode", + "pos": [ + 3374.4588063682263, + 1852.711284475692 + ], + "size": [ + 210, + 60 + ], + "flags": { + "collapsed": true + }, + "order": 13, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 807 + ] + } + ], + "title": "Get_scene_reference", + "properties": { + "Node name for S&R": "GetNode", + "aux_id": "kijai/ComfyUI-KJNodes", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "scene_reference" + ], + "widgets_values_named": { + "Constant": "scene_reference" + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 509, + "type": "SetNode", + "pos": [ + 2552.258691989275, + 2576.2563097468337 + ], + "size": [ + 210, + 50 + ], + "flags": { + "collapsed": true + }, + "order": 29, + "mode": 0, + "inputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "link": 848 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [] + } + ], + "title": "Set_new_body_reference", + "properties": { + "Node name for S&R": "SetNode", + "aux_id": "kijai/ComfyUI-KJNodes", + "previousName": "new_body_reference", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "new_body_reference" + ], + "widgets_values_named": { + "Constant": "new_body_reference" + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 477, + "type": "ImageResizeKJv2", + "pos": [ + 1675.9348110519152, + 2283.5383581173583 + ], + "size": [ + 290.6913531671082, + 336 + ], + "flags": { + "collapsed": true + }, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 731 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + }, + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 735 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 736 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 849 + ] + }, + { + "name": "width", + "type": "INT", + "links": [ + 817 + ] + }, + { + "name": "height", + "type": "INT", + "links": [ + 819 + ] + }, + { + "name": "mask", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "60cd6bc1870db94c6eeb05fbe455147a8e91c4e9", + "Node name for S&R": "ImageResizeKJv2", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 512, + 512, + "lanczos", + "resize", + "0, 0, 0", + "center", + 32, + "cpu" + ], + "widgets_values_named": { + "width": 512, + "height": 512, + "upscale_method": "lanczos", + "keep_proportion": "resize", + "pad_color": "0, 0, 0", + "crop_position": "center", + "divisible_by": 32, + "device": "cpu" + } + }, + { + "id": 536, + "type": "ImageResizeKJv2", + "pos": [ + 1683.4959170519514, + 2407.603389835504 + ], + "size": [ + 290.6913531671082, + 336 + ], + "flags": { + "collapsed": true + }, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 860 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + }, + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 858 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 859 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 864 + ] + }, + { + "name": "width", + "type": "INT", + "links": [] + }, + { + "name": "height", + "type": "INT", + "links": [] + }, + { + "name": "mask", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "60cd6bc1870db94c6eeb05fbe455147a8e91c4e9", + "Node name for S&R": "ImageResizeKJv2", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 512, + 512, + "lanczos", + "resize", + "0, 0, 0", + "center", + 32, + "cpu" + ], + "widgets_values_named": { + "width": 512, + "height": 512, + "upscale_method": "lanczos", + "keep_proportion": "resize", + "pad_color": "0, 0, 0", + "crop_position": "center", + "divisible_by": 32, + "device": "cpu" + } + }, + { + "id": 529, + "type": "ece7caac-9a4c-4aec-9547-0e8583475e4a", + "pos": [ + 2395.417844393985, + 2380.8648477203183 + ], + "size": [ + 349.609375, + 145.9375 + ], + "flags": {}, + "order": 24, + "mode": 4, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 864 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 848 + ] + }, + { + "name": "mask", + "type": "MASK", + "links": [] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "previewExposures": [] + }, + "widgets_values": [ + "birefnet.safetensors" + ], + "widgets_values_named": { + "bg_removal_name": "birefnet.safetensors" + } + }, + { + "id": 505, + "type": "SetNode", + "pos": [ + 2141.4941969886004, + 2327.1212296336057 + ], + "size": [ + 210, + 60 + ], + "flags": { + "collapsed": true + }, + "order": 25, + "mode": 0, + "inputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "link": 849 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [] + } + ], + "title": "Set_scene_reference", + "properties": { + "Node name for S&R": "SetNode", + "aux_id": "kijai/ComfyUI-KJNodes", + "previousName": "scene_reference", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "scene_reference" + ], + "widgets_values_named": { + "Constant": "scene_reference" + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 493, + "type": "LoraLoaderModelOnly", + "pos": [ + 2827.2680684663615, + 2071.5269233499803 + ], + "size": [ + 500.1102810387763, + 82 + ], + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 800 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 832 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "LoraLoaderModelOnly", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + "Downloads/bfs_body_swap_v1.0_qwen_2.1.safetensors", + 1 + ], + "widgets_values_named": { + "lora_name": "Downloads/bfs_body_swap_v1.0_qwen_2.1.safetensors", + "strength_model": 1 + } + }, + { + "id": 13, + "type": "ResolutionSelector", + "pos": [ + 1522.9765003175148, + 1794.7638243639917 + ], + "size": [ + 300, + 190 + ], + "flags": {}, + "order": 14, + "mode": 0, + "showAdvanced": true, + "inputs": [], + "outputs": [ + { + "name": "width", + "type": "INT", + "links": [ + 735, + 858 + ] + }, + { + "name": "height", + "type": "INT", + "links": [ + 736, + 859 + ] + } + ], + "title": "Output Resolution", + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "ResolutionSelector", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "1:1 (Square)", + 1.5, + 32 + ], + "widgets_values_named": { + "aspect_ratio": "1:1 (Square)", + "megapixels": 1.5, + "multiple": 32 + } + }, + { + "id": 495, + "type": "QwenImage21Cache", + "pos": [ + 3776.508281759993, + 2253.52584824611 + ], + "size": [ + 270, + 90 + ], + "flags": {}, + "order": 28, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 832 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 833 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "QwenImage21Cache", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "gpu", + "default" + ], + "widgets_values_named": { + "device": "gpu", + "dtype": "default" + } + }, + { + "id": 492, + "type": "LoraLoaderModelOnly", + "pos": [ + 2823.6038451694467, + 1935.5057001458101 + ], + "size": [ + 500.1102810387763, + 82 + ], + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 770 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 800 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "LoraLoaderModelOnly", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + "Downloads/p_qwen_image_2.1_8step_v0.1.safetensors", + 1 + ], + "widgets_values_named": { + "lora_name": "Downloads/p_qwen_image_2.1_8step_v0.1.safetensors", + "strength_model": 1 + } + }, + { + "id": 490, + "type": "KSampler", + "pos": [ + 4193.518333768549, + 1812.297418710113 + ], + "size": [ + 270, + 590.516129032258 + ], + "flags": {}, + "order": 30, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 833 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 775 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 776 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 850 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 756 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "KSampler", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 42, + "fixed", + 8, + 1, + "deis_2m", + "simple", + 1 + ], + "widgets_values_named": { + "seed": 42, + "control_after_generate": "fixed", + "steps": 8, + "cfg": 1, + "sampler_name": "deis_2m", + "scheduler": "simple", + "denoise": 1 + } + }, + { + "id": 475, + "type": "LoadImage", + "pos": [ + 2330.249845072757, + 1799.8939726136825 + ], + "size": [ + 423.1802054561417, + 426.5400906339896 + ], + "flags": { + "collapsed": false + }, + "order": 15, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 860 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": [] + } + ], + "title": "New Body Reference (Preferably in a neutral pose)", + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "LoadImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "pexels-oscar-steiner-982093-32408084.jpg", + "image" + ], + "widgets_values_named": { + "image": "pexels-oscar-steiner-982093-32408084.jpg", + "upload": "image" + } + }, + { + "id": 470, + "type": "LoadImage", + "pos": [ + 1853.5478417319327, + 1791.48402693924 + ], + "size": [ + 419.1713642570967, + 422.94296826078767 + ], + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 731 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "title": "Scene Reference", + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "LoadImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "1266706140451585.jpg", + "image" + ], + "widgets_values_named": { + "image": "1266706140451585.jpg", + "upload": "image" + } + }, + { + "id": 500, + "type": "PreviewImage", + "pos": [ + 6146.798217773378, + 1896.216536855464 + ], + "size": [ + 521.0446866020411, + 501.1470883366103 + ], + "flags": {}, + "order": 36, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 794 + } + ], + "outputs": [ + { + "name": "images", + "type": "IMAGE", + "links": null + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "PreviewImage", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [], + "widgets_values_named": {} + }, + { + "id": 510, + "type": "GetNode", + "pos": [ + 3345.3533567838745, + 1890.2335362110705 + ], + "size": [ + 226.4185546875, + 60 + ], + "flags": { + "collapsed": true + }, + "order": 17, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 881 + ] + } + ], + "title": "Get_new_body_reference", + "properties": { + "Node name for S&R": "GetNode", + "aux_id": "kijai/ComfyUI-KJNodes", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "new_body_reference" + ], + "widgets_values_named": { + "Constant": "new_body_reference" + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 496, + "type": "TextEncodeQwenImage21", + "pos": [ + 3560.250266815009, + 1798.0310985122328 + ], + "size": [ + 491.46398605959075, + 246 + ], + "flags": {}, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 772 + }, + { + "name": "images.image_1", + "shape": 7, + "type": "IMAGE", + "link": 807 + }, + { + "name": "images.image_2", + "shape": 7, + "type": "IMAGE", + "link": 881 + }, + { + "name": "images.image_3", + "shape": 7, + "type": "IMAGE", + "link": null + }, + { + "name": "vae", + "shape": 7, + "type": "VAE", + "link": 774 + } + ], + "outputs": [ + { + "name": "positive", + "type": "CONDITIONING", + "links": [ + 775 + ] + }, + { + "name": "negative", + "type": "CONDITIONING", + "links": [ + 776 + ] + }, + { + "name": "latent", + "type": "LATENT", + "links": [ + 850 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "TextEncodeQwenImage21", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "body_swap: start with as the base image, keeping its lighting, environment, and background. replace the body from with the body from , strictly preserving the clothing, body shape and proportions from . strictly replicate the exact pose, arm positions, leg positions, hand gestures, head rotation, eye direction and micro expressions from ", + "", + 0 + ], + "widgets_values_named": { + "prompt": "body_swap: start with as the base image, keeping its lighting, environment, and background. replace the body from with the body from , strictly preserving the clothing, body shape and proportions from . strictly replicate the exact pose, arm positions, leg positions, hand gestures, head rotation, eye direction and micro expressions from ", + "negative_prompt": "", + "resolution": 0 + } + } + ], + "links": [ + [ + 731, + 470, + 0, + 477, + 0, + "IMAGE" + ], + [ + 735, + 13, + 0, + 477, + 2, + "INT" + ], + [ + 736, + 13, + 1, + 477, + 3, + "INT" + ], + [ + 744, + 461, + 0, + 480, + 1, + "IMAGE" + ], + [ + 754, + 485, + 0, + 487, + 1, + "VAE" + ], + [ + 755, + 487, + 0, + 461, + 0, + "IMAGE" + ], + [ + 756, + 490, + 0, + 487, + 0, + "LATENT" + ], + [ + 770, + 491, + 0, + 492, + 0, + "MODEL" + ], + [ + 772, + 484, + 0, + 496, + 0, + "CLIP" + ], + [ + 774, + 485, + 0, + 496, + 4, + "VAE" + ], + [ + 775, + 496, + 0, + 490, + 1, + "CONDITIONING" + ], + [ + 776, + 496, + 1, + 490, + 2, + "CONDITIONING" + ], + [ + 791, + 461, + 0, + 498, + 2, + "IMAGE" + ], + [ + 793, + 498, + 0, + 499, + 0, + "IMAGE" + ], + [ + 794, + 499, + 0, + 500, + 0, + "IMAGE" + ], + [ + 800, + 492, + 0, + 493, + 0, + "MODEL" + ], + [ + 807, + 506, + 0, + 496, + 1, + "IMAGE" + ], + [ + 809, + 507, + 0, + 480, + 0, + "IMAGE" + ], + [ + 810, + 508, + 0, + 498, + 0, + "IMAGE" + ], + [ + 816, + 511, + 0, + 498, + 1, + "IMAGE" + ], + [ + 817, + 477, + 1, + 512, + 0, + "INT" + ], + [ + 819, + 477, + 2, + 513, + 0, + "INT" + ], + [ + 820, + 514, + 0, + 486, + 0, + "INT" + ], + [ + 821, + 515, + 0, + 486, + 1, + "INT" + ], + [ + 832, + 493, + 0, + 495, + 0, + "MODEL" + ], + [ + 833, + 495, + 0, + 490, + 0, + "MODEL" + ], + [ + 848, + 529, + 0, + 509, + 0, + "IMAGE" + ], + [ + 849, + 477, + 0, + 505, + 0, + "IMAGE" + ], + [ + 850, + 496, + 2, + 490, + 3, + "LATENT" + ], + [ + 858, + 13, + 0, + 536, + 2, + "INT" + ], + [ + 859, + 13, + 1, + 536, + 3, + "INT" + ], + [ + 860, + 475, + 0, + 536, + 0, + "IMAGE" + ], + [ + 864, + 536, + 0, + 529, + 0, + "IMAGE" + ], + [ + 881, + 510, + 0, + 496, + 2, + "IMAGE" + ] + ], + "groups": [ + { + "id": 34, + "title": "Models", + "bounding": [ + 2812.8475787930015, + 1706.176854724099, + 527.6032308619097, + 1055.3236429341985 + ], + "color": "#3f789e", + "flags": {} + }, + { + "id": 35, + "title": "Image Size", + "bounding": [ + 3360.698035328163, + 2518.8710926928547, + 708.5073852107066, + 236.56396025295726 + ], + "color": "#3f789e", + "flags": {} + }, + { + "id": 36, + "title": "Conditioning", + "bounding": [ + 3358.3544802143024, + 1708.383266746525, + 713.9595218151089, + 776.242869109346 + ], + "color": "#3f789e", + "flags": {} + }, + { + "id": 37, + "title": "Sampling", + "bounding": [ + 4086.4509090576967, + 1712.7816697977712, + 463.020239092446, + 772.7529886555685 + ], + "color": "#3f789e", + "flags": {} + }, + { + "id": 38, + "title": "Inputs", + "bounding": [ + 1500.6640222320157, + 1702.0791000952963, + 1291.7247087470676, + 1066.4338324976673 + ], + "color": "#3f789e", + "flags": {} + }, + { + "id": 39, + "title": "Results", + "bounding": [ + 4563.2444650879315, + 1716.6998499855167, + 2212.988989543688, + 767.506449394119 + ], + "color": "#3f789e", + "flags": {} + } + ], + "definitions": { + "subgraphs": [ + { + "id": "ece7caac-9a4c-4aec-9547-0e8583475e4a", + "version": 1, + "state": { + "lastGroupId": 39, + "lastNodeId": 545, + "lastLinkId": 881, + "lastRerouteId": 0 + }, + "revision": 0, + "config": {}, + "name": "Remove Background (BiRefNet)", + "inputNode": { + "id": -10, + "bounding": [ + -6728.534070722246, + 1475.2619799128663, + 150.9140625, + 88 + ] + }, + "outputNode": { + "id": -20, + "bounding": [ + -6169.049695722246, + 1475.2619799128663, + 128, + 88 + ] + }, + "inputs": [ + { + "id": "7bc321cd-df31-4c39-aaf7-7f0d01326189", + "name": "image", + "type": "IMAGE", + "linkIds": [ + 5, + 7 + ], + "localized_name": "image", + "pos": [ + -6601.620008222246, + 1499.2619799128663 + ] + }, + { + "id": "e89d2cd8-daa3-4e29-8a69-851db85072cb", + "name": "bg_removal_name", + "type": "COMBO", + "linkIds": [ + 12 + ], + "pos": [ + -6601.620008222246, + 1519.2619799128663 + ] + } + ], + "outputs": [ + { + "id": "16e7863c-4c38-46c2-aa74-e82991fbfe8d", + "name": "IMAGE", + "type": "IMAGE", + "linkIds": [ + 8 + ], + "localized_name": "IMAGE", + "pos": [ + -6145.049695722246, + 1499.2619799128663 + ] + }, + { + "id": "f7240c19-5b80-406e-a8e2-9b12440ee2d6", + "name": "mask", + "type": "MASK", + "linkIds": [ + 11 + ], + "pos": [ + -6145.049695722246, + 1519.2619799128663 + ] + } + ], + "widgets": [], + "nodes": [ + { + "id": 528, + "type": "RemoveBackground", + "pos": [ + -6536.764823982709, + 1444.9963409012412 + ], + "size": [ + 302.25, + 72 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "localized_name": "bg_removal_model", + "name": "bg_removal_model", + "type": "BACKGROUND_REMOVAL", + "link": 3 + }, + { + "localized_name": "image", + "name": "image", + "type": "IMAGE", + "link": 5 + } + ], + "outputs": [ + { + "localized_name": "mask", + "name": "mask", + "type": "MASK", + "links": [ + 4, + 11 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "RemoveBackground", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + } + }, + { + "id": 14, + "type": "LoadBackgroundRemovalModel", + "pos": [ + -6540.534070722246, + 1302.223464635445 + ], + "size": [ + 311.484375, + 85.515625 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [ + { + "localized_name": "bg_removal_name", + "name": "bg_removal_name", + "type": "COMBO", + "widget": { + "name": "bg_removal_name" + }, + "link": 12 + } + ], + "outputs": [ + { + "localized_name": "bg_model", + "name": "bg_model", + "type": "BACKGROUND_REMOVAL", + "links": [ + 3 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "LoadBackgroundRemovalModel", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "models": [ + { + "name": "birefnet.safetensors", + "url": "https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors", + "directory": "background_removal" + } + ] + }, + "widgets_values": [ + "birefnet.safetensors" + ], + "widgets_values_named": { + "bg_removal_name": "birefnet.safetensors" + } + }, + { + "id": 16, + "type": "JoinImageWithAlpha", + "pos": [ + -6527.4370171636665, + 1674.3004951902876 + ], + "size": [ + 284.96875, + 72 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "localized_name": "image", + "name": "image", + "type": "IMAGE", + "link": 7 + }, + { + "localized_name": "alpha", + "name": "alpha", + "type": "MASK", + "link": 6 + } + ], + "outputs": [ + { + "localized_name": "IMAGE", + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 8 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "JoinImageWithAlpha", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + } + }, + { + "id": 15, + "type": "InvertMask", + "pos": [ + -6532.446160529669, + 1571.1111286839914 + ], + "size": [ + 285.984375, + 48 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "localized_name": "mask", + "name": "mask", + "type": "MASK", + "link": 4 + } + ], + "outputs": [ + { + "localized_name": "MASK", + "name": "MASK", + "type": "MASK", + "links": [ + 6 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "InvertMask", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + } + } + ], + "groups": [], + "links": [ + { + "id": 3, + "origin_id": 14, + "origin_slot": 0, + "target_id": 528, + "target_slot": 0, + "type": "BACKGROUND_REMOVAL" + }, + { + "id": 4, + "origin_id": 528, + "origin_slot": 0, + "target_id": 15, + "target_slot": 0, + "type": "MASK" + }, + { + "id": 6, + "origin_id": 15, + "origin_slot": 0, + "target_id": 16, + "target_slot": 1, + "type": "MASK" + }, + { + "id": 5, + "origin_id": -10, + "origin_slot": 0, + "target_id": 528, + "target_slot": 1, + "type": "IMAGE" + }, + { + "id": 7, + "origin_id": -10, + "origin_slot": 0, + "target_id": 16, + "target_slot": 0, + "type": "IMAGE" + }, + { + "id": 8, + "origin_id": 16, + "origin_slot": 0, + "target_id": -20, + "target_slot": 0, + "type": "IMAGE" + }, + { + "id": 11, + "origin_id": 528, + "origin_slot": 0, + "target_id": -20, + "target_slot": 1, + "type": "MASK" + }, + { + "id": 12, + "origin_id": -10, + "origin_slot": 1, + "target_id": 14, + "target_slot": 0, + "type": "COMBO" + } + ], + "extra": { + "ue_links": [], + "links_added_by_ue": [] + } + } + ] + }, + "config": {}, + "extra": { + "ds": { + "scale": 0.6303940863128513, + "offset": [ + -1442.8112703767351, + -1276.6272013565538 + ] + }, + "frontendVersion": "1.52.7", + "VHS_latentpreview": true, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true, + "ue_links": [], + "links_added_by_ue": [] + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflows/Head Swap 2511 - V5 Simple Workflow.json b/workflows/Head Swap 2511 - V5 Simple Workflow.json new file mode 100644 index 0000000000000000000000000000000000000000..9f10064c355300a7a0b4e2156ab917c9bce0e3ec --- /dev/null +++ b/workflows/Head Swap 2511 - V5 Simple Workflow.json @@ -0,0 +1,2488 @@ +{ + "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 +} \ No newline at end of file diff --git a/workflows/Head Swap Krea 2 - V1 Simple Workflow.json b/workflows/Head Swap Krea 2 - V1 Simple Workflow.json new file mode 100644 index 0000000000000000000000000000000000000000..e75739e319099516578206e1f178bdc65381cbf3 --- /dev/null +++ b/workflows/Head Swap Krea 2 - V1 Simple Workflow.json @@ -0,0 +1,1614 @@ +{ + "id": "krea2-identity-edit-unified", + "revision": 0, + "last_node_id": 126, + "last_link_id": 111, + "nodes": [ + { + "id": 102, + "type": "Note", + "pos": [ + 640, + 1130 + ], + "size": [ + 520, + 210 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Enable for two-image edits", + "properties": { + "Node name for S&R": "Note", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "OPTIONAL second reference - the PERSON for insert-into-scene edits\n('place this person at the table').\n\nThis group ships DISABLED (purple = bypassed) - the workflow is a\nplain single-image editor until you need it.\nEnable: right-click this group's title bar -> toggle Bypass off.\nOrder rule: scene = image 1 (group 1), person = image 2 (here)." + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 105, + "type": "Note", + "pos": [ + 2800, + 490 + ], + "size": [ + 320, + 280 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Sampling", + "properties": { + "Node name for S&R": "Note", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Turbo model: 10 steps, cfg 1.\n\nStep dial:\n 8 = stronger composition/instruction adherence\n 12 = more face detail\n 10 = balanced\n\nUsing krea2_raw instead of turbo:\n40 steps, cfg 3-4 (negative then matters)." + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 56, + "type": "CLIPLoader", + "pos": [ + 60, + 30 + ], + "size": [ + 480, + 140 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 5, + 78 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "CLIPLoader", + "models": [ + { + "name": "qwen3vl_4b_fp8_scaled.safetensors", + "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/text_encoders/qwen3vl_4b_fp8_scaled.safetensors", + "directory": "text_encoders" + } + ], + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "qwen3vl_4b_fp8_scaled.safetensors", + "krea2", + "default" + ] + }, + { + "id": 57, + "type": "VAELoader", + "pos": [ + 60, + 220 + ], + "size": [ + 480, + 90 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 6, + 7, + 62, + 83 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "VAELoader", + "models": [ + { + "name": "qwen_image_vae.safetensors", + "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/vae/qwen_image_vae.safetensors", + "directory": "vae" + } + ], + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "qwen_image_vae.safetensors" + ] + }, + { + "id": 55, + "type": "UNETLoader", + "pos": [ + 60, + -160 + ], + "size": [ + 480, + 130 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 105 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "UNETLoader", + "models": [ + { + "name": "krea2_turbo_fp8_scaled.safetensors", + "url": "https://huggingface.co/Comfy-Org/Krea-2/resolve/main/diffusion_models/krea2_turbo_fp8_scaled.safetensors", + "directory": "diffusion_models" + } + ], + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Downloads/krea2_turbo_int8_convrot.safetensors", + "default" + ] + }, + { + "id": 107, + "type": "Note", + "pos": [ + 1282.2101999999995, + -206.0309099999999 + ], + "size": [ + 270, + 110 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Resolution", + "properties": { + "Node name for S&R": "Note", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Output resolution. 1MP is the\nsweet spot; go higher only for\nsingle-person edits." + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 121, + "type": "GetImageSize", + "pos": [ + 1661.7574228707963, + 278.97454366076096 + ], + "size": [ + 140, + 124.00000000000003 + ], + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 100 + } + ], + "outputs": [ + { + "name": "width", + "type": "INT", + "links": [ + 91 + ] + }, + { + "name": "height", + "type": "INT", + "links": [ + 92 + ] + }, + { + "name": "batch_size", + "type": "INT", + "links": null + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.28.0", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + }, + "Node name for S&R": "GetImageSize" + }, + "widgets_values": [] + }, + { + "id": 82, + "type": "EmptySD3LatentImage", + "pos": [ + 1638.4698499999997, + 474.42040000000065 + ], + "size": [ + 270, + 150 + ], + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 91 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 92 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 24 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "EmptySD3LatentImage", + "ue_properties": { + "widget_ue_connectable": { + "width": true, + "height": true + }, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 848, + 1280, + 1 + ] + }, + { + "id": 73, + "type": "VAEEncode", + "pos": [ + 1925.4627319999988, + 125.38670599999996 + ], + "size": [ + 225, + 46 + ], + "flags": { + "collapsed": false + }, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 102 + }, + { + "name": "vae", + "type": "VAE", + "link": 7 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 82 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "VAEEncode", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 120, + "type": "Krea2EditModelPatch", + "pos": [ + 2347.2840537416273, + -155.05470208261704 + ], + "size": [ + 270, + 226 + ], + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 81 + }, + { + "name": "source_latent", + "type": "LATENT", + "link": 82 + }, + { + "name": "source_latent_b", + "shape": 7, + "type": "LATENT", + "link": 88 + }, + { + "name": "ref_boost_mask", + "shape": 7, + "type": "MASK", + "link": null + }, + { + "name": "vae", + "shape": 7, + "type": "VAE", + "link": 83 + }, + { + "name": "source_image", + "shape": 7, + "type": "IMAGE", + "link": 103 + }, + { + "name": "source_image_b", + "shape": 7, + "type": "IMAGE", + "link": 104 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 85 + ] + } + ], + "properties": { + "cnr_id": "comfyui-krea2edit", + "ver": "1.2.2", + "Node name for S&R": "Krea2EditModelPatch", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 1, + 1, + "fit" + ] + }, + { + "id": 117, + "type": "VAEEncode", + "pos": [ + 1923.69859, + 242.15609999999995 + ], + "size": [ + 225, + 46 + ], + "flags": { + "collapsed": false + }, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 101 + }, + { + "name": "vae", + "type": "VAE", + "link": 62 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 88 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "VAEEncode", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 85, + "type": "Krea2EditGroundedEncode", + "pos": [ + 2349.561029999999, + 145.31685000000002 + ], + "size": [ + 225, + 190 + ], + "flags": { + "collapsed": true + }, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 5 + }, + { + "name": "image", + "shape": 7, + "type": "IMAGE", + "link": 107 + }, + { + "name": "image_b", + "shape": 7, + "type": "IMAGE", + "link": 106 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 23 + ] + } + ], + "title": "negative (leave empty)", + "properties": { + "cnr_id": "comfyui-krea2edit", + "ver": "1.2.2", + "Node name for S&R": "Krea2EditGroundedEncode", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "", + 768, + "" + ] + }, + { + "id": 104, + "type": "Note", + "pos": [ + 2316.778979999999, + 250.93663000000004 + ], + "size": [ + 420, + 420 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Fidelity dial", + "properties": { + "Node name for S&R": "Note", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "THE FIDELITY DIAL (ref_boost) - how hard the model looks at your\nreference. New in this release.\n\n 1.0 = classic v1.1 behavior\n 4.0 = recommended (pre-set): much stronger face + body likeness,\n more reliable edits\n >10 = over-copy: removals/replacements start failing\n <1 = suppress the reference (creative freedom)\n\nref_boost_a: the scene dial (image 1) in two-image mode -\nleave at 1.0 unless you are exploring. ref_boost applies to the\nperson (image 2) when group 2 is enabled, else to your image.\n\nfit_mode: how inputs fit a different output aspect\nratio. fit = resample to the output shape (default, recommended); crop (legacy) = center-crop\nonly for v1/v1.1 weights." + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 54, + "type": "VAEDecode", + "pos": [ + 3023.118788300002, + 373.56646249999983 + ], + "size": [ + 223.05128289999993, + 46 + ], + "flags": { + "collapsed": true + }, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 25 + }, + { + "name": "vae", + "type": "VAE", + "link": 6 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 26, + 110 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "VAEDecode", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 29, + "type": "SaveImage", + "pos": [ + 3206.98816210097, + -157.31367550037118 + ], + "size": [ + 760, + 860 + ], + "flags": {}, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 26 + } + ], + "outputs": [ + { + "name": "images", + "type": "IMAGE", + "links": null + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "SaveImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "krea2_identity_edit" + ] + }, + { + "id": 125, + "type": "ImageConcatMulti", + "pos": [ + 3528.7504986445033, + 930.2197020427661 + ], + "size": [ + 270, + 170 + ], + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "image_1", + "type": "IMAGE,MASK", + "link": 108 + }, + { + "name": "image_2", + "shape": 7, + "type": "IMAGE,MASK", + "link": 109 + }, + { + "name": "image_3", + "shape": 7, + "type": "IMAGE,MASK", + "link": 110 + } + ], + "outputs": [ + { + "name": "output", + "type": "IMAGE", + "links": [ + 111 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "d0d61754bf7fa57f2abb4714cdf79058f5862a55", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + }, + "Node name for S&R": "ImageConcatMulti" + }, + "widgets_values": [ + 3, + "right", + false, + null + ] + }, + { + "id": 123, + "type": "ImageResizeKJv2", + "pos": [ + 1290.9980801908298, + -25.41503405984681 + ], + "size": [ + 270, + 336 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 96 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 98, + 100, + 102, + 103, + 107, + 108 + ] + }, + { + "name": "width", + "type": "INT", + "links": null + }, + { + "name": "height", + "type": "INT", + "links": null + }, + { + "name": "mask", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "d0d61754bf7fa57f2abb4714cdf79058f5862a55", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + }, + "Node name for S&R": "ImageResizeKJv2" + }, + "widgets_values": [ + 1024, + 1024, + "lanczos", + "resize", + "0, 0, 0", + "center", + 2, + "cpu" + ] + }, + { + "id": 124, + "type": "ImageResizeKJv2", + "pos": [ + 1298.4350201908303, + 385.92716594015224 + ], + "size": [ + 270, + 336 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 97 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 99, + 101, + 104, + 106, + 109 + ] + }, + { + "name": "width", + "type": "INT", + "links": null + }, + { + "name": "height", + "type": "INT", + "links": null + }, + { + "name": "mask", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "d0d61754bf7fa57f2abb4714cdf79058f5862a55", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + }, + "Node name for S&R": "ImageResizeKJv2" + }, + "widgets_values": [ + 1024, + 1024, + "lanczos", + "resize", + "0, 0, 0", + "center", + 2, + "cpu" + ] + }, + { + "id": 119, + "type": "Krea2EditGroundedEncode", + "pos": [ + 1757.171623833626, + -133.51036857961654 + ], + "size": [ + 400, + 206 + ], + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 78 + }, + { + "name": "image", + "shape": 7, + "type": "IMAGE", + "link": 98 + }, + { + "name": "image_b", + "shape": 7, + "type": "IMAGE", + "link": 99 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 80 + ] + } + ], + "properties": { + "cnr_id": "comfyui-krea2edit", + "ver": "1.2.2", + "Node name for S&R": "Krea2EditGroundedEncode", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + "head_swap: replace the head with the reference head.", + 512, + "" + ] + }, + { + "id": 126, + "type": "PreviewImage", + "pos": [ + 4125.249287815083, + 929.652877209081 + ], + "size": [ + 140, + 246 + ], + "flags": {}, + "order": 24, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 111 + } + ], + "outputs": [ + { + "name": "images", + "type": "IMAGE", + "links": null + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.28.0", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + }, + "Node name for S&R": "PreviewImage" + }, + "widgets_values": [] + }, + { + "id": 53, + "type": "KSampler", + "pos": [ + 2806.7279048807945, + -162.5532725985141 + ], + "size": [ + 320, + 652.4705882352941 + ], + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 85 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 80 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 23 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 24 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 25 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "KSampler", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 42, + "fixed", + 8, + 1, + "euler", + "simple", + 1 + ] + }, + { + "id": 111, + "type": "LoraLoaderModelOnly", + "pos": [ + 62.89160638793764, + 411.77748975673376 + ], + "size": [ + 480, + 120 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 105 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 81 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "LoraLoaderModelOnly", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Downloads/bfs_head_swap_v1.1_krea2.safetensors", + 1 + ] + }, + { + "id": 100, + "type": "Note", + "pos": [ + 67.34709241172051, + 613.6613673929384 + ], + "size": [ + 480, + 150 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Model files", + "properties": { + "Node name for S&R": "Note", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Files (auto-downloadable via the manager links):\n- krea2_turbo_fp8_scaled (or krea2_raw_bf16 - see GENERATE note)\n- qwen3vl_4b_fp8_scaled text encoder, type 'krea2'\n- qwen_image_vae\n- bfs_head_swap_v1.1_krea2.safetensors LoRA (this model)" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 72, + "type": "LoadImage", + "pos": [ + 644.4531549207261, + -156.33510597386146 + ], + "size": [ + 520, + 440 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 96 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "title": "Body Reference", + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "LoadImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "14003448836426386.png", + "image" + ] + }, + { + "id": 90, + "type": "LoadImage", + "pos": [ + 640, + 640 + ], + "size": [ + 520, + 440 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 97 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "title": "Head Reference", + "properties": { + "cnr_id": "comfy-core", + "ver": "0.26.0", + "Node name for S&R": "LoadImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "galo.jpeg", + "image" + ] + } + ], + "links": [ + [ + 5, + 56, + 0, + 85, + 0, + "CLIP" + ], + [ + 6, + 57, + 0, + 54, + 1, + "VAE" + ], + [ + 7, + 57, + 0, + 73, + 1, + "VAE" + ], + [ + 23, + 85, + 0, + 53, + 2, + "CONDITIONING" + ], + [ + 24, + 82, + 0, + 53, + 3, + "LATENT" + ], + [ + 25, + 53, + 0, + 54, + 0, + "LATENT" + ], + [ + 26, + 54, + 0, + 29, + 0, + "IMAGE" + ], + [ + 62, + 57, + 0, + 117, + 1, + "VAE" + ], + [ + 78, + 56, + 0, + 119, + 0, + "CLIP" + ], + [ + 80, + 119, + 0, + 53, + 1, + "CONDITIONING" + ], + [ + 81, + 111, + 0, + 120, + 0, + "MODEL" + ], + [ + 82, + 73, + 0, + 120, + 1, + "LATENT" + ], + [ + 83, + 57, + 0, + 120, + 4, + "VAE" + ], + [ + 85, + 120, + 0, + 53, + 0, + "MODEL" + ], + [ + 88, + 117, + 0, + 120, + 2, + "LATENT" + ], + [ + 91, + 121, + 0, + 82, + 0, + "INT" + ], + [ + 92, + 121, + 1, + 82, + 1, + "INT" + ], + [ + 96, + 72, + 0, + 123, + 0, + "IMAGE" + ], + [ + 97, + 90, + 0, + 124, + 0, + "IMAGE" + ], + [ + 98, + 123, + 0, + 119, + 1, + "IMAGE" + ], + [ + 99, + 124, + 0, + 119, + 2, + "IMAGE" + ], + [ + 100, + 123, + 0, + 121, + 0, + "IMAGE" + ], + [ + 101, + 124, + 0, + 117, + 0, + "IMAGE" + ], + [ + 102, + 123, + 0, + 73, + 0, + "IMAGE" + ], + [ + 103, + 123, + 0, + 120, + 5, + "IMAGE" + ], + [ + 104, + 124, + 0, + 120, + 6, + "IMAGE" + ], + [ + 105, + 55, + 0, + 111, + 0, + "MODEL" + ], + [ + 106, + 124, + 0, + 85, + 2, + "IMAGE" + ], + [ + 107, + 123, + 0, + 85, + 1, + "IMAGE" + ], + [ + 108, + 123, + 0, + 125, + 0, + "IMAGE" + ], + [ + 109, + 124, + 0, + 125, + 1, + "IMAGE" + ], + [ + 110, + 54, + 0, + 125, + 2, + "IMAGE" + ], + [ + 111, + 125, + 0, + 126, + 0, + "IMAGE" + ] + ], + "groups": [ + { + "id": 1, + "title": "MODELS", + "bounding": [ + 40, + -240, + 540, + 950 + ], + "color": "#3f789e", + "flags": {} + }, + { + "id": 2, + "title": "1 Ā· BODY REFERENCE", + "bounding": [ + 620, + -240, + 580, + 790 + ], + "color": "#8A8", + "flags": {} + }, + { + "id": 3, + "title": "2 Ā· HEAD REFERENCE", + "bounding": [ + 620, + 560, + 580, + 810 + ], + "color": "#a1309b", + "flags": {} + }, + { + "id": 4, + "title": "3 Ā· INSTRUCTION", + "bounding": [ + 1600, + -240, + 680, + 930 + ], + "color": "#b58b2a", + "flags": {} + }, + { + "id": 5, + "title": "4 Ā· FIDELITY", + "bounding": [ + 2300, + -240, + 460, + 910 + ], + "color": "#c15f3c", + "flags": {} + }, + { + "id": 6, + "title": "5 Ā· GENERATE", + "bounding": [ + 2780, + -240, + 1200, + 1030 + ], + "color": "#3f789e", + "flags": {} + } + ], + "config": {}, + "extra": { + "frontendVersion": "1.45.20", + "ds": { + "scale": 0.2940834937055175, + "offset": [ + 1017.1794568514106, + 1371.1767568506782 + ] + }, + "VHS_latentpreview": true, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true, + "ue_links": [], + "links_added_by_ue": [] + }, + "version": 0.4 +} diff --git a/workflows/Head Swap V1 Flux 2 Klein 4b_9b (base_distill).json b/workflows/Head Swap V1 Flux 2 Klein 4b_9b (base_distill).json new file mode 100644 index 0000000000000000000000000000000000000000..b45ce5088c3f9f5ccea3ea6cb82da28d17c00670 --- /dev/null +++ b/workflows/Head Swap V1 Flux 2 Klein 4b_9b (base_distill).json @@ -0,0 +1,3015 @@ +{ + "id": "92112d97-bb64-4b44-86f2-ea5691ef8f6e", + "revision": 0, + "last_node_id": 189, + "last_link_id": 319, + "nodes": [ + { + "id": 99, + "type": "MarkdownNote", + "pos": [ + 490, + 690 + ], + "size": [ + 210, + 88 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Note", + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Click on the top-right corner of the node to open the [subgraph](https://docs.comfy.org/interface/features/subgraph) \nšŸ‘‡" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 97, + "type": "MarkdownNote", + "pos": [ + -750, + 830 + ], + "size": [ + 610, + 650 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Model links (for local users)\n\n**diffusion_models**\n\n- [flux-2-klein-base-9b-fp8.safetensors](https://huggingface.co/black-forest-labs/FLUX.2-klein-base-9b-fp8)\n\n> Please visit BFL's repo, accept the agreement in the repo, and then download the fp8 model.\n\n**text_encoders**\n\n- [qwen_3_8b_fp8mixed.safetensors](https://huggingface.co/Comfy-Org/flux2-klein-9B/resolve/main/split_files/text_encoders/qwen_3_8b_fp8mixed.safetensors)\n\n**vae**\n\n- [flux2-vae.safetensors](https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/vae/flux2-vae.safetensors)\n\n\nModel Storage Location\n\n```\nšŸ“‚ ComfyUI/\nā”œā”€ā”€ šŸ“‚ models/\n│ ā”œā”€ā”€ šŸ“‚ text_encoders/\n│ │ └── qwen_3_8b_fp8mixed.safetensors\n│ └── šŸ“‚ vae/\n│ └── flux2-vae.safetensors\n```\n## Report issue\n\nNote: please update ComfyUI first ([guide](https://docs.comfy.org/zh-CN/installation/update_comfyui)) 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" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 111, + "type": "VAELoader", + "pos": [ + 369.76713102266166, + 3563.7500284440807 + ], + "size": [ + 364.42708333333337, + 58 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 198, + 202, + 217 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "VAELoader", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "models": [ + { + "name": "flux2-vae.safetensors", + "url": "https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/vae/flux2-vae.safetensors", + "directory": "vae" + } + ], + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [ + "flux2-vae.safetensors" + ] + }, + { + "id": 116, + "type": "5eb5cfa6-f140-40b7-bc6f-9477d677f888", + "pos": [ + 804.4338472220857, + 3835.0834651279733 + ], + "size": [ + 240, + 86 + ], + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [ + { + "label": "positive", + "name": "conditioning", + "type": "CONDITIONING", + "link": 199 + }, + { + "label": "negative", + "name": "conditioning_1", + "type": "CONDITIONING", + "link": 200 + }, + { + "name": "pixels", + "type": "IMAGE", + "link": 201 + }, + { + "name": "vae", + "type": "VAE", + "link": 202 + } + ], + "outputs": [ + { + "label": "positive", + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 195 + ] + }, + { + "label": "negative", + "name": "CONDITIONING_1", + "type": "CONDITIONING", + "links": [ + 196 + ] + } + ], + "properties": { + "proxyWidgets": [], + "cnr_id": "comfy-core", + "ver": "0.8.2", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [] + }, + { + "id": 115, + "type": "CLIPLoader", + "pos": [ + 369.76712728365146, + 3393.750122915234 + ], + "size": [ + 364.42708333333337, + 106 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 203, + 204 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "CLIPLoader", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "models": [ + { + "name": "qwen_3_8b_fp8mixed.safetensors", + "url": "https://huggingface.co/Comfy-Org/flux2-klein-9B/resolve/main/split_files/text_encoders/qwen_3_8b_fp8mixed.safetensors", + "directory": "text_encoders" + } + ], + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [ + "qwen_3_8b_fp8mixed.safetensors", + "flux2", + "default" + ] + }, + { + "id": 123, + "type": "CFGGuider", + "pos": [ + 1295.766932383482, + 3343.9167569419556 + ], + "size": [ + 270, + 98 + ], + "flags": {}, + "order": 31, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 207 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 208 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 209 + } + ], + "outputs": [ + { + "name": "GUIDER", + "type": "GUIDER", + "links": [ + 188 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "CFGGuider", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [ + 1 + ] + }, + { + "id": 120, + "type": "ResizeImageMaskNode", + "pos": [ + 372.5967713992208, + 3831.888921803501 + ], + "size": [ + 284.375, + 106 + ], + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "input", + "type": "IMAGE,MASK", + "link": 221 + } + ], + "outputs": [ + { + "name": "resized", + "type": "IMAGE", + "links": [ + 192, + 201, + 307 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.9.2", + "Node name for S&R": "ResizeImageMaskNode", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + "scale total pixels", + 1, + "lanczos" + ] + }, + { + "id": 121, + "type": "ResizeImageMaskNode", + "pos": [ + 382.2530441635739, + 4003.350673129131 + ], + "size": [ + 284.375, + 106 + ], + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "input", + "type": "IMAGE,MASK", + "link": 318 + } + ], + "outputs": [ + { + "name": "resized", + "type": "IMAGE", + "links": [ + 197, + 308 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.9.2", + "Node name for S&R": "ResizeImageMaskNode", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + "scale total pixels", + 1, + "lanczos" + ] + }, + { + "id": 118, + "type": "UNETLoader", + "pos": [ + 369.76712728365146, + 3243.750176744951 + ], + "size": [ + 364.42708333333337, + 82 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 312 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "UNETLoader", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [ + "flux-2-klein-9b.safetensors", + "default" + ] + }, + { + "id": 122, + "type": "Flux2Scheduler", + "pos": [ + 1276.9398129623294, + 3587.7263081493907 + ], + "size": [ + 317.6727061509084, + 110.76727061509109 + ], + "flags": {}, + "order": 25, + "mode": 0, + "inputs": [ + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 205 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 206 + } + ], + "outputs": [ + { + "name": "SIGMAS", + "type": "SIGMAS", + "links": [ + 310 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "Flux2Scheduler", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [ + 4, + 1024, + 1024 + ] + }, + { + "id": 125, + "type": "KSamplerSelect", + "pos": [ + 1288.0706137647162, + 3493.537118060878 + ], + "size": [ + 270, + 58 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "SAMPLER", + "type": "SAMPLER", + "links": [ + 189 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "KSamplerSelect", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [ + "lcm" + ] + }, + { + "id": 172, + "type": "ImageResizeKJv2", + "pos": [ + -29.39461811323457, + 2645.8665635593456 + ], + "size": [ + 270, + 336 + ], + "flags": {}, + "order": 16, + "mode": 4, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 290 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 291 + ] + }, + { + "name": "width", + "type": "INT", + "links": null + }, + { + "name": "height", + "type": "INT", + "links": null + }, + { + "name": "mask", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "93a4fba44c1635a716dc262f157a7ded7d716f3a", + "Node name for S&R": "ImageResizeKJv2", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 512, + 512, + "lanczos", + "resize", + "0, 0, 0", + "center", + 2, + "cpu" + ] + }, + { + "id": 169, + "type": "ShowText|pysssss", + "pos": [ + 783.9354167990583, + 2619.962163330123 + ], + "size": [ + 259.72441345342133, + 211.21816107680525 + ], + "flags": {}, + "order": 26, + "mode": 4, + "inputs": [ + { + "name": "text", + "type": "STRING", + "link": 287 + } + ], + "outputs": [ + { + "name": "STRING", + "shape": 6, + "type": "STRING", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-custom-scripts", + "ver": "1.2.5", + "Node name for S&R": "ShowText|pysssss", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + "The man has a focused, intense, and slightly defiant facial expression.\n\nKey features:\n- His eyes are wide open and staring directly at the camera with an unblinking gaze.\n- His eyebrows are raised slightly, contributing to an alert or challenging look.\n- His mouth is set in a firm line; it's not smiling but rather held tight, suggesting concentration or determination.\n- There’s visible tension around his jawline and cheekbones, indicating he's exerting effort while skateboarding.\n- A cigarette rests between his lips, adding a casual yet rebellious element to his demeanor.\n\nOverall, this isn't a relaxed or happy expression—it conveys energy, focus, and perhaps a bit of edgy confidence as he rides down the street. The direct eye contact creates a sense of connection and intensity with the viewer." + ] + }, + { + "id": 168, + "type": "AILab_QwenVL", + "pos": [ + 274.03553021447294, + 2653.077252632602 + ], + "size": [ + 340, + 300 + ], + "flags": {}, + "order": 22, + "mode": 4, + "inputs": [ + { + "name": "image", + "shape": 7, + "type": "IMAGE", + "link": 291 + }, + { + "name": "video", + "shape": 7, + "type": "IMAGE", + "link": null + } + ], + "outputs": [ + { + "name": "RESPONSE", + "type": "STRING", + "links": [ + 287, + 288 + ] + } + ], + "properties": { + "cnr_id": "comfyui-qwenvl", + "ver": "2.0.0", + "Node name for S&R": "AILab_QwenVL", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + "Qwen3-VL-4B-Instruct", + "8-bit (Balanced)", + "auto", + "šŸ–¼ļø Tags", + "Describe the facial expression.", + 512, + true, + 2302131607, + "fixed" + ], + "color": "#28403f", + "bgcolor": "#374539" + }, + { + "id": 110, + "type": "RandomNoise", + "pos": [ + 1295.766932383482, + 3223.9168201963835 + ], + "size": [ + 270, + 82 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "NOISE", + "type": "NOISE", + "links": [ + 187 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "RandomNoise", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [ + 432262096973493, + "fixed" + ] + }, + { + "id": 119, + "type": "CLIPTextEncode", + "pos": [ + 804.4338472220857, + 3605.0834651279733 + ], + "size": [ + 420, + 88 + ], + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 204 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 200 + ] + } + ], + "title": "CLIP Text Encode ( Negative Prompt)", + "properties": { + "cnr_id": "comfy-core", + "ver": "0.9.1", + "Node name for S&R": "CLIPTextEncode", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [ + "bad quality, noise, blurry, worst quality, low resolution, blur, distortion, unnatural blending, cartoon, illustration, painting" + ], + "color": "#323", + "bgcolor": "#535" + }, + { + "id": 133, + "type": "LoraLoaderModelOnly", + "pos": [ + 789.6756557041925, + 3046.73243046243 + ], + "size": [ + 431.1349752832102, + 82 + ], + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 312 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 207, + 271 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.9.2", + "Node name for S&R": "LoraLoaderModelOnly", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + "flux2/klein/head_swap_flux-klein_9b_000003750.safetensors", + 1 + ] + }, + { + "id": 117, + "type": "CLIPTextEncode", + "pos": [ + 799.4095992598294, + 3233.6667865601667 + ], + "size": [ + 440, + 320 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 203 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "slot_index": 0, + "links": [ + 199 + ] + } + ], + "title": "CLIP Text Encode (Positive Prompt)", + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "CLIPTextEncode", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "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.\n\nDescribe the expression in Picture 1 and copy it to the new image.\n" + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 171, + "type": "StringConcatenate", + "pos": [ + 1128.3045132913117, + 2657.1175393967665 + ], + "size": [ + 400, + 200 + ], + "flags": {}, + "order": 27, + "mode": 4, + "inputs": [ + { + "name": "string_b", + "type": "STRING", + "widget": { + "name": "string_b" + }, + "link": 288 + } + ], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 313 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.9.2", + "Node name for S&R": "StringConcatenate", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "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\n\n", + "", + "" + ] + }, + { + "id": 181, + "type": "Reroute", + "pos": [ + 642.2838381851489, + 3122.818291363274 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 30, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 313 + } + ], + "outputs": [ + { + "name": "", + "type": "STRING", + "links": null + } + ], + "properties": { + "showOutputText": false, + "horizontal": false, + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + } + }, + { + "id": 114, + "type": "6e5070f7-26e8-4a9a-ae4d-5d3fc1c591af", + "pos": [ + 792.6348524497367, + 4029.533494170478 + ], + "size": [ + 240, + 86 + ], + "flags": {}, + "order": 28, + "mode": 0, + "inputs": [ + { + "label": "positive", + "name": "conditioning", + "type": "CONDITIONING", + "link": 195 + }, + { + "label": "negative", + "name": "conditioning_1", + "type": "CONDITIONING", + "link": 196 + }, + { + "name": "pixels", + "type": "IMAGE", + "link": 197 + }, + { + "name": "vae", + "type": "VAE", + "link": 198 + } + ], + "outputs": [ + { + "label": "positive", + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 208 + ] + }, + { + "label": "negative", + "name": "CONDITIONING_1", + "type": "CONDITIONING", + "links": [ + 209 + ] + } + ], + "properties": { + "proxyWidgets": [], + "cnr_id": "comfy-core", + "ver": "0.8.2", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [] + }, + { + "id": 163, + "type": "SaveImage", + "pos": [ + 2323.422946431911, + 3217.243346818467 + ], + "size": [ + 270, + 270 + ], + "flags": {}, + "order": 34, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 285 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.9.2", + "Node name for S&R": "SaveImage", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 176, + "type": "ImageConcanate", + "pos": [ + 1974.1064761767686, + 3849.568646166478 + ], + "size": [ + 270, + 102 + ], + "flags": {}, + "order": 29, + "mode": 0, + "inputs": [ + { + "name": "image1", + "type": "IMAGE", + "link": 307 + }, + { + "name": "image2", + "type": "IMAGE", + "link": 308 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 304 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "93a4fba44c1635a716dc262f157a7ded7d716f3a", + "Node name for S&R": "ImageConcanate", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + "down", + true + ] + }, + { + "id": 177, + "type": "ImageConcanate", + "pos": [ + 2392.464606028409, + 3848.014948438479 + ], + "size": [ + 270, + 102 + ], + "flags": {}, + "order": 35, + "mode": 0, + "inputs": [ + { + "name": "image1", + "type": "IMAGE", + "link": 304 + }, + { + "name": "image2", + "type": "IMAGE", + "link": 305 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 306 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "93a4fba44c1635a716dc262f157a7ded7d716f3a", + "Node name for S&R": "ImageConcanate", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + "right", + true + ] + }, + { + "id": 178, + "type": "PreviewImage", + "pos": [ + 2812.756689716459, + 3777.7268395291826 + ], + "size": [ + 140, + 246 + ], + "flags": {}, + "order": 36, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 306 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.9.2", + "Node name for S&R": "PreviewImage", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [] + }, + { + "id": 131, + "type": "VAEDecode", + "pos": [ + 1886.2363711149524, + 3305.2440041643285 + ], + "size": [ + 220, + 46 + ], + "flags": {}, + "order": 33, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 216 + }, + { + "name": "vae", + "type": "VAE", + "link": 217 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "slot_index": 0, + "links": [ + 285, + 305 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "VAEDecode", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [] + }, + { + "id": 76, + "type": "LoadImage", + "pos": [ + -248.47780094574466, + 3116.260569394397 + ], + "size": [ + 320, + 470 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 221, + 290 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "title": "Body Reference", + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "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": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "sample_2475_00001_.png", + "image" + ] + }, + { + "id": 124, + "type": "BasicScheduler", + "pos": [ + 1345.1141816695176, + 3759.2167652502694 + ], + "size": [ + 270, + 106 + ], + "flags": {}, + "order": 19, + "mode": 4, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 271 + } + ], + "outputs": [ + { + "name": "SIGMAS", + "type": "SIGMAS", + "links": [] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.9.2", + "Node name for S&R": "BasicScheduler", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + "bong_tangent", + 4, + 1 + ] + }, + { + "id": 112, + "type": "GetImageSize", + "pos": [ + 1088.570754250372, + 3935.6429717129963 + ], + "size": [ + 187.5, + 124 + ], + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 192 + } + ], + "outputs": [ + { + "name": "width", + "type": "INT", + "links": [ + 193, + 205 + ] + }, + { + "name": "height", + "type": "INT", + "links": [ + 194, + 206 + ] + }, + { + "name": "batch_size", + "type": "INT", + "links": null + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "GetImageSize", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [] + }, + { + "id": 113, + "type": "EmptyFlux2LatentImage", + "pos": [ + 1334.1394035303103, + 3942.242624381234 + ], + "size": [ + 270, + 106 + ], + "flags": {}, + "order": 24, + "mode": 0, + "inputs": [ + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 193 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 194 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 191 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "EmptyFlux2LatentImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [ + 1024, + 1024, + 1 + ] + }, + { + "id": 109, + "type": "SamplerCustomAdvanced", + "pos": [ + 1621.1480527828392, + 3268.675653718491 + ], + "size": [ + 212.3638671875, + 395.1720377604167 + ], + "flags": {}, + "order": 32, + "mode": 0, + "inputs": [ + { + "name": "noise", + "type": "NOISE", + "link": 187 + }, + { + "name": "guider", + "type": "GUIDER", + "link": 188 + }, + { + "name": "sampler", + "type": "SAMPLER", + "link": 189 + }, + { + "name": "sigmas", + "type": "SIGMAS", + "link": 310 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 191 + } + ], + "outputs": [ + { + "name": "output", + "type": "LATENT", + "links": [ + 216 + ] + }, + { + "name": "denoised_output", + "type": "LATENT", + "links": [] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "SamplerCustomAdvanced", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [] + }, + { + "id": 186, + "type": "MarkdownNote", + "pos": [ + -910.4948154707993, + 3809.248944551527 + ], + "size": [ + 610, + 650 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Markdown Note 4b", + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Model links (for local users)\n\n**text_encoders**\n\n- [qwen_3_4b.safetensors](https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/text_encoders/qwen_3_4b.safetensors)\n\n**diffusion_models**\n\n- [lux-2-klein-base-4b-fp8.safetensors](https://huggingface.co/black-forest-labs/FLUX.2-klein-base-4b-fp8/resolve/main/flux-2-klein-base-4b-fp8.safetensors)(CFG: 5.0, Steps: 20/30/50...)\n\n- [lux-2-klein-4b-fp8.safetensors](https://huggingface.co/black-forest-labs/FLUX.2-klein-4b-fp8/blob/main/flux-2-klein-4b-fp8.safetensors)(CFG: 1.0, Steps: 4...)\n\n**vae**\n\n- [flux2-vae.safetensors](https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/vae/flux2-vae.safetensors)\n\n\nModel Storage Location\n\n```\nšŸ“‚ ComfyUI/\nā”œā”€ā”€ šŸ“‚ models/\n│ ā”œā”€ā”€ šŸ“‚ text_encoders/\n│ │ └── qwen_3_4b.safetensors\n│ ā”œā”€ā”€ šŸ“‚ diffusion_models/\n│ │ └── lux-2-klein-base-4b-fp8.safetensors\n│ └── šŸ“‚ vae/\n│ └── flux2-vae.safetensors\n```\n\n## Report issue\n\nNote: please update ComfyUI first ([guide](https://docs.comfy.org/zh-CN/installation/update_comfyui)) and prepare the 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" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 184, + "type": "MarkdownNote", + "pos": [ + -907.2444036877835, + 3091.9914110992695 + ], + "size": [ + 610, + 650 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Markdown Note 9b", + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Model links (for local users)\n\n**diffusion_models**\n\n- [flux-2-klein-base-9b-fp8.safetensors](https://huggingface.co/black-forest-labs/FLUX.2-klein-base-9b-fp8) (CFG 5.0, Steps: 20/30/50..)\n- [flux-2-klein-9b-fp8.safetensors](https://huggingface.co/black-forest-labs/FLUX.2-klein-9b-fp8) (CFG 1.0, Steps: 4..)\n\n\n> Please visit BFL's repo, accept the agreement in the repo, and then download the fp8 model.\n\n**text_encoders**\n\n- [qwen_3_8b_fp8mixed.safetensors](https://huggingface.co/Comfy-Org/flux2-klein-9B/resolve/main/split_files/text_encoders/qwen_3_8b_fp8mixed.safetensors)\n\n**vae**\n\n- [flux2-vae.safetensors](https://huggingface.co/Comfy-Org/flux2-dev/resolve/main/split_files/vae/flux2-vae.safetensors)\n\n\nModel Storage Location\n\n```\nšŸ“‚ ComfyUI/\nā”œā”€ā”€ šŸ“‚ models/\n│ ā”œā”€ā”€ šŸ“‚ text_encoders/\n│ │ └── qwen_3_8b_fp8mixed.safetensors\n│ └── šŸ“‚ vae/\n│ └── flux2-vae.safetensors\n```\n## Report issue\n\nNote: please update ComfyUI first ([guide](https://docs.comfy.org/zh-CN/installation/update_comfyui)) 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" + ], + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 81, + "type": "LoadImage", + "pos": [ + -236.06351544032262, + 3731.3318861681373 + ], + "size": [ + 320, + 476.6666666666667 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 277, + 317 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": [ + 314 + ] + } + ], + "title": "Face Reference", + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "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": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "image": "clipspace/clipspace-painted-masked-1768744191181.png [input]" + }, + "widgets_values": [ + "c6e3f986ddc8248e964de5b702bf1dfa.jpg", + "image" + ] + }, + { + "id": 160, + "type": "ImageCropByMask", + "pos": [ + 193.37415987077623, + 4242.049091418084 + ], + "size": [ + 177.1861328125, + 46 + ], + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 277 + }, + { + "name": "mask", + "type": "MASK", + "link": 314 + } + ], + "outputs": [ + { + "name": "image", + "type": "IMAGE", + "links": [] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "93a4fba44c1635a716dc262f157a7ded7d716f3a", + "Node name for S&R": "ImageCropByMask", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [] + }, + { + "id": 187, + "type": "RMBG", + "pos": [ + 446.17211572971297, + 4210.581660100933 + ], + "size": [ + 340, + 302 + ], + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 317 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 318 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + }, + { + "name": "MASK_IMAGE", + "type": "IMAGE", + "links": null + } + ], + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + }, + "cnr_id": "comfyui-rmbg", + "ver": "2.9.5", + "Node name for S&R": "RMBG" + }, + "widgets_values": [ + "RMBG-2.0", + 1, + 1024, + 0, + 0, + false, + false, + "Alpha", + "#222222" + ], + "color": "#222e40", + "bgcolor": "#364254" + }, + { + "id": 189, + "type": "Note", + "pos": [ + -20.296820503269263, + 2508.166190461272 + ], + "size": [ + 368.06224828212055, + 88 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": {}, + "widgets_values": [ + "Automatic caption of facial expression to concatenate in the prompt if you want." + ], + "color": "#432", + "bgcolor": "#653" + } + ], + "links": [ + [ + 187, + 110, + 0, + 109, + 0, + "NOISE" + ], + [ + 188, + 123, + 0, + 109, + 1, + "GUIDER" + ], + [ + 189, + 125, + 0, + 109, + 2, + "SAMPLER" + ], + [ + 191, + 113, + 0, + 109, + 4, + "LATENT" + ], + [ + 192, + 120, + 0, + 112, + 0, + "IMAGE" + ], + [ + 193, + 112, + 0, + 113, + 0, + "INT" + ], + [ + 194, + 112, + 1, + 113, + 1, + "INT" + ], + [ + 195, + 116, + 0, + 114, + 0, + "CONDITIONING" + ], + [ + 196, + 116, + 1, + 114, + 1, + "CONDITIONING" + ], + [ + 197, + 121, + 0, + 114, + 2, + "IMAGE" + ], + [ + 198, + 111, + 0, + 114, + 3, + "VAE" + ], + [ + 199, + 117, + 0, + 116, + 0, + "CONDITIONING" + ], + [ + 200, + 119, + 0, + 116, + 1, + "CONDITIONING" + ], + [ + 201, + 120, + 0, + 116, + 2, + "IMAGE" + ], + [ + 202, + 111, + 0, + 116, + 3, + "VAE" + ], + [ + 203, + 115, + 0, + 117, + 0, + "CLIP" + ], + [ + 204, + 115, + 0, + 119, + 0, + "CLIP" + ], + [ + 205, + 112, + 0, + 122, + 0, + "INT" + ], + [ + 206, + 112, + 1, + 122, + 1, + "INT" + ], + [ + 207, + 133, + 0, + 123, + 0, + "MODEL" + ], + [ + 208, + 114, + 0, + 123, + 1, + "CONDITIONING" + ], + [ + 209, + 114, + 1, + 123, + 2, + "CONDITIONING" + ], + [ + 216, + 109, + 0, + 131, + 0, + "LATENT" + ], + [ + 217, + 111, + 0, + 131, + 1, + "VAE" + ], + [ + 221, + 76, + 0, + 120, + 0, + "IMAGE" + ], + [ + 271, + 133, + 0, + 124, + 0, + "MODEL" + ], + [ + 277, + 81, + 0, + 160, + 0, + "IMAGE" + ], + [ + 285, + 131, + 0, + 163, + 0, + "IMAGE" + ], + [ + 287, + 168, + 0, + 169, + 0, + "STRING" + ], + [ + 288, + 168, + 0, + 171, + 0, + "STRING" + ], + [ + 290, + 76, + 0, + 172, + 0, + "IMAGE" + ], + [ + 291, + 172, + 0, + 168, + 0, + "IMAGE" + ], + [ + 304, + 176, + 0, + 177, + 0, + "IMAGE" + ], + [ + 305, + 131, + 0, + 177, + 1, + "IMAGE" + ], + [ + 306, + 177, + 0, + 178, + 0, + "IMAGE" + ], + [ + 307, + 120, + 0, + 176, + 0, + "IMAGE" + ], + [ + 308, + 121, + 0, + 176, + 1, + "IMAGE" + ], + [ + 310, + 122, + 0, + 109, + 3, + "SIGMAS" + ], + [ + 312, + 118, + 0, + 133, + 0, + "MODEL" + ], + [ + 313, + 171, + 0, + 181, + 0, + "STRING" + ], + [ + 314, + 81, + 1, + 160, + 1, + "MASK" + ], + [ + 317, + 81, + 0, + 187, + 0, + "IMAGE" + ], + [ + 318, + 187, + 0, + 121, + 0, + "IMAGE" + ] + ], + "groups": [ + { + "id": 4, + "title": "Prompt", + "bounding": [ + 784.4338472220857, + 3155.0834651279733, + 470, + 550 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "id": 5, + "title": "Sampler", + "bounding": [ + 1294.4338472220857, + 3155.0834651279733, + 532.3638671875, + 550 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "id": 6, + "title": "Models", + "bounding": [ + 364.43384722208566, + 3155.0834651279733, + 380, + 550 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + } + ], + "definitions": { + "subgraphs": [ + { + "id": "6e5070f7-26e8-4a9a-ae4d-5d3fc1c591af", + "version": 1, + "state": { + "lastGroupId": 4, + "lastNodeId": 78, + "lastLinkId": 170, + "lastRerouteId": 0 + }, + "revision": 0, + "config": {}, + "name": "Reference Conditioning", + "inputNode": { + "id": -10, + "bounding": [ + -270, + 990, + 120, + 120 + ] + }, + "outputNode": { + "id": -20, + "bounding": [ + 580, + 970, + 120, + 80 + ] + }, + "inputs": [ + { + "id": "5c9a0f5e-8cee-4947-90bc-330de782043a", + "name": "conditioning", + "type": "CONDITIONING", + "linkIds": [ + 165 + ], + "label": "positive", + "pos": [ + -170, + 1010 + ] + }, + { + "id": "61826d46-4c21-4ad6-801c-3e3fa94115e2", + "name": "conditioning_1", + "type": "CONDITIONING", + "linkIds": [ + 166 + ], + "label": "negative", + "pos": [ + -170, + 1030 + ] + }, + { + "id": "345bf085-5939-47ff-9767-8f8f239a719c", + "name": "pixels", + "type": "IMAGE", + "linkIds": [ + 167 + ], + "pos": [ + -170, + 1050 + ] + }, + { + "id": "f4594e34-e2f5-4f1e-b1fa-a1dc2aeb0a90", + "name": "vae", + "type": "VAE", + "linkIds": [ + 168 + ], + "pos": [ + -170, + 1070 + ] + } + ], + "outputs": [ + { + "id": "b3357c0e-6428-4055-9cd3-3595f0896fa8", + "name": "CONDITIONING", + "type": "CONDITIONING", + "linkIds": [ + 169 + ], + "label": "positive", + "pos": [ + 600, + 990 + ] + }, + { + "id": "01519713-2ed1-4694-a387-79f44e088e89", + "name": "CONDITIONING_1", + "type": "CONDITIONING", + "linkIds": [ + 170 + ], + "label": "negative", + "pos": [ + 600, + 1010 + ] + } + ], + "widgets": [], + "nodes": [ + { + "id": 76, + "type": "ReferenceLatent", + "pos": [ + 170, + 1050 + ], + "size": [ + 204.134765625, + 46 + ], + "flags": { + "collapsed": false + }, + "order": 0, + "mode": 0, + "inputs": [ + { + "localized_name": "conditioning", + "name": "conditioning", + "type": "CONDITIONING", + "link": 166 + }, + { + "localized_name": "latent", + "name": "latent", + "shape": 7, + "type": "LATENT", + "link": 163 + } + ], + "outputs": [ + { + "localized_name": "CONDITIONING", + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 170 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "ReferenceLatent", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [] + }, + { + "id": 78, + "type": "VAEEncode", + "pos": [ + -90, + 1150 + ], + "size": [ + 190, + 46 + ], + "flags": { + "collapsed": false + }, + "order": 2, + "mode": 0, + "inputs": [ + { + "localized_name": "pixels", + "name": "pixels", + "type": "IMAGE", + "link": 167 + }, + { + "localized_name": "vae", + "name": "vae", + "type": "VAE", + "link": 168 + } + ], + "outputs": [ + { + "localized_name": "LATENT", + "name": "LATENT", + "type": "LATENT", + "links": [ + 163, + 164 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "VAEEncode", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [] + }, + { + "id": 77, + "type": "ReferenceLatent", + "pos": [ + 170, + 940 + ], + "size": [ + 210, + 46 + ], + "flags": { + "collapsed": false + }, + "order": 1, + "mode": 0, + "inputs": [ + { + "localized_name": "conditioning", + "name": "conditioning", + "type": "CONDITIONING", + "link": 165 + }, + { + "localized_name": "latent", + "name": "latent", + "shape": 7, + "type": "LATENT", + "link": 164 + } + ], + "outputs": [ + { + "localized_name": "CONDITIONING", + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 169 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "ReferenceLatent", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [] + } + ], + "groups": [], + "links": [ + { + "id": 163, + "origin_id": 78, + "origin_slot": 0, + "target_id": 76, + "target_slot": 1, + "type": "LATENT" + }, + { + "id": 164, + "origin_id": 78, + "origin_slot": 0, + "target_id": 77, + "target_slot": 1, + "type": "LATENT" + }, + { + "id": 165, + "origin_id": -10, + "origin_slot": 0, + "target_id": 77, + "target_slot": 0, + "type": "CONDITIONING" + }, + { + "id": 166, + "origin_id": -10, + "origin_slot": 1, + "target_id": 76, + "target_slot": 0, + "type": "CONDITIONING" + }, + { + "id": 167, + "origin_id": -10, + "origin_slot": 2, + "target_id": 78, + "target_slot": 0, + "type": "IMAGE" + }, + { + "id": 168, + "origin_id": -10, + "origin_slot": 3, + "target_id": 78, + "target_slot": 1, + "type": "VAE" + }, + { + "id": 169, + "origin_id": 77, + "origin_slot": 0, + "target_id": -20, + "target_slot": 0, + "type": "CONDITIONING" + }, + { + "id": 170, + "origin_id": 76, + "origin_slot": 0, + "target_id": -20, + "target_slot": 1, + "type": "CONDITIONING" + } + ], + "extra": { + "workflowRendererVersion": "LG", + "ue_links": [], + "links_added_by_ue": [] + } + }, + { + "id": "5eb5cfa6-f140-40b7-bc6f-9477d677f888", + "version": 1, + "state": { + "lastGroupId": 4, + "lastNodeId": 78, + "lastLinkId": 170, + "lastRerouteId": 0 + }, + "revision": 0, + "config": {}, + "name": "Reference Conditioning", + "inputNode": { + "id": -10, + "bounding": [ + -270, + 990, + 120, + 120 + ] + }, + "outputNode": { + "id": -20, + "bounding": [ + 580, + 970, + 120, + 80 + ] + }, + "inputs": [ + { + "id": "5c9a0f5e-8cee-4947-90bc-330de782043a", + "name": "conditioning", + "type": "CONDITIONING", + "linkIds": [ + 165 + ], + "label": "positive", + "pos": [ + -170, + 1010 + ] + }, + { + "id": "61826d46-4c21-4ad6-801c-3e3fa94115e2", + "name": "conditioning_1", + "type": "CONDITIONING", + "linkIds": [ + 166 + ], + "label": "negative", + "pos": [ + -170, + 1030 + ] + }, + { + "id": "345bf085-5939-47ff-9767-8f8f239a719c", + "name": "pixels", + "type": "IMAGE", + "linkIds": [ + 167 + ], + "pos": [ + -170, + 1050 + ] + }, + { + "id": "f4594e34-e2f5-4f1e-b1fa-a1dc2aeb0a90", + "name": "vae", + "type": "VAE", + "linkIds": [ + 168 + ], + "pos": [ + -170, + 1070 + ] + } + ], + "outputs": [ + { + "id": "b3357c0e-6428-4055-9cd3-3595f0896fa8", + "name": "CONDITIONING", + "type": "CONDITIONING", + "linkIds": [ + 169 + ], + "label": "positive", + "pos": [ + 600, + 990 + ] + }, + { + "id": "01519713-2ed1-4694-a387-79f44e088e89", + "name": "CONDITIONING_1", + "type": "CONDITIONING", + "linkIds": [ + 170 + ], + "label": "negative", + "pos": [ + 600, + 1010 + ] + } + ], + "widgets": [], + "nodes": [ + { + "id": 76, + "type": "ReferenceLatent", + "pos": [ + 170, + 1050 + ], + "size": [ + 204.134765625, + 46 + ], + "flags": { + "collapsed": false + }, + "order": 0, + "mode": 0, + "inputs": [ + { + "localized_name": "conditioning", + "name": "conditioning", + "type": "CONDITIONING", + "link": 166 + }, + { + "localized_name": "latent", + "name": "latent", + "shape": 7, + "type": "LATENT", + "link": 163 + } + ], + "outputs": [ + { + "localized_name": "CONDITIONING", + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 170 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "ReferenceLatent", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [] + }, + { + "id": 78, + "type": "VAEEncode", + "pos": [ + -90, + 1150 + ], + "size": [ + 190, + 46 + ], + "flags": { + "collapsed": false + }, + "order": 2, + "mode": 0, + "inputs": [ + { + "localized_name": "pixels", + "name": "pixels", + "type": "IMAGE", + "link": 167 + }, + { + "localized_name": "vae", + "name": "vae", + "type": "VAE", + "link": 168 + } + ], + "outputs": [ + { + "localized_name": "LATENT", + "name": "LATENT", + "type": "LATENT", + "links": [ + 163, + 164 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "VAEEncode", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [] + }, + { + "id": 77, + "type": "ReferenceLatent", + "pos": [ + 170, + 940 + ], + "size": [ + 210, + 46 + ], + "flags": { + "collapsed": false + }, + "order": 1, + "mode": 0, + "inputs": [ + { + "localized_name": "conditioning", + "name": "conditioning", + "type": "CONDITIONING", + "link": 165 + }, + { + "localized_name": "latent", + "name": "latent", + "shape": 7, + "type": "LATENT", + "link": 164 + } + ], + "outputs": [ + { + "localized_name": "CONDITIONING", + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 169 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.8.2", + "Node name for S&R": "ReferenceLatent", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "enableTabs": false, + "tabWidth": 65, + "tabXOffset": 10, + "hasSecondTab": false, + "secondTabText": "Send Back", + "secondTabOffset": 80, + "secondTabWidth": 65 + }, + "widgets_values": [] + } + ], + "groups": [], + "links": [ + { + "id": 163, + "origin_id": 78, + "origin_slot": 0, + "target_id": 76, + "target_slot": 1, + "type": "LATENT" + }, + { + "id": 164, + "origin_id": 78, + "origin_slot": 0, + "target_id": 77, + "target_slot": 1, + "type": "LATENT" + }, + { + "id": 165, + "origin_id": -10, + "origin_slot": 0, + "target_id": 77, + "target_slot": 0, + "type": "CONDITIONING" + }, + { + "id": 166, + "origin_id": -10, + "origin_slot": 1, + "target_id": 76, + "target_slot": 0, + "type": "CONDITIONING" + }, + { + "id": 167, + "origin_id": -10, + "origin_slot": 2, + "target_id": 78, + "target_slot": 0, + "type": "IMAGE" + }, + { + "id": 168, + "origin_id": -10, + "origin_slot": 3, + "target_id": 78, + "target_slot": 1, + "type": "VAE" + }, + { + "id": 169, + "origin_id": 77, + "origin_slot": 0, + "target_id": -20, + "target_slot": 0, + "type": "CONDITIONING" + }, + { + "id": 170, + "origin_id": 76, + "origin_slot": 0, + "target_id": -20, + "target_slot": 1, + "type": "CONDITIONING" + } + ], + "extra": { + "workflowRendererVersion": "LG", + "ue_links": [], + "links_added_by_ue": [] + } + } + ] + }, + "config": {}, + "extra": { + "frontendVersion": "1.36.14", + "workflowRendererVersion": "LG", + "VHS_latentpreview": true, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true, + "ue_links": [], + "links_added_by_ue": [], + "ds": { + "scale": 0.6303940863128965, + "offset": [ + 1212.3015616198231, + -2077.175326031613 + ] + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflows/Head Swap V1 Qwen 2.1 Workflow.json b/workflows/Head Swap V1 Qwen 2.1 Workflow.json new file mode 100644 index 0000000000000000000000000000000000000000..47a5ced817972a00ce0b2c26c66aac2896268f34 --- /dev/null +++ b/workflows/Head Swap V1 Qwen 2.1 Workflow.json @@ -0,0 +1,2225 @@ +{ + "id": "54bb395d-3e60-4c94-b525-85523901575b", + "revision": 0, + "last_node_id": 517, + "last_link_id": 821, + "nodes": [ + { + "id": 472, + "type": "ImageCompare", + "pos": [ + 9296.368908118156, + 2564.443312668747 + ], + "size": [ + 660, + 760 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [ + { + "name": "image_a", + "shape": 7, + "type": "IMAGE", + "link": null + }, + { + "name": "image_b", + "shape": 7, + "type": "IMAGE", + "link": null + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "ImageCompare", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [], + "widgets_values_named": {} + }, + { + "id": 509, + "type": "SetNode", + "pos": [ + 2302.0722316120437, + 2053.81880583063 + ], + "size": [ + 210, + 50 + ], + "flags": { + "collapsed": true + }, + "order": 24, + "mode": 0, + "inputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "link": 813 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [] + } + ], + "title": "Set_head_reference", + "properties": { + "Node name for S&R": "SetNode", + "aux_id": "kijai/ComfyUI-KJNodes", + "previousName": "head_reference" + }, + "widgets_values": [ + "head_reference" + ], + "widgets_values_named": { + "Constant": "head_reference" + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 513, + "type": "SetNode", + "pos": [ + 2294.2297018614677, + 1977.5930749307531 + ], + "size": [ + 210, + 50 + ], + "flags": { + "collapsed": true + }, + "order": 27, + "mode": 0, + "inputs": [ + { + "name": "INT", + "type": "INT", + "link": 819 + } + ], + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [] + } + ], + "title": "Set_height", + "properties": { + "Node name for S&R": "SetNode", + "aux_id": "kijai/ComfyUI-KJNodes", + "previousName": "height" + }, + "widgets_values": [ + "height" + ], + "widgets_values_named": { + "Constant": "height" + }, + "color": "#1b4669", + "bgcolor": "#29699c" + }, + { + "id": 512, + "type": "SetNode", + "pos": [ + 2291.6133371690134, + 1938.0303629713444 + ], + "size": [ + 210, + 60 + ], + "flags": { + "collapsed": true + }, + "order": 26, + "mode": 0, + "inputs": [ + { + "name": "INT", + "type": "INT", + "link": 817 + } + ], + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": null + } + ], + "title": "Set_width", + "properties": { + "Node name for S&R": "SetNode", + "aux_id": "kijai/ComfyUI-KJNodes", + "previousName": "width" + }, + "widgets_values": [ + "width" + ], + "widgets_values_named": { + "Constant": "width" + }, + "color": "#1b4669", + "bgcolor": "#29699c" + }, + { + "id": 505, + "type": "SetNode", + "pos": [ + 2293.9377511826247, + 1893.346192895989 + ], + "size": [ + 210, + 60 + ], + "flags": { + "collapsed": true + }, + "order": 25, + "mode": 0, + "inputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "link": 805 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [] + } + ], + "title": "Set_body_reference", + "properties": { + "Node name for S&R": "SetNode", + "aux_id": "kijai/ComfyUI-KJNodes", + "previousName": "body_reference" + }, + "widgets_values": [ + "body_reference" + ], + "widgets_values_named": { + "Constant": "body_reference" + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 13, + "type": "ResolutionSelector", + "pos": [ + 1654.0764422324858, + 1909.6117073638825 + ], + "size": [ + 300, + 190 + ], + "flags": {}, + "order": 1, + "mode": 0, + "showAdvanced": true, + "inputs": [], + "outputs": [ + { + "name": "width", + "type": "INT", + "links": [ + 735, + 737 + ] + }, + { + "name": "height", + "type": "INT", + "links": [ + 736, + 738 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "ResolutionSelector", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "1:1 (Square)", + 2, + 32 + ], + "widgets_values_named": { + "aspect_ratio": "1:1 (Square)", + "megapixels": 2, + "multiple": 32 + } + }, + { + "id": 514, + "type": "GetNode", + "pos": [ + 3376.9188156397736, + 2624.337951069355 + ], + "size": [ + 210, + 60 + ], + "flags": { + "collapsed": true + }, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 820 + ] + } + ], + "title": "Get_width", + "properties": { + "Node name for S&R": "GetNode", + "aux_id": "kijai/ComfyUI-KJNodes" + }, + "widgets_values": [ + "width" + ], + "widgets_values_named": { + "Constant": "width" + }, + "color": "#1b4669", + "bgcolor": "#29699c" + }, + { + "id": 515, + "type": "GetNode", + "pos": [ + 3380.726997985999, + 2675.818839566489 + ], + "size": [ + 210, + 60 + ], + "flags": { + "collapsed": true + }, + "order": 3, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 821 + ] + } + ], + "title": "Get_height", + "properties": { + "Node name for S&R": "GetNode", + "aux_id": "kijai/ComfyUI-KJNodes" + }, + "widgets_values": [ + "height" + ], + "widgets_values_named": { + "Constant": "height" + }, + "color": "#1b4669", + "bgcolor": "#29699c" + }, + { + "id": 486, + "type": "EmptyLatentImage", + "pos": [ + 3564.0211792895375, + 2594.8540561338486 + ], + "size": [ + 300, + 120 + ], + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 820 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 821 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 788 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "EmptyLatentImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 1024, + 1024, + 1 + ], + "widgets_values_named": { + "width": 1024, + "height": 1024, + "batch_size": 1 + } + }, + { + "id": 485, + "type": "VAELoader", + "pos": [ + 2819.6605392050487, + 2397.7265795645244 + ], + "size": [ + 510, + 70 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "links": [ + 754, + 774 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "VAELoader", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "models": [ + { + "name": "qwen_image_2.1_vae_bf16.safetensors", + "url": "https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors", + "directory": "vae" + } + ] + }, + "widgets_values": [ + "qwen_image_2.1_vae_bf16.safetensors" + ], + "widgets_values_named": { + "vae_name": "qwen_image_2.1_vae_bf16.safetensors" + } + }, + { + "id": 484, + "type": "CLIPLoader", + "pos": [ + 2821.102638566112, + 2216.4738712583617 + ], + "size": [ + 510, + 120 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "CLIP", + "type": "CLIP", + "links": [ + 772 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "CLIPLoader", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "models": [ + { + "name": "qwen3vl_8b_int8_convrot.safetensors", + "url": "https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors", + "directory": "text_encoders" + } + ] + }, + "widgets_values": [ + "qwen3vl_8b_int8_convrot.safetensors", + "qwen_image", + "default" + ], + "widgets_values_named": { + "clip_name": "qwen3vl_8b_int8_convrot.safetensors", + "type": "qwen_image", + "device": "default" + } + }, + { + "id": 493, + "type": "LoraLoaderModelOnly", + "pos": [ + 2826.6732322753633, + 2076.367252387245 + ], + "size": [ + 500.1102810387763, + 82 + ], + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 800 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 799 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "LoraLoaderModelOnly", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + "bfs_head_v1.1_qwen_2.1.safetensors", + 1 + ], + "widgets_values_named": { + "lora_name": "Downloads/bfs_qwen_2.1.safetensors", + "strength_model": 1 + } + }, + { + "id": 491, + "type": "UNETLoader", + "pos": [ + 2818.0687099342763, + 1801.8492046478232 + ], + "size": [ + 510, + 90 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 770 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "UNETLoader", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + }, + "models": [ + { + "name": "qwen_image_2.1_int8_convrot.safetensors", + "url": "https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors", + "directory": "diffusion_models" + } + ] + }, + "widgets_values": [ + "qwen_image_2.1_int8_convrot.safetensors", + "default" + ], + "widgets_values_named": { + "unet_name": "qwen_image_2.1_int8_convrot.safetensors", + "weight_dtype": "default" + } + }, + { + "id": 463, + "type": "MarkdownNote", + "pos": [ + 1017.2388238307908, + 1731.7549997274505 + ], + "size": [ + 420, + 620 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Note: Usage", + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "## Size\nQwen Image 2.1 has native 2K (2048*2048) support for direct output.\n\n- resolution is a total pixel budget (not width or height). Aspect ratio is preserved.\n- Official default is 1024. The model supports up to 2048.\n- This template starts at 0: no resize beyond a multiple of 32.\n- Output follows image_1. Extra refs can differ in size or aspect.\n- custom_size off: canvas comes from the encode latent (image_1).\n- custom_size on: use ResolutionSelector width/height. Keep it close to the resized image_1 size, or the edit can shift.\n\n## Reference images\n- Up to 10 reference images (image_1 to image_10).\n- Mention them in the prompt as ``, ``, ...\n- image_1 is the edit target. The rest are references.\n\n## Custom settings\nIf you need custom settings, enter or unpack the subgraph to edit it. See the [Subgraph](https://docs.comfy.org/interface/features/subgraph) guide.\n\n## Parameters\n- prompt: edit instruction. Use `` ... ``.\n- negative_prompt: unused while cfg is 1.\n- cfg: keep 1 for the Qwen Image 2.1 official path. Raise it only if you use a negative prompt.\n- steps: Qwen Image 2.1 official pipeline uses about 40-50 with euler. This template starts at 25. More advanced samplers need fewer steps." + ], + "widgets_values_named": { + "text": "## Size\nQwen Image 2.1 has native 2K (2048*2048) support for direct output.\n\n- resolution is a total pixel budget (not width or height). Aspect ratio is preserved.\n- Official default is 1024. The model supports up to 2048.\n- This template starts at 0: no resize beyond a multiple of 32.\n- Output follows image_1. Extra refs can differ in size or aspect.\n- custom_size off: canvas comes from the encode latent (image_1).\n- custom_size on: use ResolutionSelector width/height. Keep it close to the resized image_1 size, or the edit can shift.\n\n## Reference images\n- Up to 10 reference images (image_1 to image_10).\n- Mention them in the prompt as ``, ``, ...\n- image_1 is the edit target. The rest are references.\n\n## Custom settings\nIf you need custom settings, enter or unpack the subgraph to edit it. See the [Subgraph](https://docs.comfy.org/interface/features/subgraph) guide.\n\n## Parameters\n- prompt: edit instruction. Use `` ... ``.\n- negative_prompt: unused while cfg is 1.\n- cfg: keep 1 for the Qwen Image 2.1 official path. Raise it only if you use a negative prompt.\n- steps: Qwen Image 2.1 official pipeline uses about 40-50 with euler. This template starts at 25. More advanced samplers need fewer steps." + }, + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 487, + "type": "VAEDecode", + "pos": [ + 4623.222809828765, + 1823.4029448711992 + ], + "size": [ + 230, + 60 + ], + "flags": {}, + "order": 30, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 756 + }, + { + "name": "vae", + "type": "VAE", + "link": 754 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 755 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "VAEDecode", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + } + }, + { + "id": 461, + "type": "SaveImageAdvanced", + "pos": [ + 4624.368336229784, + 1961.4068626684546 + ], + "size": [ + 534.5207875789044, + 342.0000000000002 + ], + "flags": {}, + "order": 31, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 755 + } + ], + "outputs": [ + { + "name": "images", + "type": "IMAGE", + "links": [ + 744, + 791 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "SaveImageAdvanced", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Qwen_image_2.1", + "png", + "8-bit", + "sRGB" + ], + "widgets_values_named": { + "filename_prefix": "Qwen_image_2.1", + "format": "png", + "format.bit_depth": "8-bit", + "format.input_color_space": "sRGB" + } + }, + { + "id": 498, + "type": "ImageConcatMulti", + "pos": [ + 5665.770903183726, + 1842.7341556635074 + ], + "size": [ + 270, + 170 + ], + "flags": { + "collapsed": true + }, + "order": 33, + "mode": 0, + "inputs": [ + { + "name": "image_1", + "type": "IMAGE,MASK", + "link": 810 + }, + { + "name": "image_2", + "shape": 7, + "type": "IMAGE,MASK", + "link": 816 + }, + { + "name": "image_3", + "shape": 7, + "type": "IMAGE,MASK", + "link": 791 + } + ], + "outputs": [ + { + "name": "output", + "type": "IMAGE", + "links": [ + 793 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "60cd6bc1870db94c6eeb05fbe455147a8e91c4e9", + "Node name for S&R": "ImageConcatMulti", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 3, + "right", + true, + null + ], + "widgets_values_named": { + "inputcount": 3, + "direction": "right", + "match_image_size": true, + "Update inputs": null + } + }, + { + "id": 508, + "type": "GetNode", + "pos": [ + 5332.234517529806, + 1828.2237697555313 + ], + "size": [ + 210, + 58 + ], + "flags": { + "collapsed": true + }, + "order": 8, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 810 + ] + } + ], + "title": "Get_body_reference", + "properties": { + "Node name for S&R": "GetNode", + "aux_id": "kijai/ComfyUI-KJNodes" + }, + "widgets_values": [ + "body_reference" + ], + "widgets_values_named": { + "Constant": "body_reference" + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 511, + "type": "GetNode", + "pos": [ + 5334.723141975721, + 1881.3244001707715 + ], + "size": [ + 210, + 58 + ], + "flags": { + "collapsed": true + }, + "order": 9, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 816 + ] + } + ], + "title": "Get_head_reference", + "properties": { + "Node name for S&R": "GetNode", + "aux_id": "kijai/ComfyUI-KJNodes" + }, + "widgets_values": [ + "head_reference" + ], + "widgets_values_named": { + "Constant": "head_reference" + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 507, + "type": "GetNode", + "pos": [ + 6007.322035808832, + 1939.2234945482182 + ], + "size": [ + 210, + 58 + ], + "flags": { + "collapsed": true + }, + "order": 10, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 809 + ] + } + ], + "title": "Get_body_reference", + "properties": { + "Node name for S&R": "GetNode", + "aux_id": "kijai/ComfyUI-KJNodes" + }, + "widgets_values": [ + "body_reference" + ], + "widgets_values_named": { + "Constant": "body_reference" + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 506, + "type": "GetNode", + "pos": [ + 3365.053800942413, + 1863.0954252325314 + ], + "size": [ + 210, + 60 + ], + "flags": { + "collapsed": true + }, + "order": 11, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 807 + ] + } + ], + "title": "Get_body_reference", + "properties": { + "Node name for S&R": "GetNode", + "aux_id": "kijai/ComfyUI-KJNodes" + }, + "widgets_values": [ + "body_reference" + ], + "widgets_values_named": { + "Constant": "body_reference" + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 510, + "type": "GetNode", + "pos": [ + 3371.866334418882, + 1916.0389643297688 + ], + "size": [ + 210, + 60 + ], + "flags": { + "collapsed": true + }, + "order": 12, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 814 + ] + } + ], + "title": "Get_head_reference", + "properties": { + "Node name for S&R": "GetNode", + "aux_id": "kijai/ComfyUI-KJNodes" + }, + "widgets_values": [ + "head_reference" + ], + "widgets_values_named": { + "Constant": "head_reference" + }, + "color": "#2a363b", + "bgcolor": "#3f5159" + }, + { + "id": 477, + "type": "ImageResizeKJv2", + "pos": [ + 2078.2319539073947, + 1994.5553372884267 + ], + "size": [ + 290.6913531671082, + 336 + ], + "flags": { + "collapsed": true + }, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 731 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + }, + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 735 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 736 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 805 + ] + }, + { + "name": "width", + "type": "INT", + "links": [ + 817 + ] + }, + { + "name": "height", + "type": "INT", + "links": [ + 819 + ] + }, + { + "name": "mask", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "60cd6bc1870db94c6eeb05fbe455147a8e91c4e9", + "Node name for S&R": "ImageResizeKJv2", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 512, + 512, + "lanczos", + "resize", + "0, 0, 0", + "center", + 32, + "cpu" + ], + "widgets_values_named": { + "width": 512, + "height": 512, + "upscale_method": "lanczos", + "keep_proportion": "resize", + "pad_color": "0, 0, 0", + "crop_position": "center", + "divisible_by": 32, + "device": "cpu" + } + }, + { + "id": 496, + "type": "TextEncodeQwenImage21", + "pos": [ + 3583.7853283875843, + 1811.615674493462 + ], + "size": [ + 460, + 266 + ], + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 772 + }, + { + "name": "images.image_1", + "shape": 7, + "type": "IMAGE", + "link": 807 + }, + { + "name": "images.image_2", + "shape": 7, + "type": "IMAGE", + "link": 814 + }, + { + "name": "images.image_3", + "shape": 7, + "type": "IMAGE", + "link": null + }, + { + "name": "vae", + "shape": 7, + "type": "VAE", + "link": 774 + } + ], + "outputs": [ + { + "name": "positive", + "type": "CONDITIONING", + "links": [ + 775 + ] + }, + { + "name": "negative", + "type": "CONDITIONING", + "links": [ + 776 + ] + }, + { + "name": "latent", + "type": "LATENT", + "links": [] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "TextEncodeQwenImage21", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "head_swap: start with as the base image, keeping its lighting, environment, and background. remove the head from completely and replace it with the head from , strictly preserving the hair, eye color, nose structure from . copy the direction of the eye, head rotation, micro expressions from , high quality, sharp details, 4k", + "", + 0 + ], + "widgets_values_named": { + "prompt": "head_swap: start with as the base image, keeping its lighting, environment, and background. remove the head from completely and replace it with the head from , strictly preserving the hair, eye color, nose structure from . copy the direction of the eye, head rotation, micro expressions from , high quality, sharp details, 4k", + "negative_prompt": "", + "resolution": 0 + } + }, + { + "id": 480, + "type": "Image Comparer (rgthree)", + "pos": [ + 6136.769360997416, + 2004.0019681204349 + ], + "size": [ + 501.51692088861034, + 451.8398162306071 + ], + "flags": {}, + "order": 32, + "mode": 0, + "inputs": [ + { + "dir": 3, + "name": "image_a", + "type": "IMAGE", + "link": 809 + }, + { + "dir": 3, + "name": "image_b", + "type": "IMAGE", + "link": 744 + } + ], + "outputs": [ + { + "dir": 4, + "name": "images", + "shape": 3, + "type": "IMAGE", + "links": null + } + ], + "properties": { + "cnr_id": "rgthree-comfy", + "ver": "8ff50e4521881eca1fe26aec9615fc9362474931", + "comparer_mode": "Slide", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + [ + { + "name": "A", + "selected": true, + "url": "/api/view?filename=rgthree.compare._temp_hpliv_00061_.png&type=temp&subfolder=&rand=0.5520977858263648" + }, + { + "name": "B", + "selected": true, + "url": "/api/view?filename=rgthree.compare._temp_hpliv_00062_.png&type=temp&subfolder=&rand=0.5122389305732098" + } + ] + ], + "widgets_values_named": { + "rgthree_comparer": { + "images": [ + { + "name": "A", + "selected": true, + "url": "/api/view?filename=rgthree.compare._temp_hpliv_00061_.png&type=temp&subfolder=&rand=0.5520977858263648", + "img": {} + }, + { + "name": "B", + "selected": true, + "url": "/api/view?filename=rgthree.compare._temp_hpliv_00062_.png&type=temp&subfolder=&rand=0.5122389305732098", + "img": {} + } + ] + } + } + }, + { + "id": 499, + "type": "AddLabel", + "pos": [ + 5918.695152745969, + 1843.415321533736 + ], + "size": [ + 270, + 270 + ], + "flags": { + "collapsed": true + }, + "order": 34, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 793 + }, + { + "name": "caption", + "shape": 7, + "type": "STRING", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 794 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "60cd6bc1870db94c6eeb05fbe455147a8e91c4e9", + "Node name for S&R": "AddLabel", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 10, + 2, + 82, + 24, + "white", + "black", + "FreeMono.ttf", + "head_swap: start with as the base image, keeping its lighting, environment, and background. remove the head from completely and replace it with the head from , strictly preserving the hair, eye color, nose structure from . copy the direction of the eye, head rotation, micro expressions from , high quality, sharp details, 4k", + "down" + ], + "widgets_values_named": { + "text_x": 10, + "text_y": 2, + "height": 82, + "font_size": 24, + "font_color": "white", + "label_color": "black", + "font": "FreeMono.ttf", + "text": "head_swap: start with as the base image, keeping its lighting, environment, and background. remove the head from completely and replace it with the head from , strictly preserving the hair, eye color, nose structure from . copy the direction of the eye, head rotation, micro expressions from , high quality, sharp details, 4k", + "direction": "down" + } + }, + { + "id": 478, + "type": "ImageResizeKJv2", + "pos": [ + 2085.495755562794, + 2053.6368005911622 + ], + "size": [ + 270, + 336 + ], + "flags": { + "collapsed": true + }, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 739 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + }, + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 737 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 738 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 813 + ] + }, + { + "name": "width", + "type": "INT", + "links": [] + }, + { + "name": "height", + "type": "INT", + "links": [] + }, + { + "name": "mask", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "60cd6bc1870db94c6eeb05fbe455147a8e91c4e9", + "Node name for S&R": "ImageResizeKJv2", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + 512, + 512, + "lanczos", + "resize", + "0, 0, 0", + "center", + 32, + "cpu" + ], + "widgets_values_named": { + "width": 512, + "height": 512, + "upscale_method": "lanczos", + "keep_proportion": "resize", + "pad_color": "0, 0, 0", + "crop_position": "center", + "divisible_by": 32, + "device": "cpu" + } + }, + { + "id": 517, + "type": "Note", + "pos": [ + 1503.257620412609, + 1578.0237723560565 + ], + "size": [ + 574.1762163495873, + 99.91817653772682 + ], + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": {}, + "widgets_values": [ + "There's a really annoying effect in Qwen 2.1 where even if you change a small part of the image, it seems like the whole image is affected; the colors change, the details are lost, it looks more blurry, etc. The way I managed to mitigate it a bit was by generating the images in 2K, and even then it's still bad." + ], + "widgets_values_named": { + "text": "There's a really annoying effect in Qwen 2.1 where even if you change a small part of the image, it seems like the whole image is affected; the colors change, the details are lost, it looks more blurry, etc. The way I managed to mitigate it a bit was by generating the images in 2K, and even then it's still bad." + }, + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 492, + "type": "LoraLoaderModelOnly", + "pos": [ + 2821.8589049425586, + 1940.740520826475 + ], + "size": [ + 500.1102810387763, + 82 + ], + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 770 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 800 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "LoraLoaderModelOnly", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [ + "p_qwen_image_2.1_8step_v0.1.safetensors", + 1 + ], + "widgets_values_named": { + "lora_name": "Downloads/p_qwen_image_2.1_8step_v0.1.safetensors", + "strength_model": 1 + } + }, + { + "id": 476, + "type": "MarkdownNote", + "pos": [ + 572.0659855390135, + 1726.582161435673 + ], + "size": [ + 420, + 620 + ], + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Note: Model links", + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Input Assets\n\n- [portrait_model_denim.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/portrait_model_denim.png)\n- [clothing_light_blue_denim_shirt.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/clothing_light_blue_denim_shirt.png)\n\n\n## Model Links\n\n- [Hugging Face:Comfy-Org/Qwen-Image-2.1](https://huggingface.co/Comfy-Org/Qwen-Image-2.1)\n- [ModelScope:Comfy-Org/Qwen-Image-2.1](https://modelscope.cn/models/Comfy-Org/Qwen-Image-2.1)\n\n**diffusion_models**\n\n- [qwen_image_2.1_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_bf16.safetensors)\n- [qwen_image_2.1_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors)\n\n**text_encoders**\n\n- [qwen3vl_8b_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_bf16.safetensors)\n- [qwen3vl_8b_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors) \n\n**vae**\n\n- [qwen_image_2.1_vae_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors)\n\n**loras**\n\n- [p_qwen_image_2.1_5step_v0.1.safetensors](https://huggingface.co/PrunaAI/Pruna-Qwen-Image-2.1/blob/main/p_qwen_image_2.1_5step_v0.1.safetensors)\n\n- [p_qwen_image_2.1_8step_v0.1.safetensors](https://huggingface.co/PrunaAI/Pruna-Qwen-Image-2.1/blob/main/p_qwen_image_2.1_8step_v0.1.safetensors)\n\n## Model Storage Location\n\n```\nšŸ“‚ ComfyUI/\nā”œā”€ā”€ šŸ“‚ models/\n│ ā”œā”€ā”€ šŸ“‚ diffusion_models/\n│ │ ā”œā”€ā”€ qwen_image_2.1_bf16.safetensors\n│ │ └── qwen_image_2.1_int8_convrot.safetensors\n│ ā”œā”€ā”€ šŸ“‚ text_encoders/\n│ │ ā”œā”€ā”€ qwen3vl_8b_bf16.safetensors\n│ │ └── qwen3vl_8b_int8_convrot.safetensors\n│ └── šŸ“‚ vae/\n│ └── qwen_image_2.1_vae_bf16.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\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" + ], + "widgets_values_named": { + "text": "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Input Assets\n\n- [portrait_model_denim.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/portrait_model_denim.png)\n- [clothing_light_blue_denim_shirt.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/clothing_light_blue_denim_shirt.png)\n\n\n## Model Links\n\n- [Hugging Face:Comfy-Org/Qwen-Image-2.1](https://huggingface.co/Comfy-Org/Qwen-Image-2.1)\n- [ModelScope:Comfy-Org/Qwen-Image-2.1](https://modelscope.cn/models/Comfy-Org/Qwen-Image-2.1)\n\n**diffusion_models**\n\n- [qwen_image_2.1_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_bf16.safetensors)\n- [qwen_image_2.1_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/diffusion_models/qwen_image_2.1_int8_convrot.safetensors)\n\n**text_encoders**\n\n- [qwen3vl_8b_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_bf16.safetensors)\n- [qwen3vl_8b_int8_convrot.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/text_encoders/qwen3vl_8b_int8_convrot.safetensors) \n\n**vae**\n\n- [qwen_image_2.1_vae_bf16.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-2.1/resolve/main/vae/qwen_image_2.1_vae_bf16.safetensors)\n\n**loras**\n\n- [p_qwen_image_2.1_5step_v0.1.safetensors](https://huggingface.co/PrunaAI/Pruna-Qwen-Image-2.1/blob/main/p_qwen_image_2.1_5step_v0.1.safetensors)\n\n- [p_qwen_image_2.1_8step_v0.1.safetensors](https://huggingface.co/PrunaAI/Pruna-Qwen-Image-2.1/blob/main/p_qwen_image_2.1_8step_v0.1.safetensors)\n\n## Model Storage Location\n\n```\nšŸ“‚ ComfyUI/\nā”œā”€ā”€ šŸ“‚ models/\n│ ā”œā”€ā”€ šŸ“‚ diffusion_models/\n│ │ ā”œā”€ā”€ qwen_image_2.1_bf16.safetensors\n│ │ └── qwen_image_2.1_int8_convrot.safetensors\n│ ā”œā”€ā”€ šŸ“‚ text_encoders/\n│ │ ā”œā”€ā”€ qwen3vl_8b_bf16.safetensors\n│ │ └── qwen3vl_8b_int8_convrot.safetensors\n│ └── šŸ“‚ vae/\n│ └── qwen_image_2.1_vae_bf16.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\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" + }, + "color": "#222", + "bgcolor": "#000" + }, + { + "id": 495, + "type": "QwenImage21Cache", + "pos": [ + 3768.8367573820747, + 2144.779009832356 + ], + "size": [ + 270, + 90 + ], + "flags": {}, + "order": 28, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 799 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 759 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "QwenImage21Cache", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "auto", + "default" + ], + "widgets_values_named": { + "device": "auto", + "dtype": "default" + } + }, + { + "id": 516, + "type": "Note", + "pos": [ + 4112.577645827912, + 2543.6690459261044 + ], + "size": [ + 402.9878624440562, + 88 + ], + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": {}, + "widgets_values": [ + "To use res_2m/res_2s/deis_2m, you need res4lyf nodes installed.\n\nhttps://github.com/ClownsharkBatwing/RES4LYF" + ], + "widgets_values_named": { + "text": "To use res_2m/res_2s/deis_2m, you need res4lyf nodes installed.\n\nhttps://github.com/ClownsharkBatwing/RES4LYF" + }, + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 500, + "type": "PreviewImage", + "pos": [ + 5394.629953428362, + 2001.5792980004044 + ], + "size": [ + 601.8856780574242, + 412.11830959980375 + ], + "flags": {}, + "order": 35, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 794 + } + ], + "outputs": [ + { + "name": "images", + "type": "IMAGE", + "links": null + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "PreviewImage", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [], + "widgets_values_named": {} + }, + { + "id": 490, + "type": "KSampler", + "pos": [ + 4191.932024471378, + 1812.297418710113 + ], + "size": [ + 270, + 651 + ], + "flags": {}, + "order": 29, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 759 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 775 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 776 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 788 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 756 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "KSampler", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 42, + "fixed", + 8, + 1, + "deis_2m", + "simple", + 1 + ], + "widgets_values_named": { + "seed": 42, + "control_after_generate": "fixed", + "steps": 8, + "cfg": 1, + "sampler_name": "deis_2m", + "scheduler": "simple", + "denoise": 1 + } + }, + { + "id": 475, + "type": "LoadImage", + "pos": [ + 2237.0713739596413, + 2196.55255720104 + ], + "size": [ + 489.2719117107954, + 506.7169146150454 + ], + "flags": { + "collapsed": false + }, + "order": 16, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 739 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": [] + } + ], + "title": "Head Reference", + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "LoadImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "thispersondoesnotexist (1).jpg", + "image" + ], + "widgets_values_named": { + "image": "thispersondoesnotexist (1).jpg", + "upload": "image" + } + }, + { + "id": 470, + "type": "LoadImage", + "pos": [ + 1670.4413112887125, + 2192.3681468445216 + ], + "size": [ + 528.6018942852943, + 517.2049099682451 + ], + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 731 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "title": "Body Reference", + "properties": { + "cnr_id": "comfy-core", + "ver": "0.37.1", + "Node name for S&R": "LoadImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "DKhaf_RMhhQ.jpg", + "image" + ], + "widgets_values_named": { + "image": "DKhaf_RMhhQ.jpg", + "upload": "image" + } + } + ], + "links": [ + [ + 731, + 470, + 0, + 477, + 0, + "IMAGE" + ], + [ + 735, + 13, + 0, + 477, + 2, + "INT" + ], + [ + 736, + 13, + 1, + 477, + 3, + "INT" + ], + [ + 737, + 13, + 0, + 478, + 2, + "INT" + ], + [ + 738, + 13, + 1, + 478, + 3, + "INT" + ], + [ + 739, + 475, + 0, + 478, + 0, + "IMAGE" + ], + [ + 744, + 461, + 0, + 480, + 1, + "IMAGE" + ], + [ + 754, + 485, + 0, + 487, + 1, + "VAE" + ], + [ + 755, + 487, + 0, + 461, + 0, + "IMAGE" + ], + [ + 756, + 490, + 0, + 487, + 0, + "LATENT" + ], + [ + 759, + 495, + 0, + 490, + 0, + "MODEL" + ], + [ + 770, + 491, + 0, + 492, + 0, + "MODEL" + ], + [ + 772, + 484, + 0, + 496, + 0, + "CLIP" + ], + [ + 774, + 485, + 0, + 496, + 4, + "VAE" + ], + [ + 775, + 496, + 0, + 490, + 1, + "CONDITIONING" + ], + [ + 776, + 496, + 1, + 490, + 2, + "CONDITIONING" + ], + [ + 788, + 486, + 0, + 490, + 3, + "LATENT" + ], + [ + 791, + 461, + 0, + 498, + 2, + "IMAGE" + ], + [ + 793, + 498, + 0, + 499, + 0, + "IMAGE" + ], + [ + 794, + 499, + 0, + 500, + 0, + "IMAGE" + ], + [ + 799, + 493, + 0, + 495, + 0, + "MODEL" + ], + [ + 800, + 492, + 0, + 493, + 0, + "MODEL" + ], + [ + 805, + 477, + 0, + 505, + 0, + "IMAGE" + ], + [ + 807, + 506, + 0, + 496, + 1, + "IMAGE" + ], + [ + 809, + 507, + 0, + 480, + 0, + "IMAGE" + ], + [ + 810, + 508, + 0, + 498, + 0, + "IMAGE" + ], + [ + 813, + 478, + 0, + 509, + 0, + "IMAGE" + ], + [ + 814, + 510, + 0, + 496, + 2, + "IMAGE" + ], + [ + 816, + 511, + 0, + 498, + 1, + "IMAGE" + ], + [ + 817, + 477, + 1, + 512, + 0, + "INT" + ], + [ + 819, + 477, + 2, + 513, + 0, + "INT" + ], + [ + 820, + 514, + 0, + 486, + 0, + "INT" + ], + [ + 821, + 515, + 0, + 486, + 1, + "INT" + ] + ], + "groups": [ + { + "id": 34, + "title": "Models", + "bounding": [ + 2811.1026385661135, + 1711.4116754047639, + 527.6032308619097, + 1055.3236429341985 + ], + "color": "#3f789e", + "flags": {} + }, + { + "id": 35, + "title": "Image Size", + "bounding": [ + 3360.698035328163, + 2518.8710926928547, + 708.5073852107066, + 236.56396025295726 + ], + "color": "#3f789e", + "flags": {} + }, + { + "id": 36, + "title": "Conditioning", + "bounding": [ + 3356.6095399874143, + 1711.8731472003014, + 713.9595218151089, + 776.242869109346 + ], + "color": "#3f789e", + "flags": {} + }, + { + "id": 37, + "title": "Sampling", + "bounding": [ + 4084.8645997605254, + 1712.7816697977712, + 463.020239092446, + 772.7529886555685 + ], + "color": "#3f789e", + "flags": {} + }, + { + "id": 38, + "title": "Inputs", + "bounding": [ + 1500.6640222320157, + 1702.0791000952963, + 1291.7247087470676, + 1066.4338324976673 + ], + "color": "#3f789e", + "flags": {} + }, + { + "id": 39, + "title": "Results", + "bounding": [ + 4563.2444650879315, + 1716.6998499855167, + 2212.988989543688, + 767.506449394119 + ], + "color": "#3f789e", + "flags": {} + } + ], + "config": {}, + "extra": { + "ds": { + "scale": 0.47362440744769585, + "offset": [ + -584.1861468917878, + -1208.6472752836007 + ] + }, + "frontendVersion": "1.52.7", + "VHS_latentpreview": true, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true, + "ue_links": [], + "links_added_by_ue": [] + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflows/Head Swap V3 Simple Workflow (With Lightining LoRA) .json b/workflows/Head Swap V3 Simple Workflow (With Lightining LoRA) .json new file mode 100644 index 0000000000000000000000000000000000000000..306a76b5d3b44eabcc885609a065d262cb1f9c74 --- /dev/null +++ b/workflows/Head Swap V3 Simple Workflow (With Lightining LoRA) .json @@ -0,0 +1,2057 @@ +{ + "id": "91f6bbe2-ed41-4fd6-bac7-71d5b5864ecb", + "revision": 0, + "last_node_id": 415, + "last_link_id": 694, + "nodes": [ + { + "id": 351, + "type": "MarkdownNote", + "pos": [ + 760, + 2630 + ], + "size": [ + 330, + 90 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Note: About image size", + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.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": 352, + "type": "MarkdownNote", + "pos": [ + 770, + 2210 + ], + "size": [ + 300, + 160 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Note: KSampler settings", + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "You can test and find the best setting by yourself. The following table is for reference.\n\n| Model | Steps | CFG |\n|---------------------|---------------|---------------|\n| Offical | 50 | 4.0 \n| fp8_e4m3fn | 20 | 2.5 |\n| fp8_e4m3fn + 4steps LoRA | 4 | 1.0 |\n" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 388, + "type": "MarkdownNote", + "pos": [ + -590, + 1430 + ], + "size": [ + 310, + 150 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Note: Raw latent version", + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.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": 99, + "type": "MarkdownNote", + "pos": [ + -847.7141660563491, + 1641.9723590165363 + ], + "size": [ + 550, + 550 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Model links", + "properties": { + "ue_properties": { + "version": "7.1", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "[Tutorial](https://docs.comfy.org/tutorials/image/qwen/qwen-image-edit)\n\n\n## Model links\n\nYou can find all the models on [Comfy-Org/Qwen-Image_ComfyUI](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main) and [Comfy-Org/Qwen-Image-Edit_ComfyUI](https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI) \n\n**Diffusion model**\n\n- [qwen_image_edit_2509_fp8_e4m3fn.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors)\n\n**LoRA**\n\n- [Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors](https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors)\n\n**Text encoder**\n\n- [qwen_2.5_vl_7b_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.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\nModel Storage Location\n\n```\nšŸ“‚ ComfyUI/\nā”œā”€ā”€ šŸ“‚ models/\n│ ā”œā”€ā”€ šŸ“‚ diffusion_models/\n│ │ └── qwen_image_edit_2509_fp8_e4m3fn.safetensors\n│ ā”œā”€ā”€ šŸ“‚ loras/\n│ │ └── Qwen-Image-Lightning-4steps-V1.0.safetensors\n│ ā”œā”€ā”€ šŸ“‚ vae/\n│ │ └── qwen_image_vae.safetensors\n│ └── šŸ“‚ text_encoders/\n│ └── qwen_2.5_vl_7b_fp8_scaled.safetensors\n```\n" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 336, + "type": "VAEDecode", + "pos": [ + 1110, + 1470 + ], + "size": [ + 210, + 46 + ], + "flags": { + "collapsed": false + }, + "order": 27, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 643 + }, + { + "name": "vae", + "type": "VAE", + "link": 501 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "slot_index": 0, + "links": [ + 507, + 640 + ] + } + ], + "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.1", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 399, + "type": "SigmasPreview", + "pos": [ + 463.992447879656, + 2000.7420089842353 + ], + "size": [ + 270, + 294 + ], + "flags": {}, + "order": 26, + "mode": 0, + "inputs": [ + { + "name": "sigmas", + "type": "SIGMAS", + "link": 635 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": null + } + ], + "properties": { + "cnr_id": "RES4LYF", + "ver": "7750bf7800b6ad9d670308a09989fc0c04c40cec", + "Node name for S&R": "SigmasPreview", + "ue_properties": { + "widget_ue_connectable": { + "print_as_list": true, + "line_color": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + false, + "blue" + ] + }, + { + "id": 404, + "type": "UnetLoaderGGUF", + "pos": [ + -216.68753390661175, + 1530.1451235073187 + ], + "size": [ + 270, + 58 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 644 + ] + } + ], + "properties": { + "cnr_id": "ComfyUI-GGUF", + "ver": "be2a08330d7ec232d684e50ab938870d7529471e", + "Node name for S&R": "UnetLoaderGGUF", + "ue_properties": { + "widget_ue_connectable": { + "unet_name": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Qwen-Image-Edit-2509-Q8_0.gguf" + ] + }, + { + "id": 393, + "type": "ConditioningZeroOut", + "pos": [ + 461.80927265158533, + 1781.820542192547 + ], + "size": [ + 204.134765625, + 26 + ], + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "conditioning", + "type": "CONDITIONING", + "link": 625 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 632 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.66", + "Node name for S&R": "ConditioningZeroOut", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 337, + "type": "VAELoader", + "pos": [ + -233.2964426223059, + 2055.1330710502925 + ], + "size": [ + 330, + 60 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "slot_index": 0, + "links": [ + 501, + 593, + 621, + 652 + ] + } + ], + "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.1", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "qwen_image_vae.safetensors" + ] + }, + { + "id": 338, + "type": "CLIPLoader", + "pos": [ + -234.41370218525492, + 1887.3122541096511 + ], + "size": [ + 330, + 110 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "CLIP", + "type": "CLIP", + "slot_index": 0, + "links": [ + 650 + ] + } + ], + "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.1", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "qwen_2.5_vl_7b_fp8_scaled.safetensors", + "qwen_image", + "default" + ] + }, + { + "id": 335, + "type": "CFGNorm", + "pos": [ + 770, + 1580 + ], + "size": [ + 290, + 60 + ], + "flags": {}, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 499 + } + ], + "outputs": [ + { + "name": "patched_model", + "type": "MODEL", + "links": [ + 646, + 647 + ] + } + ], + "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.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 0.96 + ] + }, + { + "id": 395, + "type": "SamplerCustom", + "pos": [ + 785.3967408723166, + 1702.3934843325708 + ], + "size": [ + 270, + 442 + ], + "flags": {}, + "order": 25, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 646 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 651 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 632 + }, + { + "name": "sampler", + "type": "SAMPLER", + "link": 634 + }, + { + "name": "sigmas", + "type": "SIGMAS", + "link": 631 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 688 + } + ], + "outputs": [ + { + "name": "output", + "type": "LATENT", + "links": [ + 643 + ] + }, + { + "name": "denoised_output", + "type": "LATENT", + "links": null + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.66", + "Node name for S&R": "SamplerCustom", + "ue_properties": { + "widget_ue_connectable": { + "add_noise": true, + "noise_seed": true, + "cfg": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + true, + 43, + "fixed", + 1 + ] + }, + { + "id": 342, + "type": "SaveImage", + "pos": [ + 1335.2181154371806, + 1535.0472844531116 + ], + "size": [ + 950, + 1040 + ], + "flags": {}, + "order": 28, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 507 + } + ], + "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.1", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 375, + "type": "VAEEncode", + "pos": [ + -77.73979042662421, + 3347.769705583306 + ], + "size": [ + 140, + 46 + ], + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 654 + }, + { + "name": "vae", + "type": "VAE", + "link": 593 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [] + } + ], + "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.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 392, + "type": "VAEEncode", + "pos": [ + 176.60111131096238, + 3320.3583506683003 + ], + "size": [ + 140, + 46 + ], + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 666 + }, + { + "name": "vae", + "type": "VAE", + "link": 621 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [] + } + ], + "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.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 348, + "type": "TextEncodeQwenImageEditPlus", + "pos": [ + 230, + 1520 + ], + "size": [ + 400, + 200 + ], + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 650 + }, + { + "name": "vae", + "shape": 7, + "type": "VAE", + "link": 652 + }, + { + "name": "image1", + "shape": 7, + "type": "IMAGE", + "link": 694 + }, + { + "name": "image2", + "shape": 7, + "type": "IMAGE", + "link": 692 + }, + { + "name": "image3", + "shape": 7, + "type": "IMAGE", + "link": null + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 625, + 651 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "TextEncodeQwenImageEditPlus", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.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. ensure the head and body have correct anatomical proportions, and blend the skin tones, shadows, and lighting naturally so the final result appears as one coherent, realistic person." + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 345, + "type": "EmptySD3LatentImage", + "pos": [ + 780, + 2460 + ], + "size": [ + 270, + 106 + ], + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 686 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 687 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 688 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "EmptySD3LatentImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 1024, + 1024, + 1 + ] + }, + { + "id": 394, + "type": "LoraLoaderModelOnly", + "pos": [ + -228.35177868884705, + 1758.9051393542645 + ], + "size": [ + 310, + 82 + ], + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 627 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 628 + ] + } + ], + "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.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "qwen/bfs_head_v3_000004000_05_11_2025.safetensors", + 1 + ] + }, + { + "id": 401, + "type": "ImageConcanate", + "pos": [ + 1331.419054009655, + 2975.4485961168384 + ], + "size": [ + 315, + 102 + ], + "flags": {}, + "order": 29, + "mode": 0, + "inputs": [ + { + "name": "image1", + "type": "IMAGE", + "link": 636 + }, + { + "name": "image2", + "type": "IMAGE", + "link": 640 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 689 + ] + } + ], + "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": 414, + "type": "AddLabel", + "pos": [ + 1382.771393475201, + 3145.4050960347063 + ], + "size": [ + 270, + 270 + ], + "flags": {}, + "order": 30, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 689 + }, + { + "name": "caption", + "shape": 7, + "type": "STRING", + "link": null + }, + { + "name": "text", + "type": "STRING", + "widget": { + "name": "text" + }, + "link": 691 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 690 + ] + } + ], + "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": 354, + "type": "LoraLoaderModelOnly", + "pos": [ + -231.11725956294902, + 1638.827404370509 + ], + "size": [ + 308.2550597731115, + 82 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 644 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 627 + ] + } + ], + "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.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "qwen/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-fp32.safetensors", + 0.65 + ] + }, + { + "id": 400, + "type": "ImageConcanate", + "pos": [ + 1315.1134207304385, + 2808.043750343848 + ], + "size": [ + 315, + 102 + ], + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "image1", + "type": "IMAGE", + "link": 655 + }, + { + "name": "image2", + "type": "IMAGE", + "link": 661 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 636 + ] + } + ], + "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": 396, + "type": "Sigmas Power", + "pos": [ + 465.24325209406, + 1880.3391512099415 + ], + "size": [ + 270, + 58 + ], + "flags": {}, + "order": 24, + "mode": 0, + "inputs": [ + { + "name": "sigmas", + "type": "SIGMAS", + "link": 630 + } + ], + "outputs": [ + { + "name": "SIGMAS", + "type": "SIGMAS", + "links": [ + 631, + 635 + ] + } + ], + "properties": { + "cnr_id": "RES4LYF", + "ver": "7750bf7800b6ad9d670308a09989fc0c04c40cec", + "Node name for S&R": "Sigmas Power", + "ue_properties": { + "widget_ue_connectable": { + "power": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 1 + ] + }, + { + "id": 405, + "type": "ImageResizeKJv2", + "pos": [ + -209.55507462802854, + 2900.540860001657 + ], + "size": [ + 270, + 336 + ], + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 653 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 654, + 655 + ] + }, + { + "name": "width", + "type": "INT", + "links": null + }, + { + "name": "height", + "type": "INT", + "links": null + }, + { + "name": "mask", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "6ee278aa7d802c03ad713a7c5fbc02861b6773a8", + "Node name for S&R": "ImageResizeKJv2", + "ue_properties": { + "widget_ue_connectable": { + "width": true, + "height": true, + "upscale_method": true, + "keep_proportion": true, + "pad_color": true, + "crop_position": true, + "divisible_by": true, + "device": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 1328, + 1328, + "lanczos", + "resize", + "0, 0, 0", + "center", + 2, + "cpu" + ] + }, + { + "id": 339, + "type": "ModelSamplingAuraFlow", + "pos": [ + 770, + 1470 + ], + "size": [ + 290, + 60 + ], + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 628 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 499 + ] + } + ], + "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.1", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 1 + ] + }, + { + "id": 406, + "type": "ImageResizeKJv2", + "pos": [ + 98.0749095173281, + 2901.9331504391666 + ], + "size": [ + 270, + 336 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 660 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 661, + 666, + 694 + ] + }, + { + "name": "width", + "type": "INT", + "links": [ + 686 + ] + }, + { + "name": "height", + "type": "INT", + "links": [ + 687 + ] + }, + { + "name": "mask", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "6ee278aa7d802c03ad713a7c5fbc02861b6773a8", + "Node name for S&R": "ImageResizeKJv2", + "ue_properties": { + "widget_ue_connectable": { + "width": true, + "height": true, + "upscale_method": true, + "keep_proportion": true, + "pad_color": true, + "crop_position": true, + "divisible_by": true, + "device": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 1328, + 1328, + "lanczos", + "resize", + "0, 0, 0", + "center", + 2, + "cpu" + ] + }, + { + "id": 343, + "type": "LoadImage", + "pos": [ + 80.75835968067695, + 2508.670398891777 + ], + "size": [ + 274.080078125, + 314.0000305175781 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 660 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "title": "Body Reference", + "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.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "pasted/image (190).png", + "image" + ] + }, + { + "id": 403, + "type": "SaveImage", + "pos": [ + 1742.5216783457422, + 2854.8733728218735 + ], + "size": [ + 270, + 270 + ], + "flags": {}, + "order": 31, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 690 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.66", + "Node name for S&R": "SaveImage", + "ue_properties": { + "widget_ue_connectable": { + "filename_prefix": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 349, + "type": "LoadImage", + "pos": [ + -219.2416403193231, + 2508.670398891777 + ], + "size": [ + 274.080078125, + 314.0000305175781 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 653, + 692 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "title": "Face Reference", + "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.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "pasted/image (195).png", + "image" + ] + }, + { + "id": 398, + "type": "KSamplerSelect", + "pos": [ + 149.70142110620847, + 1853.0425292814919 + ], + "size": [ + 270, + 58 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "SAMPLER", + "type": "SAMPLER", + "links": [ + 634 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.66", + "Node name for S&R": "KSamplerSelect", + "ue_properties": { + "widget_ue_connectable": { + "sampler_name": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "res_2s" + ] + }, + { + "id": 397, + "type": "BasicScheduler", + "pos": [ + 157.00415502771054, + 1972.2583059872516 + ], + "size": [ + 270, + 106 + ], + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 647 + } + ], + "outputs": [ + { + "name": "SIGMAS", + "type": "SIGMAS", + "links": [ + 630 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.66", + "Node name for S&R": "BasicScheduler", + "ue_properties": { + "widget_ue_connectable": { + "scheduler": true, + "steps": true, + "denoise": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "beta57", + 4, + 1 + ] + }, + { + "id": 415, + "type": "PrimitiveStringMultiline", + "pos": [ + 823.1934209401802, + 3145.803364031705 + ], + "size": [ + 400, + 200 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 691 + ] + } + ], + "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": [ + "res_2s + beta57 + 4 steps (LoRa: Lightining 4steps, strenght: 0.6) + CFG Norm: 0.96" + ] + } + ], + "links": [ + [ + 499, + 339, + 0, + 335, + 0, + "MODEL" + ], + [ + 501, + 337, + 0, + 336, + 1, + "VAE" + ], + [ + 507, + 336, + 0, + 342, + 0, + "IMAGE" + ], + [ + 593, + 337, + 0, + 375, + 1, + "VAE" + ], + [ + 621, + 337, + 0, + 392, + 1, + "VAE" + ], + [ + 625, + 348, + 0, + 393, + 0, + "CONDITIONING" + ], + [ + 627, + 354, + 0, + 394, + 0, + "MODEL" + ], + [ + 628, + 394, + 0, + 339, + 0, + "MODEL" + ], + [ + 630, + 397, + 0, + 396, + 0, + "SIGMAS" + ], + [ + 631, + 396, + 0, + 395, + 4, + "SIGMAS" + ], + [ + 632, + 393, + 0, + 395, + 2, + "CONDITIONING" + ], + [ + 634, + 398, + 0, + 395, + 3, + "SAMPLER" + ], + [ + 635, + 396, + 0, + 399, + 0, + "SIGMAS" + ], + [ + 636, + 400, + 0, + 401, + 0, + "IMAGE" + ], + [ + 640, + 336, + 0, + 401, + 1, + "IMAGE" + ], + [ + 643, + 395, + 0, + 336, + 0, + "LATENT" + ], + [ + 644, + 404, + 0, + 354, + 0, + "MODEL" + ], + [ + 646, + 335, + 0, + 395, + 0, + "MODEL" + ], + [ + 647, + 335, + 0, + 397, + 0, + "MODEL" + ], + [ + 650, + 338, + 0, + 348, + 0, + "CLIP" + ], + [ + 651, + 348, + 0, + 395, + 1, + "CONDITIONING" + ], + [ + 652, + 337, + 0, + 348, + 1, + "VAE" + ], + [ + 653, + 349, + 0, + 405, + 0, + "IMAGE" + ], + [ + 654, + 405, + 0, + 375, + 0, + "IMAGE" + ], + [ + 655, + 405, + 0, + 400, + 0, + "IMAGE" + ], + [ + 660, + 343, + 0, + 406, + 0, + "IMAGE" + ], + [ + 661, + 406, + 0, + 400, + 1, + "IMAGE" + ], + [ + 666, + 406, + 0, + 392, + 0, + "IMAGE" + ], + [ + 686, + 406, + 1, + 345, + 0, + "INT" + ], + [ + 687, + 406, + 2, + 345, + 1, + "INT" + ], + [ + 688, + 345, + 0, + 395, + 5, + "LATENT" + ], + [ + 689, + 401, + 0, + 414, + 0, + "IMAGE" + ], + [ + 690, + 414, + 0, + 403, + 0, + "IMAGE" + ], + [ + 691, + 415, + 0, + 414, + 2, + "STRING" + ], + [ + 692, + 349, + 0, + 348, + 3, + "IMAGE" + ], + [ + 694, + 406, + 0, + 348, + 2, + "IMAGE" + ] + ], + "groups": [ + { + "id": 49, + "title": "Raw latent version", + "bounding": [ + -270, + 1400, + 2460.6333689274365, + 2062.290570000865 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "id": 45, + "title": "Step1 - Load models", + "bounding": [ + -260, + 1440, + 380.4251489818773, + 942.372556994841 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "id": 46, + "title": "Step 2 - Upload image for editing", + "bounding": [ + -249.2416403193231, + 2408.6703988917766, + 979.5797803880118, + 708.0663764021983 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "id": 47, + "title": "Step 4 - Prompt", + "bounding": [ + 140, + 1440, + 605.6405800580737, + 948.5275399271272 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "id": 48, + "title": "Step3 - Image Size", + "bounding": [ + 760, + 2390, + 310, + 200 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + } + ], + "config": {}, + "extra": { + "ds": { + "scale": 0.32349184307607465, + "offset": [ + 2595.958068867563, + -531.3827891029514 + ] + }, + "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 +} \ No newline at end of file diff --git a/workflows/Head Swap V3 Simple Workflow (Without Lightining LoRA).json b/workflows/Head Swap V3 Simple Workflow (Without Lightining LoRA).json new file mode 100644 index 0000000000000000000000000000000000000000..2bd1649aa0d3c1b8b4452d3b477fa463e550615b --- /dev/null +++ b/workflows/Head Swap V3 Simple Workflow (Without Lightining LoRA).json @@ -0,0 +1,3622 @@ +{ + "id": "91f6bbe2-ed41-4fd6-bac7-71d5b5864ecb", + "revision": 0, + "last_node_id": 419, + "last_link_id": 702, + "nodes": [ + { + "id": 351, + "type": "MarkdownNote", + "pos": [ + 760, + 2630 + ], + "size": [ + 330, + 90 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Note: About image size", + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.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": 352, + "type": "MarkdownNote", + "pos": [ + 770, + 2210 + ], + "size": [ + 300, + 160 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Note: KSampler settings", + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "You can test and find the best setting by yourself. The following table is for reference.\n\n| Model | Steps | CFG |\n|---------------------|---------------|---------------|\n| Offical | 50 | 4.0 \n| fp8_e4m3fn | 20 | 2.5 |\n| fp8_e4m3fn + 4steps LoRA | 4 | 1.0 |\n" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 388, + "type": "MarkdownNote", + "pos": [ + -590, + 1430 + ], + "size": [ + 310, + 150 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Note: Raw latent version", + "properties": { + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.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": 99, + "type": "MarkdownNote", + "pos": [ + -847.7141660563491, + 1641.9723590165363 + ], + "size": [ + 550, + 550 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [], + "outputs": [], + "title": "Model links", + "properties": { + "ue_properties": { + "version": "7.1", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "[Tutorial](https://docs.comfy.org/tutorials/image/qwen/qwen-image-edit)\n\n\n## Model links\n\nYou can find all the models on [Comfy-Org/Qwen-Image_ComfyUI](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/tree/main) and [Comfy-Org/Qwen-Image-Edit_ComfyUI](https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI) \n\n**Diffusion model**\n\n- [qwen_image_edit_2509_fp8_e4m3fn.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors)\n\n**LoRA**\n\n- [Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors](https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors)\n\n**Text encoder**\n\n- [qwen_2.5_vl_7b_fp8_scaled.safetensors](https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.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\nModel Storage Location\n\n```\nšŸ“‚ ComfyUI/\nā”œā”€ā”€ šŸ“‚ models/\n│ ā”œā”€ā”€ šŸ“‚ diffusion_models/\n│ │ └── qwen_image_edit_2509_fp8_e4m3fn.safetensors\n│ ā”œā”€ā”€ šŸ“‚ loras/\n│ │ └── Qwen-Image-Lightning-4steps-V1.0.safetensors\n│ ā”œā”€ā”€ šŸ“‚ vae/\n│ │ └── qwen_image_vae.safetensors\n│ └── šŸ“‚ text_encoders/\n│ └── qwen_2.5_vl_7b_fp8_scaled.safetensors\n```\n" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 399, + "type": "SigmasPreview", + "pos": [ + 463.992447879656, + 2000.7420089842353 + ], + "size": [ + 270, + 294 + ], + "flags": {}, + "order": 27, + "mode": 0, + "inputs": [ + { + "name": "sigmas", + "type": "SIGMAS", + "link": 635 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": null + } + ], + "properties": { + "cnr_id": "RES4LYF", + "ver": "7750bf7800b6ad9d670308a09989fc0c04c40cec", + "Node name for S&R": "SigmasPreview", + "ue_properties": { + "widget_ue_connectable": { + "print_as_list": true, + "line_color": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + false, + "blue" + ] + }, + { + "id": 404, + "type": "UnetLoaderGGUF", + "pos": [ + -216.68753390661175, + 1530.1451235073187 + ], + "size": [ + 270, + 58 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 644 + ] + } + ], + "properties": { + "cnr_id": "ComfyUI-GGUF", + "ver": "be2a08330d7ec232d684e50ab938870d7529471e", + "Node name for S&R": "UnetLoaderGGUF", + "ue_properties": { + "widget_ue_connectable": { + "unet_name": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "Qwen-Image-Edit-2509-Q8_0.gguf" + ] + }, + { + "id": 393, + "type": "ConditioningZeroOut", + "pos": [ + 461.80927265158533, + 1781.820542192547 + ], + "size": [ + 204.134765625, + 26 + ], + "flags": {}, + "order": 22, + "mode": 0, + "inputs": [ + { + "name": "conditioning", + "type": "CONDITIONING", + "link": 625 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 632 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.66", + "Node name for S&R": "ConditioningZeroOut", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 337, + "type": "VAELoader", + "pos": [ + -233.2964426223059, + 2055.1330710502925 + ], + "size": [ + 330, + 60 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "VAE", + "type": "VAE", + "slot_index": 0, + "links": [ + 501, + 593, + 621, + 652 + ] + } + ], + "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.1", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "qwen_image_vae.safetensors" + ] + }, + { + "id": 338, + "type": "CLIPLoader", + "pos": [ + -234.41370218525492, + 1887.3122541096511 + ], + "size": [ + 330, + 110 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "CLIP", + "type": "CLIP", + "slot_index": 0, + "links": [ + 650 + ] + } + ], + "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.1", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "qwen_2.5_vl_7b_fp8_scaled.safetensors", + "qwen_image", + "default" + ] + }, + { + "id": 375, + "type": "VAEEncode", + "pos": [ + -77.73979042662421, + 3347.769705583306 + ], + "size": [ + 140, + 46 + ], + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 654 + }, + { + "name": "vae", + "type": "VAE", + "link": 593 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [] + } + ], + "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.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 392, + "type": "VAEEncode", + "pos": [ + 176.60111131096238, + 3320.3583506683003 + ], + "size": [ + 140, + 46 + ], + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "name": "pixels", + "type": "IMAGE", + "link": 666 + }, + { + "name": "vae", + "type": "VAE", + "link": 621 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [] + } + ], + "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.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 345, + "type": "EmptySD3LatentImage", + "pos": [ + 780, + 2460 + ], + "size": [ + 270, + 106 + ], + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "width", + "type": "INT", + "widget": { + "name": "width" + }, + "link": 686 + }, + { + "name": "height", + "type": "INT", + "widget": { + "name": "height" + }, + "link": 687 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "links": [ + 688 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "EmptySD3LatentImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 1024, + 1024, + 1 + ] + }, + { + "id": 401, + "type": "ImageConcanate", + "pos": [ + 1331.419054009655, + 2975.4485961168384 + ], + "size": [ + 315, + 102 + ], + "flags": {}, + "order": 30, + "mode": 0, + "inputs": [ + { + "name": "image1", + "type": "IMAGE", + "link": 636 + }, + { + "name": "image2", + "type": "IMAGE", + "link": 640 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 689 + ] + } + ], + "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": 414, + "type": "AddLabel", + "pos": [ + 1382.771393475201, + 3145.4050960347063 + ], + "size": [ + 270, + 270 + ], + "flags": {}, + "order": 32, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 689 + }, + { + "name": "caption", + "shape": 7, + "type": "STRING", + "link": null + }, + { + "name": "text", + "type": "STRING", + "widget": { + "name": "text" + }, + "link": 691 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 690 + ] + } + ], + "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": 400, + "type": "ImageConcanate", + "pos": [ + 1315.1134207304385, + 2808.043750343848 + ], + "size": [ + 315, + 102 + ], + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "name": "image1", + "type": "IMAGE", + "link": 655 + }, + { + "name": "image2", + "type": "IMAGE", + "link": 661 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 636 + ] + } + ], + "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": 396, + "type": "Sigmas Power", + "pos": [ + 465.24325209406, + 1880.3391512099415 + ], + "size": [ + 270, + 58 + ], + "flags": {}, + "order": 25, + "mode": 0, + "inputs": [ + { + "name": "sigmas", + "type": "SIGMAS", + "link": 630 + } + ], + "outputs": [ + { + "name": "SIGMAS", + "type": "SIGMAS", + "links": [ + 631, + 635 + ] + } + ], + "properties": { + "cnr_id": "RES4LYF", + "ver": "7750bf7800b6ad9d670308a09989fc0c04c40cec", + "Node name for S&R": "Sigmas Power", + "ue_properties": { + "widget_ue_connectable": { + "power": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 1 + ] + }, + { + "id": 403, + "type": "SaveImage", + "pos": [ + 1742.5216783457422, + 2854.8733728218735 + ], + "size": [ + 270, + 270 + ], + "flags": {}, + "order": 34, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 690 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.66", + "Node name for S&R": "SaveImage", + "ue_properties": { + "widget_ue_connectable": { + "filename_prefix": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 348, + "type": "TextEncodeQwenImageEditPlus", + "pos": [ + 230, + 1520 + ], + "size": [ + 400, + 200 + ], + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 650 + }, + { + "name": "vae", + "shape": 7, + "type": "VAE", + "link": 652 + }, + { + "name": "image1", + "shape": 7, + "type": "IMAGE", + "link": 694 + }, + { + "name": "image2", + "shape": 7, + "type": "IMAGE", + "link": 698 + }, + { + "name": "image3", + "shape": 7, + "type": "IMAGE", + "link": null + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "links": [ + 625, + 651 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "TextEncodeQwenImageEditPlus", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.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. ensure the head and body have correct anatomical proportions, and blend the skin tones, shadows, and lighting naturally so the final result appears as one coherent, realistic person." + ], + "color": "#232", + "bgcolor": "#353" + }, + { + "id": 339, + "type": "ModelSamplingAuraFlow", + "pos": [ + 770, + 1470 + ], + "size": [ + 290, + 60 + ], + "flags": {}, + "order": 21, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 628 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 499 + ] + } + ], + "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.1", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 3 + ] + }, + { + "id": 395, + "type": "SamplerCustom", + "pos": [ + 785.3967408723166, + 1702.3934843325708 + ], + "size": [ + 270, + 442 + ], + "flags": {}, + "order": 26, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 646 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 651 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 632 + }, + { + "name": "sampler", + "type": "SAMPLER", + "link": 634 + }, + { + "name": "sigmas", + "type": "SIGMAS", + "link": 631 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 688 + } + ], + "outputs": [ + { + "name": "output", + "type": "LATENT", + "links": [ + 643 + ] + }, + { + "name": "denoised_output", + "type": "LATENT", + "links": null + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.66", + "Node name for S&R": "SamplerCustom", + "ue_properties": { + "widget_ue_connectable": { + "add_noise": true, + "noise_seed": true, + "cfg": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + true, + 43, + "fixed", + 2.5 + ] + }, + { + "id": 335, + "type": "CFGNorm", + "pos": [ + 770, + 1580 + ], + "size": [ + 290, + 60 + ], + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 499 + } + ], + "outputs": [ + { + "name": "patched_model", + "type": "MODEL", + "links": [ + 646, + 647 + ] + } + ], + "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.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 0.97 + ] + }, + { + "id": 397, + "type": "BasicScheduler", + "pos": [ + 157.00415502771054, + 1972.2583059872516 + ], + "size": [ + 270, + 106 + ], + "flags": {}, + "order": 24, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 647 + } + ], + "outputs": [ + { + "name": "SIGMAS", + "type": "SIGMAS", + "links": [ + 630 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.66", + "Node name for S&R": "BasicScheduler", + "ue_properties": { + "widget_ue_connectable": { + "scheduler": true, + "steps": true, + "denoise": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "beta57", + 20, + 1 + ] + }, + { + "id": 343, + "type": "LoadImage", + "pos": [ + 80.75835968067695, + 2508.670398891777 + ], + "size": [ + 274.080078125, + 314.0000305175781 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 660 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "title": "Body Reference", + "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.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "pasted/image (188).png", + "image" + ] + }, + { + "id": 398, + "type": "KSamplerSelect", + "pos": [ + 149.70142110620847, + 1853.0425292814919 + ], + "size": [ + 270, + 58 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "SAMPLER", + "type": "SAMPLER", + "links": [ + 634 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.66", + "Node name for S&R": "KSamplerSelect", + "ue_properties": { + "widget_ue_connectable": { + "sampler_name": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "er_sde" + ] + }, + { + "id": 415, + "type": "PrimitiveStringMultiline", + "pos": [ + 823.1934209401802, + 3145.803364031705 + ], + "size": [ + 400, + 200 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "STRING", + "type": "STRING", + "links": [ + 691 + ] + } + ], + "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": [ + "er_sde + beta57 + 20 steps (Without Lightining LoRa) + CFG Norm: 0.97" + ] + }, + { + "id": 342, + "type": "SaveImage", + "pos": [ + 1135.384749717496, + 1589.7391552041724 + ], + "size": [ + 950, + 1040 + ], + "flags": {}, + "order": 29, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 507 + } + ], + "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.1", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 354, + "type": "LoraLoaderModelOnly", + "pos": [ + -231.11725956294902, + 1638.827404370509 + ], + "size": [ + 308.2550597731115, + 82 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 644 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 627 + ] + } + ], + "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.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "qwen/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-fp32.safetensors", + 0.65 + ] + }, + { + "id": 394, + "type": "LoraLoaderModelOnly", + "pos": [ + -228.35177868884705, + 1758.9051393542645 + ], + "size": [ + 310, + 82 + ], + "flags": {}, + "order": 15, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 627 + } + ], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "links": [ + 628 + ] + } + ], + "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.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "qwen/bfs_head_v3_000004000_05_11_2025.safetensors", + 1 + ] + }, + { + "id": 349, + "type": "LoadImage", + "pos": [ + -248.22509748794354, + 2490.0518866708744 + ], + "size": [ + 274.080078125, + 314.0000305175781 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 653 + ] + }, + { + "name": "MASK", + "type": "MASK", + "links": null + } + ], + "title": "Face Reference", + "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.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "pasted/image (187).png", + "image" + ] + }, + { + "id": 336, + "type": "VAEDecode", + "pos": [ + 1191.4970668593867, + 1492.4819494784515 + ], + "size": [ + 210, + 46 + ], + "flags": { + "collapsed": false + }, + "order": 28, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 643 + }, + { + "name": "vae", + "type": "VAE", + "link": 501 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "slot_index": 0, + "links": [ + 507, + 640, + 696 + ] + } + ], + "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.1", + "widget_ue_connectable": {}, + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 417, + "type": "PrimitiveInt", + "pos": [ + 2253.459706955986, + 3291.5680613956974 + ], + "size": [ + 270, + 82 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "INT", + "type": "INT", + "links": [ + 697 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.66", + "Node name for S&R": "PrimitiveInt", + "ue_properties": { + "widget_ue_connectable": { + "value": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 0, + "increment" + ] + }, + { + "id": 419, + "type": "PreviewImage", + "pos": [ + 3378.931433686884, + 2998.8583419579204 + ], + "size": [ + 140, + 26 + ], + "flags": {}, + "order": 33, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 702 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.76", + "Node name for S&R": "PreviewImage", + "ue_properties": { + "widget_ue_connectable": {}, + "input_ue_unconnectable": {}, + "version": "7.5.1" + } + }, + "widgets_values": [] + }, + { + "id": 418, + "type": "fa88efe0-6f2e-4cdd-b71c-cd23ca04ca6e", + "pos": [ + 2600.4419921119866, + 3105.2614201461006 + ], + "size": [ + 372.64471435546875, + 164.49732971191406 + ], + "flags": {}, + "order": 31, + "mode": 0, + "inputs": [ + { + "label": "face_reference", + "name": "images", + "type": "IMAGE", + "link": 700 + }, + { + "label": "body_reference", + "name": "images_1", + "type": "IMAGE", + "link": 701 + }, + { + "label": "result", + "name": "images_2", + "type": "IMAGE", + "link": 696 + }, + { + "label": "map", + "name": "images_3", + "type": "IMAGE", + "link": null + }, + { + "label": "result_cc", + "name": "images_4", + "type": "IMAGE", + "link": null + }, + { + "label": "index", + "name": "int", + "type": "INT", + "link": 697 + } + ], + "outputs": [ + { + "label": "preview", + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 702 + ] + } + ], + "properties": { + "proxyWidgets": [], + "cnr_id": "comfy-core", + "ver": "0.3.59", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [] + }, + { + "id": 406, + "type": "ImageResizeKJv2", + "pos": [ + 419.83086779086926, + 2850.656366764621 + ], + "size": [ + 270, + 336 + ], + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 660 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 661, + 666, + 694, + 701 + ] + }, + { + "name": "width", + "type": "INT", + "links": [ + 686 + ] + }, + { + "name": "height", + "type": "INT", + "links": [ + 687 + ] + }, + { + "name": "mask", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "6ee278aa7d802c03ad713a7c5fbc02861b6773a8", + "Node name for S&R": "ImageResizeKJv2", + "ue_properties": { + "widget_ue_connectable": { + "width": true, + "height": true, + "upscale_method": true, + "keep_proportion": true, + "pad_color": true, + "crop_position": true, + "divisible_by": true, + "device": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 1328, + 1328, + "lanczos", + "resize", + "0, 0, 0", + "center", + 2, + "cpu" + ] + }, + { + "id": 405, + "type": "ImageResizeKJv2", + "pos": [ + -431.0332423890801, + 3106.642803082862 + ], + "size": [ + 270, + 336 + ], + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "name": "image", + "type": "IMAGE", + "link": 653 + }, + { + "name": "mask", + "shape": 7, + "type": "MASK", + "link": null + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 654, + 655, + 698, + 700 + ] + }, + { + "name": "width", + "type": "INT", + "links": null + }, + { + "name": "height", + "type": "INT", + "links": null + }, + { + "name": "mask", + "type": "MASK", + "links": null + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "6ee278aa7d802c03ad713a7c5fbc02861b6773a8", + "Node name for S&R": "ImageResizeKJv2", + "ue_properties": { + "widget_ue_connectable": { + "width": true, + "height": true, + "upscale_method": true, + "keep_proportion": true, + "pad_color": true, + "crop_position": true, + "divisible_by": true, + "device": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + 1328, + 1328, + "lanczos", + "resize", + "0, 0, 0", + "center", + 2, + "cpu" + ] + } + ], + "links": [ + [ + 499, + 339, + 0, + 335, + 0, + "MODEL" + ], + [ + 501, + 337, + 0, + 336, + 1, + "VAE" + ], + [ + 507, + 336, + 0, + 342, + 0, + "IMAGE" + ], + [ + 593, + 337, + 0, + 375, + 1, + "VAE" + ], + [ + 621, + 337, + 0, + 392, + 1, + "VAE" + ], + [ + 625, + 348, + 0, + 393, + 0, + "CONDITIONING" + ], + [ + 627, + 354, + 0, + 394, + 0, + "MODEL" + ], + [ + 628, + 394, + 0, + 339, + 0, + "MODEL" + ], + [ + 630, + 397, + 0, + 396, + 0, + "SIGMAS" + ], + [ + 631, + 396, + 0, + 395, + 4, + "SIGMAS" + ], + [ + 632, + 393, + 0, + 395, + 2, + "CONDITIONING" + ], + [ + 634, + 398, + 0, + 395, + 3, + "SAMPLER" + ], + [ + 635, + 396, + 0, + 399, + 0, + "SIGMAS" + ], + [ + 636, + 400, + 0, + 401, + 0, + "IMAGE" + ], + [ + 640, + 336, + 0, + 401, + 1, + "IMAGE" + ], + [ + 643, + 395, + 0, + 336, + 0, + "LATENT" + ], + [ + 644, + 404, + 0, + 354, + 0, + "MODEL" + ], + [ + 646, + 335, + 0, + 395, + 0, + "MODEL" + ], + [ + 647, + 335, + 0, + 397, + 0, + "MODEL" + ], + [ + 650, + 338, + 0, + 348, + 0, + "CLIP" + ], + [ + 651, + 348, + 0, + 395, + 1, + "CONDITIONING" + ], + [ + 652, + 337, + 0, + 348, + 1, + "VAE" + ], + [ + 653, + 349, + 0, + 405, + 0, + "IMAGE" + ], + [ + 654, + 405, + 0, + 375, + 0, + "IMAGE" + ], + [ + 655, + 405, + 0, + 400, + 0, + "IMAGE" + ], + [ + 660, + 343, + 0, + 406, + 0, + "IMAGE" + ], + [ + 661, + 406, + 0, + 400, + 1, + "IMAGE" + ], + [ + 666, + 406, + 0, + 392, + 0, + "IMAGE" + ], + [ + 686, + 406, + 1, + 345, + 0, + "INT" + ], + [ + 687, + 406, + 2, + 345, + 1, + "INT" + ], + [ + 688, + 345, + 0, + 395, + 5, + "LATENT" + ], + [ + 689, + 401, + 0, + 414, + 0, + "IMAGE" + ], + [ + 690, + 414, + 0, + 403, + 0, + "IMAGE" + ], + [ + 691, + 415, + 0, + 414, + 2, + "STRING" + ], + [ + 694, + 406, + 0, + 348, + 2, + "IMAGE" + ], + [ + 696, + 336, + 0, + 418, + 2, + "IMAGE" + ], + [ + 697, + 417, + 0, + 418, + 5, + "INT" + ], + [ + 698, + 405, + 0, + 348, + 3, + "IMAGE" + ], + [ + 700, + 405, + 0, + 418, + 0, + "IMAGE" + ], + [ + 701, + 406, + 0, + 418, + 1, + "IMAGE" + ], + [ + 702, + 418, + 0, + 419, + 0, + "IMAGE" + ] + ], + "groups": [ + { + "id": 49, + "title": "Raw latent version", + "bounding": [ + -270, + 1400, + 2460.6333689274365, + 2062.290570000865 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "id": 45, + "title": "Step1 - Load models", + "bounding": [ + -260, + 1440, + 380.4251489818773, + 942.372556994841 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "id": 46, + "title": "Step 2 - Upload image for editing", + "bounding": [ + -249.2416403193231, + 2408.6703988917766, + 979.5797803880118, + 708.0663764021983 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "id": 47, + "title": "Step 4 - Prompt", + "bounding": [ + 140, + 1440, + 605.6405800580737, + 948.5275399271272 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + }, + { + "id": 48, + "title": "Step3 - Image Size", + "bounding": [ + 760, + 2390, + 310, + 200 + ], + "color": "#3f789e", + "font_size": 24, + "flags": {} + } + ], + "definitions": { + "subgraphs": [ + { + "id": "fa88efe0-6f2e-4cdd-b71c-cd23ca04ca6e", + "version": 1, + "state": { + "lastGroupId": 5, + "lastNodeId": 579, + "lastLinkId": 1344, + "lastRerouteId": 0 + }, + "revision": 0, + "config": {}, + "name": "Save Face Swap Compare", + "inputNode": { + "id": -10, + "bounding": [ + 10032.730166811687, + -1025.954722290372, + 123.390625, + 160 + ] + }, + "outputNode": { + "id": -20, + "bounding": [ + 12373.14216601375, + -1014.3955318774445, + 120, + 60 + ] + }, + "inputs": [ + { + "id": "0d1b5263-6ea1-446a-a2f6-71129f7f274f", + "name": "images", + "type": "IMAGE", + "linkIds": [ + 1295 + ], + "label": "face_reference", + "pos": [ + 10136.120791811687, + -1005.954722290372 + ] + }, + { + "id": "386110fc-e18b-4f57-a64e-61415fd20fdf", + "name": "images_1", + "type": "IMAGE", + "linkIds": [ + 1299 + ], + "label": "body_reference", + "pos": [ + 10136.120791811687, + -985.954722290372 + ] + }, + { + "id": "c2fc4822-bc1d-48a2-b83f-2e25da239564", + "name": "images_2", + "type": "IMAGE", + "linkIds": [ + 1302 + ], + "label": "result", + "pos": [ + 10136.120791811687, + -965.954722290372 + ] + }, + { + "id": "44b55c84-8752-4973-ab65-3187e05f1411", + "name": "images_3", + "type": "IMAGE", + "linkIds": [ + 1324, + 1327 + ], + "label": "map", + "pos": [ + 10136.120791811687, + -945.954722290372 + ] + }, + { + "id": "f38c8c3f-8d8d-4726-85ff-4f957d2f6af4", + "name": "images_4", + "type": "IMAGE", + "linkIds": [ + 1331, + 1333 + ], + "label": "result_cc", + "pos": [ + 10136.120791811687, + -925.954722290372 + ] + }, + { + "id": "ad679234-7e43-4342-9768-41b923df7e34", + "name": "int", + "type": "INT", + "linkIds": [ + 1344 + ], + "label": "index", + "pos": [ + 10136.120791811687, + -905.954722290372 + ] + } + ], + "outputs": [ + { + "id": "5267eb30-cc9a-4f8b-8473-f38595ea734a", + "name": "IMAGE", + "type": "IMAGE", + "linkIds": [ + 1336 + ], + "label": "preview", + "pos": [ + 12393.14216601375, + -994.3955318774445 + ] + } + ], + "widgets": [], + "nodes": [ + { + "id": 558, + "type": "Reroute", + "pos": [ + 11257.9140625, + -1480.7406005859375 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 1295 + } + ], + "outputs": [ + { + "name": "", + "type": "IMAGE", + "links": [ + 1298, + 1311 + ] + } + ], + "properties": { + "showOutputText": false, + "horizontal": false, + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + } + }, + { + "id": 559, + "type": "Reroute", + "pos": [ + 11287.2626953125, + -1216.0479736328125 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 1299 + } + ], + "outputs": [ + { + "name": "", + "type": "IMAGE", + "links": [ + 1301, + 1313 + ] + } + ], + "properties": { + "showOutputText": false, + "horizontal": false, + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + } + }, + { + "id": 560, + "type": "Reroute", + "pos": [ + 11290.953125, + -1040.6185302734375 + ], + "size": [ + 75, + 26 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "", + "type": "*", + "link": 1302 + } + ], + "outputs": [ + { + "name": "", + "type": "MODEL", + "links": [ + 1304, + 1316 + ] + } + ], + "properties": { + "showOutputText": false, + "horizontal": false, + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + } + }, + { + "id": 555, + "type": "ImageConcanate", + "pos": [ + 11843.650390625, + -1266.1287841796875 + ], + "size": [ + 270, + 102 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "localized_name": "image1", + "name": "image1", + "type": "IMAGE", + "link": 1298 + }, + { + "localized_name": "image2", + "name": "image2", + "type": "IMAGE", + "link": 1301 + } + ], + "outputs": [ + { + "localized_name": "IMAGE", + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 1326 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "e81f33508b0821ea2f53f4f46a833fa6215626bd", + "Node name for S&R": "ImageConcanate", + "ue_properties": { + "widget_ue_connectable": { + "direction": true, + "match_image_size": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "right", + true + ] + }, + { + "id": 575, + "type": "ImageConcanate", + "pos": [ + 12221.869140625, + -1156.269775390625 + ], + "size": [ + 270, + 102 + ], + "flags": {}, + "order": 15, + "mode": 4, + "inputs": [ + { + "localized_name": "image1", + "name": "image1", + "type": "IMAGE", + "link": 1326 + }, + { + "localized_name": "image2", + "name": "image2", + "type": "IMAGE", + "link": 1327 + } + ], + "outputs": [ + { + "localized_name": "IMAGE", + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 1328 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "e81f33508b0821ea2f53f4f46a833fa6215626bd", + "Node name for S&R": "ImageConcanate", + "ue_properties": { + "widget_ue_connectable": { + "direction": true, + "match_image_size": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "right", + true + ] + }, + { + "id": 569, + "type": "SaveImage", + "pos": [ + 11522.828125, + -1544.683349609375 + ], + "size": [ + 270, + 270 + ], + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "localized_name": "images", + "name": "images", + "type": "IMAGE", + "link": 1311 + }, + { + "localized_name": "filename_prefix", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + }, + "link": 1312 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "SaveImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 570, + "type": "SaveImage", + "pos": [ + 11439.8017578125, + -1263.374267578125 + ], + "size": [ + 270, + 270 + ], + "flags": {}, + "order": 10, + "mode": 0, + "inputs": [ + { + "localized_name": "images", + "name": "images", + "type": "IMAGE", + "link": 1313 + }, + { + "localized_name": "filename_prefix", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + }, + "link": 1315 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "SaveImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 571, + "type": "SaveImage", + "pos": [ + 11453.1005859375, + -941.1986694335938 + ], + "size": [ + 270, + 270 + ], + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "localized_name": "images", + "name": "images", + "type": "IMAGE", + "link": 1316 + }, + { + "localized_name": "filename_prefix", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + }, + "link": 1317 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "SaveImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 574, + "type": "SaveImage", + "pos": [ + 11482.46875, + -296.3752136230469 + ], + "size": [ + 270, + 270 + ], + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [ + { + "localized_name": "images", + "name": "images", + "type": "IMAGE", + "link": 1324 + }, + { + "localized_name": "filename_prefix", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + }, + "link": 1322 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "SaveImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 577, + "type": "SaveImage", + "pos": [ + 11452.1474609375, + -609.6406860351562 + ], + "size": [ + 270, + 270 + ], + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "localized_name": "images", + "name": "images", + "type": "IMAGE", + "link": 1331 + }, + { + "localized_name": "filename_prefix", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + }, + "link": 1330 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "SaveImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 572, + "type": "SaveImage", + "pos": [ + 11994.6015625, + -332.64605712890625 + ], + "size": [ + 270, + 270 + ], + "flags": {}, + "order": 12, + "mode": 0, + "inputs": [ + { + "localized_name": "images", + "name": "images", + "type": "IMAGE", + "link": 1334 + }, + { + "localized_name": "filename_prefix", + "name": "filename_prefix", + "type": "STRING", + "widget": { + "name": "filename_prefix" + }, + "link": 1319 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "SaveImage", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 578, + "type": "ImageConcanate", + "pos": [ + 11825.9560546875, + -843.1034545898438 + ], + "size": [ + 270, + 102 + ], + "flags": {}, + "order": 18, + "mode": 4, + "inputs": [ + { + "localized_name": "image1", + "name": "image1", + "type": "IMAGE", + "link": 1332 + }, + { + "localized_name": "image2", + "name": "image2", + "type": "IMAGE", + "link": 1333 + } + ], + "outputs": [ + { + "localized_name": "IMAGE", + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 1334 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "e81f33508b0821ea2f53f4f46a833fa6215626bd", + "Node name for S&R": "ImageConcanate", + "ue_properties": { + "widget_ue_connectable": { + "direction": true, + "match_image_size": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "right", + true + ] + }, + { + "id": 556, + "type": "ImageConcanate", + "pos": [ + 11835.373046875, + -1084.0830078125 + ], + "size": [ + 270, + 102 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "localized_name": "image1", + "name": "image1", + "type": "IMAGE", + "link": 1328 + }, + { + "localized_name": "image2", + "name": "image2", + "type": "IMAGE", + "link": 1304 + } + ], + "outputs": [ + { + "localized_name": "IMAGE", + "name": "IMAGE", + "type": "IMAGE", + "links": [ + 1332, + 1336 + ] + } + ], + "properties": { + "cnr_id": "comfyui-kjnodes", + "ver": "e81f33508b0821ea2f53f4f46a833fa6215626bd", + "Node name for S&R": "ImageConcanate", + "ue_properties": { + "widget_ue_connectable": { + "direction": true, + "match_image_size": true + }, + "version": "7.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "right", + true + ] + }, + { + "id": 579, + "type": "easy convertAnything", + "pos": [ + 10261.090190746538, + -1462.0542414169527 + ], + "size": [ + 270, + 58 + ], + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [ + { + "localized_name": "*", + "name": "*", + "type": "*", + "link": 1344 + } + ], + "outputs": [ + { + "label": "string", + "localized_name": "*", + "name": "string", + "type": "STRING", + "links": [ + 1338, + 1339, + 1340, + 1341, + 1342, + 1343 + ] + } + ], + "properties": { + "cnr_id": "comfyui-easy-use", + "ver": "1.3.3", + "Node name for S&R": "easy convertAnything", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "string" + ] + }, + { + "id": 547, + "type": "StringConcatenate", + "pos": [ + 10864.9794921875, + -1361.9739990234375 + ], + "size": [ + 400, + 200 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [ + { + "localized_name": "string_b", + "name": "string_b", + "type": "STRING", + "widget": { + "name": "string_b" + }, + "link": 1338 + } + ], + "outputs": [ + { + "localized_name": "STRING", + "name": "STRING", + "type": "STRING", + "links": [ + 1312 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "StringConcatenate", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "v4/faces/sample_", + "", + "" + ] + }, + { + "id": 549, + "type": "StringConcatenate", + "pos": [ + 10865.65234375, + -1104.6070556640625 + ], + "size": [ + 400, + 200 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [ + { + "localized_name": "string_b", + "name": "string_b", + "type": "STRING", + "widget": { + "name": "string_b" + }, + "link": 1339 + } + ], + "outputs": [ + { + "localized_name": "STRING", + "name": "STRING", + "type": "STRING", + "links": [ + 1315 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "StringConcatenate", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "v4/body/sample_", + "", + "" + ] + }, + { + "id": 550, + "type": "StringConcatenate", + "pos": [ + 10855.404296875, + -816.5901489257812 + ], + "size": [ + 400, + 200 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "localized_name": "string_b", + "name": "string_b", + "type": "STRING", + "widget": { + "name": "string_b" + }, + "link": 1340 + } + ], + "outputs": [ + { + "localized_name": "STRING", + "name": "STRING", + "type": "STRING", + "links": [ + 1317 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "StringConcatenate", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "v4/target/sample_", + "", + "" + ] + }, + { + "id": 576, + "type": "StringConcatenate", + "pos": [ + 10851.8955078125, + -540.76318359375 + ], + "size": [ + 400, + 200 + ], + "flags": {}, + "order": 16, + "mode": 0, + "inputs": [ + { + "localized_name": "string_b", + "name": "string_b", + "type": "STRING", + "widget": { + "name": "string_b" + }, + "link": 1343 + } + ], + "outputs": [ + { + "localized_name": "STRING", + "name": "STRING", + "type": "STRING", + "links": [ + 1330 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "StringConcatenate", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "v4/target_cc/sample_", + "", + "" + ] + }, + { + "id": 568, + "type": "StringConcatenate", + "pos": [ + 10854.85546875, + -221.1119384765625 + ], + "size": [ + 400, + 200 + ], + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "localized_name": "string_b", + "name": "string_b", + "type": "STRING", + "widget": { + "name": "string_b" + }, + "link": 1341 + } + ], + "outputs": [ + { + "localized_name": "STRING", + "name": "STRING", + "type": "STRING", + "links": [ + 1319 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "StringConcatenate", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "v4/reference/sample_", + "", + "" + ] + }, + { + "id": 573, + "type": "StringConcatenate", + "pos": [ + 10863.4111328125, + 58.804420471191406 + ], + "size": [ + 400, + 200 + ], + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [ + { + "localized_name": "string_b", + "name": "string_b", + "type": "STRING", + "widget": { + "name": "string_b" + }, + "link": 1342 + } + ], + "outputs": [ + { + "localized_name": "STRING", + "name": "STRING", + "type": "STRING", + "links": [ + 1322 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.59", + "Node name for S&R": "StringConcatenate", + "ue_properties": { + "widget_ue_connectable": {}, + "version": "7.5.1", + "input_ue_unconnectable": {} + } + }, + "widgets_values": [ + "v4/map/sample_", + "v2/map/sample_", + "" + ] + } + ], + "groups": [], + "links": [ + { + "id": 1295, + "origin_id": -10, + "origin_slot": 0, + "target_id": 558, + "target_slot": 0, + "type": "*" + }, + { + "id": 1298, + "origin_id": 558, + "origin_slot": 0, + "target_id": 555, + "target_slot": 0, + "type": "IMAGE" + }, + { + "id": 1299, + "origin_id": -10, + "origin_slot": 1, + "target_id": 559, + "target_slot": 0, + "type": "*" + }, + { + "id": 1301, + "origin_id": 559, + "origin_slot": 0, + "target_id": 555, + "target_slot": 1, + "type": "IMAGE" + }, + { + "id": 1302, + "origin_id": -10, + "origin_slot": 2, + "target_id": 560, + "target_slot": 0, + "type": "*" + }, + { + "id": 1304, + "origin_id": 560, + "origin_slot": 0, + "target_id": 556, + "target_slot": 1, + "type": "IMAGE" + }, + { + "id": 1311, + "origin_id": 558, + "origin_slot": 0, + "target_id": 569, + "target_slot": 0, + "type": "IMAGE" + }, + { + "id": 1312, + "origin_id": 547, + "origin_slot": 0, + "target_id": 569, + "target_slot": 1, + "type": "STRING" + }, + { + "id": 1313, + "origin_id": 559, + "origin_slot": 0, + "target_id": 570, + "target_slot": 0, + "type": "IMAGE" + }, + { + "id": 1315, + "origin_id": 549, + "origin_slot": 0, + "target_id": 570, + "target_slot": 1, + "type": "STRING" + }, + { + "id": 1316, + "origin_id": 560, + "origin_slot": 0, + "target_id": 571, + "target_slot": 0, + "type": "IMAGE" + }, + { + "id": 1317, + "origin_id": 550, + "origin_slot": 0, + "target_id": 571, + "target_slot": 1, + "type": "STRING" + }, + { + "id": 1319, + "origin_id": 568, + "origin_slot": 0, + "target_id": 572, + "target_slot": 1, + "type": "STRING" + }, + { + "id": 1322, + "origin_id": 573, + "origin_slot": 0, + "target_id": 574, + "target_slot": 1, + "type": "STRING" + }, + { + "id": 1324, + "origin_id": -10, + "origin_slot": 3, + "target_id": 574, + "target_slot": 0, + "type": "IMAGE" + }, + { + "id": 1326, + "origin_id": 555, + "origin_slot": 0, + "target_id": 575, + "target_slot": 0, + "type": "IMAGE" + }, + { + "id": 1327, + "origin_id": -10, + "origin_slot": 3, + "target_id": 575, + "target_slot": 1, + "type": "IMAGE" + }, + { + "id": 1328, + "origin_id": 575, + "origin_slot": 0, + "target_id": 556, + "target_slot": 0, + "type": "IMAGE" + }, + { + "id": 1330, + "origin_id": 576, + "origin_slot": 0, + "target_id": 577, + "target_slot": 1, + "type": "STRING" + }, + { + "id": 1331, + "origin_id": -10, + "origin_slot": 4, + "target_id": 577, + "target_slot": 0, + "type": "IMAGE" + }, + { + "id": 1332, + "origin_id": 556, + "origin_slot": 0, + "target_id": 578, + "target_slot": 0, + "type": "IMAGE" + }, + { + "id": 1333, + "origin_id": -10, + "origin_slot": 4, + "target_id": 578, + "target_slot": 1, + "type": "IMAGE" + }, + { + "id": 1334, + "origin_id": 578, + "origin_slot": 0, + "target_id": 572, + "target_slot": 0, + "type": "IMAGE" + }, + { + "id": 1336, + "origin_id": 556, + "origin_slot": 0, + "target_id": -20, + "target_slot": 0, + "type": "IMAGE" + }, + { + "id": 1338, + "origin_id": 579, + "origin_slot": 0, + "target_id": 547, + "target_slot": 0, + "type": "STRING" + }, + { + "id": 1339, + "origin_id": 579, + "origin_slot": 0, + "target_id": 549, + "target_slot": 0, + "type": "STRING" + }, + { + "id": 1340, + "origin_id": 579, + "origin_slot": 0, + "target_id": 550, + "target_slot": 0, + "type": "STRING" + }, + { + "id": 1341, + "origin_id": 579, + "origin_slot": 0, + "target_id": 568, + "target_slot": 0, + "type": "STRING" + }, + { + "id": 1342, + "origin_id": 579, + "origin_slot": 0, + "target_id": 573, + "target_slot": 0, + "type": "STRING" + }, + { + "id": 1343, + "origin_id": 579, + "origin_slot": 0, + "target_id": 576, + "target_slot": 0, + "type": "STRING" + }, + { + "id": 1344, + "origin_id": -10, + "origin_slot": 5, + "target_id": 579, + "target_slot": 0, + "type": "*" + } + ], + "extra": { + "ue_links": [], + "links_added_by_ue": [], + "workflowRendererVersion": "LG" + } + } + ] + }, + "config": {}, + "extra": { + "frontendVersion": "1.36.14", + "ue_links": [], + "links_added_by_ue": [], + "VHS_latentpreview": true, + "VHS_latentpreviewrate": 0, + "VHS_MetadataImage": true, + "VHS_KeepIntermediate": true, + "workflowRendererVersion": "LG", + "ds": { + "scale": 0.23939204936916347, + "offset": [ + 3292.6078585234827, + -395.3647091890921 + ] + } + }, + "version": 0.4 +} \ No newline at end of file diff --git a/workflows/Head Swap V4 Simple Workflow.json b/workflows/Head Swap V4 Simple Workflow.json new file mode 100644 index 0000000000000000000000000000000000000000..036f8f0d888edde1845a6a3322392f95fb08a2ac --- /dev/null +++ b/workflows/Head Swap V4 Simple Workflow.json @@ -0,0 +1,2146 @@ +{ + "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 +} \ No newline at end of file