Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,132 +1,129 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
base_model:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
-
|
| 9 |
-
-
|
| 10 |
-
-
|
| 11 |
-
-
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
|
| 15 |
-
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
---
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
|
| 54 |
-
|
|
| 55 |
-
| **
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
###
|
| 76 |
-
|
| 77 |
-
```
|
| 78 |
-
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
```
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
```
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
```
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
###
|
| 106 |
-
|
| 107 |
-
```
|
| 108 |
-
head
|
| 109 |
-
```
|
| 110 |
-
|
| 111 |
-
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
```
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
*
|
| 124 |
-
* For
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
Made by a Brazilian
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: Qwen/Qwen-Image-Edit-2509
|
| 4 |
+
pipeline_tag: image-to-image
|
| 5 |
+
tags:
|
| 6 |
+
- lora
|
| 7 |
+
- qwen-image-edit
|
| 8 |
+
- face-swap
|
| 9 |
+
- head-swap
|
| 10 |
+
- image-editing
|
| 11 |
+
- ai-generated
|
| 12 |
+
- comfyui
|
| 13 |
+
- bfs
|
| 14 |
+
language:
|
| 15 |
+
- en
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# 🧬 BFS — Best Face Swap (Qwen Image Edit 2509)
|
| 19 |
+
|
| 20 |
+
The **BFS (Best Face Swap)** LoRA series was created for **Qwen Image Edit 2509**, designed to perform high-fidelity face and head swaps with natural tone blending and consistent lighting.
|
| 21 |
+
|
| 22 |
+
Each version focuses on a different level of replacement, from subtle face swaps to full head transfers.
|
| 23 |
+
All models can be used directly with **Qwen Image Edit 2509** or any compatible image-editing workflow.
|
| 24 |
+
|
| 25 |
+
👉 **Workflows** for all BFS versions can be downloaded here:
|
| 26 |
+
[Head/Face Swap Workflow — Qwen Image Edit 2509 (Civitai)](https://civitai.com/articles/20190/headface-swap-workflow-qwen-image-edit-2509)
|
| 27 |
+
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
## 🔹 Versions Overview
|
| 31 |
+
|
| 32 |
+
| Version | File | Description |
|
| 33 |
+
| ----------------------------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
|
| 34 |
+
| **BFS Face V1 - 2509** | `bfs_face_v1_qwen_image_edit_2509.safetensors` | Swaps only the **face**. Keeps target hair, lighting, and background. |
|
| 35 |
+
| **BFS Head V1 - 2509** | `bfs_head_v1_qwen_image_edit_2509.safetensors` | Full head swap with detailed blending of face and hair. |
|
| 36 |
+
| **BFS Head V2 - 2509** | `bfs_head_v2_qwen_image_edit_2509.safetensors` | Improved tone and pose alignment; stronger anatomical consistency. |
|
| 37 |
+
| **BFS Head V3 - 2509 (Recommended)** | `bfs_head_v3_qwen_image_edit_2509.safetensors` | The most stable and accurate version. In this one, the **input order is inverted** — body first, then face. |
|
| 38 |
+
| **BFS Head V4 - 2509/2511** | `bfs_head_v4_qwen_image_edit_2509.safetensors` | The most stable and accurate version. In this one, the **input order is inverted** — body first, then face. |
|
| 39 |
+
| **BFS Head V5 - 2511 (Recommended)** | `bfs_head_v5_2511_merged_version_rank_16_fp16/bfs_head_v5_2511_merged_version_rank_32_fp32/bfs_head_v5_2511_original .safetensors` | The most stable and accurate version. In this one, the **input order is inverted** — body first, then face. This release includes two variants: the 100% original, which is the direct result of training for over 5,500 steps, and a merged version, created by merging version 4 of the 2509 model with this 100% original model trained on 2511.
|
| 40 |
+
|
| 41 |
+
In my evaluation, the merged version performs better, particularly in its ability to reproduce a wider range of expressions. While it is not yet perfect, the results indicate that we are moving in the right direction.|
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
## 🖼️ Input Structure (Control Images)
|
| 47 |
+
|
| 48 |
+
| Version | Image 1 | Image 2 | Notes |
|
| 49 |
+
| ----------- | -------- | -------- | ----------------------------------------------- |
|
| 50 |
+
| **Face V1** | Face | Body | Standard order. Swaps face only. |
|
| 51 |
+
| **Head V1** | Face | Body | Standard order. Full head swap with blending. |
|
| 52 |
+
| **Head V2** | Face | Body | Standard order. Improved tone and alignment. |
|
| 53 |
+
| **Head V3** | **Body** | **Face** | ⚠️ Inverted order — send body first, then face. |
|
| 54 |
+
| **Head V4** | **Body** | **Face** | ⚠️ Inverted order — send body first, then face. |
|
| 55 |
+
| **Head V5** | **Body** | **Face** | ⚠️ Inverted order — send body first, then face. |
|
| 56 |
+
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
## 💬 Prompts
|
| 60 |
+
|
| 61 |
+
### 🧠 BFS Face V1
|
| 62 |
+
|
| 63 |
+
```
|
| 64 |
+
face swap face from Image 1 to Image 2.
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
Alternative:
|
| 68 |
+
|
| 69 |
+
```
|
| 70 |
+
face swap face from Image 1 to Image 2. swap only the face and not the hair, the same skin tone from Image 2, same pose that Image 3
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
---
|
| 74 |
+
|
| 75 |
+
### 🧩 BFS Head V1 - 2509 (I think it works with the 2511)
|
| 76 |
+
|
| 77 |
+
```
|
| 78 |
+
head swap from Image 1 to Image 2
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
Alternatives:
|
| 82 |
+
|
| 83 |
+
```
|
| 84 |
+
head swap from Image 1 to Image 2 with perfect skin match
|
| 85 |
+
Head swap from Image 1 to Image 2, keep all facial details and hair from Image 1, blend naturally with Image 2’s body.
|
| 86 |
+
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
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
### 🧬 BFS Head V2 - 2509 (I think it works with the 2511)
|
| 92 |
+
|
| 93 |
+
```
|
| 94 |
+
head swap, transfer head from image 1 to image 2
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
---
|
| 98 |
+
|
| 99 |
+
### ⚡ BFS Head V3 - 2509 (Recommended) (I think it works with the 2511)
|
| 100 |
+
|
| 101 |
+
```
|
| 102 |
+
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.
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
### ⚡ BFS Head V4 - 2509 (I think it works with the 2511)
|
| 106 |
+
|
| 107 |
+
```
|
| 108 |
+
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.
|
| 109 |
+
```
|
| 110 |
+
|
| 111 |
+
### ⚡ BFS Head V5 - 2511 (Recommended)
|
| 112 |
+
|
| 113 |
+
```
|
| 114 |
+
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
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
---
|
| 118 |
+
|
| 119 |
+
## 🧾 Notes
|
| 120 |
+
|
| 121 |
+
* Works best with **Qwen Image Edit 2509** base model.
|
| 122 |
+
* For most versions, **Image 1 = face** and **Image 2 = body**.
|
| 123 |
+
Only **Head V3** uses the opposite order (**Image 1 = body**, **Image 2 = face**).
|
| 124 |
+
* For improved alignment, you may use pose or face mesh control images (optional).
|
| 125 |
+
* Do **not** use or share results involving real people or public figures.
|
| 126 |
+
|
| 127 |
+
---
|
| 128 |
+
|
| 129 |
+
**Author:** [@Alissonerdx]([https://huggingface.co](https://huggingface.co)
|
|
|
|
|
|
|
|
|
bfs_head_v4_qwen_image_edit_2509.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd3278c33c7df36bb87169d0a283851d60e88ecac48123b5c8dcc82551d6e402
|
| 3 |
+
size 147794944
|
bfs_head_v5_2511_merged_version_rank_16_fp16.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1315a08947e5d6d7c53ea4fc59f272e0d54efd7f2da35999b7d873a7cf4fa89b
|
| 3 |
+
size 307464216
|
bfs_head_v5_2511_merged_version_rank_32_fp32.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a137e61245781412421f5dee5db4ccac28b6c9952c042d1123a84609107cd10
|
| 3 |
+
size 1206402600
|
bfs_head_v5_2511_original.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5055ec271228d4767fd327efa59dbdea6f2a628d6d890101eb4fd5015cb1ac57
|
| 3 |
+
size 147685552
|