Updated: Jan 22, 2026
posesVerified: 8 days ago
Other
The FLUX.1 [dev] Model is licensed by Black Forest Labs. Inc. under the FLUX.1 [dev] Non-Commercial License. Copyright Black Forest Labs. Inc.
IN NO EVENT SHALL BLACK FOREST LABS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH USE OF THIS MODEL.
***Flux Klein Swap Anyting (head, face, body etc..) ***
In this workflow, you can easily swap anything you want with high CONSISTENCY* and without node complexity. The chance of facial mixing is ZERO. Although Flux Klein is not as consistent as qwen in terms of character consistency, I believe it performed well in this workflow.
Here, I utilized the advanced SAM3 model. You can easily swap faces, heads, just hair, or a part of an object. Simply type what you want to mask into the SAM3 Text Prompt panel. For example, "woman's head" or "man's hat." Everything you type in the prompt will be masked.
Just upload the relevant images to the corresponding "load image" section. You can use any checkpoint you like.
Those experiencing Tensor issues. They should first perform the comfyui update.
There are two files in the zip. One is for those experiencing tensor issues. Of course, first try installing the "normal" version. The normal version works better for "outfit swapping." If you encounter problems, install the second "tensor fix" file.
Thanks, @nroonarij129 found a solution to the tensor error problem.
***((1: Unpack the Subgraph "Person Mask".
2: Double left click on the Comfy UI canvas to bring up the Node Search Menu. Search for and add a new node, "LayerUtility: ImageRemoveAlpha".
3: Connect a new spaghetti string from the "img" output of the LayerMask: PersonMask Ultra V2 node, to the RGBA_image input of the new node you just added (LayerUtility: ImageRemoveAlpha).
4. Connect the RGB_Image output from the new node, LayerUtility: ImageRemoveAlpha, to the Draw Mask on Image node.***
I'm new to this, and this is my first workflow. I hope I haven't done anything wrong.
☕ Buy Me a Coffee:
🔗 https://buymeacoffee.com/ugurdoyduk
* HEAD OR FACE SWAP
Prompt Sam3 text2; "The woman's head"
Prompt Sam3 Text1; "The woman's face"
Leave Clip Text Encode blank. No matter what prompt I wrote, it caused problems with face and body colours and created disproportionate heads.
* OUTFIT CLOTHING
(When changing outfits, img1 becomes the location of your model, while image2 becomes the location of the reference outfit.)
Prompt Sam3 text2; "outfit"
Prompt Sam3 Text1; "clothe"
"Style the woman in image1, with every article of clothing in image2"
* FOOD, ITEMS, THINGS SWAP
(Bypass ToolYoloCropper)
Specify what will be exchanged in Sam3 text2 and text1.
Replace the masked area with the " your object for example chocolate" in image2. Keep everything else the same.
Ensure the replaced object fits perfectly into the area in a balanced manner. Make sure it complies with the laws of physics.
