CivArchive
    Flux.2 Klein_Multi_Head_Swap - v3.5
    NSFW
    Preview 143120647

    Multiple Head Swap Flux.2-Klein


    UPDATE v 3.5


    Some small but significant updates:

    • With the node Load Image From Path and "Auto-refresh after generation" set to *true**, when you have to process more than one head swap, if you don't change the standard name ComfyUI_**** the last processed image will automatically be re-loaded, ready for the new masks. Set it to false if you want to do some tests using the same image.

    • Corrected and slightly improved the prompt.

    • The Loras strength: I was used to set the Lora's strength based on the values ​​normally recommended. BUT if you really want to copy the face expression from the base image to the new image, in the best possible way, my experience show me that 1.3 of the bfs lora copies the expression of the new face in the new image, overwriting the original expression of the base image.
      I've found a new sweet spot setting the bfs lora to 1.05 and adding the lora Facial Expression Helper. While this lora normally worsens the situation, setting it to a NEGATIVE value it removes the information vectors of the expression which the new face obviously has, letting the bfs lora do his work nicely.

    So:


    OLD values:

    * bfs lora 1.3

    * realism loras your choice, depending on the base image.


    NEW values:

    * bfs lora 1.05

    Facial Expression Helper: *-1.2** (seems to me that if you set it to -1.5 there is almost not difference)

    * realism loras your choice, depending on the base image.

    NOTE on the new images: the original vampire image was made with Krea 2, there is NO WAY to have the same quality in Flux.2 Klein, in a real situation this will require an additional refining step with Krea 2, 0.30 denoise and same prompt and loras of the base image.

    UPDATE v 3

    I think it's really worth seeing :-)

    The usual workflow has been completely turned on its head, at the cost of a minor inconvenience: you can perform head swaps on—say—up to 10 heads in the same image (and do it well), but you have to process them one at a time, then reload the image and continue with the next head.

    This is because I decided to invert the mask and mask out all the heads that Klein should not swap during the current workflow pass.

    On the plus side, thanks to this new strategy, the workflow operates with surgical precision.

    Furthermore, several issues appear to have been brilliantly resolved:

    1. Resolved the issue of color halos and lighting artifacts around stitched heads—which differed from the rest of the image—because the heads are no longer being stitched in.


    2. Light and color correction has become superfluous because Klein constantly has a "visual" reference for almost the entire image.

    3. Two or more heads attached one to another are no longer a problem, because by masking the heads Klein shouldn't see, all he has to do is swap to the correct one.


    Plenty of Markdown notes on the inside with instructions and tips, but it's faster to do than to explain.

    Have Fun

    Update v 2


    Improvements, new features, and workflow streamlining coming in the next few days!!

    Sorry guys, I've seen some download already, please download it another time or remember to set the "mode" value of the Painter Flux Image Edit node to 4. My fault :-)

    I've updated some nodes, manly using Painter Flux Image Edit instead of TextEncodeQwenImageEditPlus and grouped some nodes into subgraphs. Most of the time you don't even need refinement BUT it always improve colors an lightning as you can see in the images. The last image, for the hands of the alien I've used the Flux.2 Klein - v3 - Multi-Porpouse Image Editing - I2I - T2I. I've swapped the head of the man on the left background in a second round because he is really close to the woman.

    If you load the images following the order of the swaps from left to right seems to me it's not necessary to modify the prompt. I see better results.
    Enjoy it :-)

    V1
    This workflow is intended for head swaps involving fictional characters; it is a tool, so I am not responsible for how you use it.


    It allows you to perform up to three simultaneous head swaps—provided the prompt is set up correctly—but if you are unable to complete all the necessary head swaps in a single session, you can simply reload the image and continue.


    Models


    I normally use flux.2-klein-9b-fp8.safetensors but if you use a gguf model change the model loader and connect it.


    Recommended Loras download:

    The workflow should work with qwen image edit also, provided you have the right model, clip, vae and the correct bfs lora from the same huggingface page, you’ll probably have to change the load model node with a gguf one.


    Please forgive me, I've forgotten one important thing: when you upload the base image containing the heads you want to change, you have to right-click on it and choose "Open in MaskEditor", then draw the mask over the face/faces and if needed over the skin you want matching color and tone. I've just updated the markdown notes inside :-)

    Tips and tricks: this workflow provides three simultaneous head swaps. Theoretically we can add some more, but at a certain point you’ll encounter tecnical limits with the model, how many token he can handles without mixing facial features and so on, AND order matters: Always list your head replacements from left to right across the image. So it’s better after three headswap load again the last image generated, apply the next masks on the characters you have to swap, adjust the prompt and generate.

    Note: if the heads of the base image are too close or touching, the mixing of somatic traits is guaranteed even when performing a single swap at a time.

    If the head to be modified is in partial shadow relative to the body—such as in chiaroscuro images—it is advisable to also mask the hands, arms, or other body parts that the model will use as a reference for the face's skin color and tones, without needing to alter the prompt. I'll update the markdown notes soon.

    Inside you will find markdown notes with tip and tricks, including color and tone matching of the skin.
    In the provided images you can see the ones with and without color and tone skin of the arms and hands.

    I'm sorry, but I don't have the experience to adapt it for use with graphics cards that have low VRAM; I have a card with 16 GB of VRAM and 32 GB of system RAM. If someone wants to modify it, that would be great!

    Behave yourselves and don't break anything :-)

    Description

    • The last processed image will automatically be re-loaded, ready for the new masks

    • Corrected and slightly improved the prompt

    • Added a new lora and new strength settings to copy the facial expression from the base image into the new one, without the expression of the new face/head's interference

    FAQ

    Workflows
    Flux.2 Klein 9B

    Details

    Downloads
    89
    Platform
    CivitAI
    Platform Status
    Available
    Created
    9/18/2026
    Updated
    9/22/2026
    Deleted
    -

    Files

    flux2KleinMultiHead_v35.json

    Mirrors

    CivitAI (1 mirrors)