CivArchive
    Preview 105561721
    Preview 106222895
    Preview 105561723
    Preview 105561719
    Preview 105561743
    Preview 105561718
    Preview 105561720
    Preview 105564498
    Preview 106163130
    Preview 106162115
    Preview 106162938
    Preview 106160427
    Preview 106162153

    The BFS (Best Face Swap) LoRA series was developed for Qwen Image Edit 2509, specialized in high-fidelity face and head replacement tasks with natural tone blending and consistent lighting.

    Each version builds upon the previous one:

    • đź§  Focus Faces: precise face swaps, keeping the original head shape and hair while transferring facial identity and expression.

    • đź§© Focus Head: stronger head swaps, replacing the full head (including hair and pose orientation).

    • The 2 versions complement each other, one is focused on face swapping and the other is focused on head swapping.

    Share your creations that do not involve public figures or individuals who have not given consent. By sharing, you will earn Buzz, and your posts directly help me improve future versions by identifying and correcting potential issues.

    Important Note: If you are going to use Qwen Image Edit 2511, update your comfyui before anything else, because without it you may have problems with completely distorted or ugly images.

    If this model was helpful to you in any way, please consider helping me continue creating more model for the price of a coffee.

    Workflows:
    Head/Face Swap Workflow - Qwen-Image-Edit-2509 | Civitai

    My Custom Lightning LoRA:

    Custom Lightning - Qwen Image Edit - 2511 | Qwen LoRA | Civitai

    Alissonerdx/CustomLightning · Hugging Face

    Test V3 here:

    BFS Best Face Swap - a Hugging Face Space by Alissonerdx

    Face Swap Video Tests (V1):
    Face Swap - Qwen Image Edit 2509 (English)

    Another important thing is to update ComfyUI. Many people are having terrible results because they haven't updated ComfyUI. The 2511 model has an architecture with a few more layers, and that's why ComfyUI needs to be updated.

    About Flux 2:

    I've done my best so far, but the results aren't as good as with QWEN. The base Flux 2 model can already handle head swapping, but with some difficulties. The goal of this LoRa was to try and improve that a bit, but I haven't achieved very good results. It might be a configuration issue, so here's this beta version for you to test.

    Try with CFG: 8.0

    PERSONAL NOTES:

    The swap quality will always depend heavily on the quality of your input images. Larger, clean images with little noise or compression artifacts generally produce the best results. Keep in mind that the model always follows the quality of the body image, since it becomes the final rendered frame—so even if the face source is high-quality, a low-resolution or noisy body image will limit the outcome.

    Most of the images I generate are created without using the LightX2V lighting LoRA, since I noticed that enabling it tends to make the skin appear more plastic-like and reddish, and finding the right balance requires extra tuning that I didn’t focus on. If anyone has discovered good configurations, feel free to share them in the comments of this template.

    In short, using LightX2V makes the model less versatile because it operates with a fixed CFG value of 1.0. So before assuming it “didn’t work,” I recommend first testing the workflow I published without LightX2V to compare the results.

    If you’re getting results with too much contrast, overly strong colors, or plastic-like textures while using LightX2V’s lightning models, try reducing the number of inference steps. For example, if you’re using the Qwen Image Edit 2509 Lightning (8 steps) model, try running it with 4 steps instead. The excessive contrast often comes from running too many steps while CFG remains fixed at 1.0.

    If you encounter similar issues without using the lighting LoRA, try lowering the steps as well—e.g., from 20 down to around 16 or fewer—and reduce CFG to values like 1.2 or 1.5, which can help produce smoother, more natural results.

    Another important detail: in images where the body is positioned farther from the camera, the face region becomes smaller, which can reduce swap accuracy and overall quality. This happens because the model has less pixel information to work with in that small facial area. To handle these cases, you can use my older workflow, which automatically crops the face region from the body image and performs an inpainting-like process to improve results in distant or small-face compositions.

    Finally, if you notice loss of similarity between faces or poses—especially when the reference and target images differ significantly in aesthetics or angles—try increasing the strength of your head swap LoRA slightly (for instance, to 1.2 or 1.3) to restore consistency.


    ⚙️ BFS — “Focus Faces”

    Trained on 240 image triplets (face, body, and result),
    with a LoRA rank of 16 → later increased to 32,
    and gradient accumulation = 2, running for 5500 steps on an NVIDIA L40S GPU.

    This version produces stable and detailed face swaps, preserving expression, lighting, and gaze direction while maintaining the body’s natural look.


    đź”§ Model Notes

    • You don't need to use my workflow to make this lora work, if you are having problems with it use yours, it is the simple workflow of qwen image edit + lora and the inputs in the right order: face image 1, body image 2.

    • Quantization: not guaranteed to work below FP8 (avoid GGUF Q4).

    • Face mask: optional — remove if MediaPipe or Planar Overlay cause issues.

    • Pose conditioning: use MediaPipe Face Mesh or DWPose if you need more alignment control.

    • Lightning LoRA: may produce plastic-like skin, especially when mixed with other Qwen-based LoRAs.


    Samplers:

    • er_sde + beta57 / kl_optimal / ddim_uniform (best results)

    • ddim + ddim_uniform (sometimes most realistic)

    • res_2s + beta57

    Don't get attached to one setting, sometimes if it doesn't work well with one, switch to another.

    Precision:

    • đź§  Best: fp16

    • ⚙️ Recommended: gguf q8 or fp8

    • ⚠️ Below fp8: noticeable degradation

    Inference Tips:

    • With Qwen Image Edit 2509 Lightining LoRA → use 4 / 8 steps for fast generation.

    • Without it → use 12–20 steps, CFG 1.0–2.5 for realism.


    🧬 BFS — “Focus Head”

    The “Focus Head” version was trained as a continuation of Focus Face, extending the dataset and shifting focus toward full head swaps.

    It was trained on a NVIDIA RTX 6000 PRO, rank 32, for 12,000 steps, using 628 image pairs (face, body, target, and sometimes pose maps generated via MediaPipe).

    🔹 Training Phases

    1. Standard Face Swap – same Focus Face, focusing on facial identity.

    2. Pose-Conditioned Face Swap – added pose maps to align gaze and head angle.

    3. Full Head Swap – replaced the entire head (including hair) for stronger identity control.

    After ~2000 steps, the focus moved toward head swap refinement.
    At ~4000 steps, the dataset was narrowed to perfect skin-tone matches, and by the end of training,
    the dataset evolved from 628 → 138 → 76 high-quality samples for final fine-tuning.

    ⚠️ Note:
    While Focus Face can still perform standard face swaps, it’s more naturally inclined toward full head swaps due to its data balance.
    This was intentional in part, but also a side-effect of dataset distribution and mixed conditioning.


    ⚠️ Important Notice

    Do not share results involving real people, celebrities, or public figures.
    Civitai’s moderation may disable posts that violate likeness or consent rules.
    This model is intended only for artistic and fictional characters, educational use, and AI experimentation.

    I take no responsibility for any misuse of this model. Please use it responsibly and respect all likeness rights.

    Description

    FAQ

    Comments (33)

    mattbusOct 12, 2025
    CivitAI

    I keep getting a black output, the comparison pictures show and the face alignment/pose work but the output is black. I've followed all the notes and used both lightning and non lightning Is this a common issue? Any advice on a fix?

    NRDX
    Author
    Oct 12, 2025

    I have never had this problem. It could be some configuration of your workflow or model. Could you send your workflow or a printscreen?

    enzinoOct 12, 2025· 1 reaction

    Probably because you have sage attention enabled. You need to launch Comfyui without it.

    SaruheyOct 13, 2025

    having the same issue, tried using it both with the recommended model and with the nunchaku model but no difference.

    NRDX
    Author
    Oct 13, 2025

    @Saruhey Can you share your workflow? or a screenshot?

    SaruheyOct 13, 2025

    @NRDX  https://ibb.co/h1HhwTHs Here, haven't change anything other than the images and what was needed to "run", excuse me if it's all wrong, it's my first time using comfy at all.

    NRDX
    Author
    Oct 13, 2025

    @Saruhey page not found

    SaruheyOct 13, 2025

    @NRDX https://ibb.co/F4MtfCNd yeah link died default was one hour sorry about it

    NRDX
    Author
    Oct 13, 2025

    @Saruhey The first important detail in your workflow is that you are using the nunchaku version and it seems that this version already comes with the 8-step lightning, so you shouldn't use the lightning lora, besides that I don't know if this lora works on nunchaku versions, that's why I make it clear that you should use at least an fp8 because that's what I tested, I'm sure the problem is because you're using nunchaku.

    mattbusOct 14, 2025· 2 reactions

    Thanks guys managed to fix the issue, I believe it was due to sage attention, ran a separate install of comfyui without it and the workflow is running great!

    mkliku_nikukiOct 13, 2025· 2 reactions
    CivitAI

    Thank you for sharing this excellent workflow. It's been extremely helpful in setting up and understanding the node.

    However, I encountered the following error during execution:

    MediaPipe-FaceMeshPreprocessor DLL load failed while importing frameworkbindings:

    In my environment, this issue was resolved by downgrading the mediapipe package:

    pip uninstall mediapipe

    pip install mediapipe==0.10.10

    It seems that the mediapipe_face node in controlnet_aux is designed with mediapipe==0.10.10 in mind. Newer versions (e.g., 0.10.21) may cause DLL initialization errors or compatibility issues.

    5c0f4n0Oct 13, 2025· 1 reaction
    CivitAI

    Kd o galo cego e o madruga, po? :-D

    NRDX
    Author
    Oct 13, 2025

    Vou fazer uns exemplos dele, Ă© que no momento to a 3 dias fazendo um novo dataset para corrigir uns problemas desse modelo.

    5c0f4n0Oct 14, 2025· 1 reaction

    @NRDX É a marca registrada dos teus modelos e workflows, po. :-D

    haidensd58757Oct 14, 2025· 6 reactions
    CivitAI

    Way too slow on RTX 4070 took 6 minute for 1 image. Face swap is not accurate has plastic face type maybe coz i use the no pipe line version. Its complicated to setup coz you will need to change ur python version, cuda etc which will be nightmare for other tools.

    NRDX
    Author
    Oct 14, 2025· 1 reaction

    You don't need to change anything related to the Python version. Other than that, the plastic issue is probably due to your sampler and scheduler configuration. Of course, it won't be precise and perfect. Tell me a perfect face swap or head swap nowadays? But try using er_sde + beta57, 20 steps, cfg 1.5. The reference images need to be of good quality and, when passed to ksampler, they need to be the same size. Don't use the pose map because this will degrade the quality even further. The more conditioning, the more degraded. Furthermore, Qwen is really complicated in terms of quality. If you want something with extreme quality, try doing a second pass on another model or something like that.

    LuntrixOct 14, 2025· 2 reactions

    Well I did swap in 30-40 sec on 4090 with lightx2v 4step. Normal ass workflow no idea what you do there xd

    rocren3Oct 22, 2025

    4070tisuper about 1min per image. But the result is really bad. No face similarity at all!

    NRDX
    Author
    Oct 22, 2025

    @rocren3 I really don't know how you are using it because I can get good results and I will also get bad results depending on what you use as input and it depends on the models you use, settings, etc.

    jackaroo1432111Oct 15, 2025· 2 reactions
    CivitAI

    works well, other than the color issue. Seems to over-saturate the face dramatically. I tried the black and white fix, as well as second pass with no success

    NRDX
    Author
    Oct 15, 2025

    I'm finishing a version here that I believe will solve the color problem a little.

    NRDX
    Author
    Oct 15, 2025

    I just updated v2 with a new one, I didn't do enough testing at the saturation level, but if you want to test it just download it again.

    jackaroo1432111Oct 16, 2025

    @NRDX Thank you! Will test soon :)

    EDIT: tested and the color issue is better than before, not perfect, but better.

    AntonmasterOct 16, 2025· 1 reaction

    Hi! Just downloaded v2 and it still has a color issue

    NRDX
    Author
    Oct 16, 2025

    @jackaroo1432111 @Antonmaster I think it depends a lot on the settings and prompt, if it is very saturated decrease the number of steps, if you are using a cfg greater than 1 decrease it to 1.2 for example, I know that most of the time I get a compatible coloring, I will train a v3 using another dataset with a different approach but it is very complicated to solve this problem for all situations.

    NRDX
    Author
    Oct 16, 2025

    test the other version of the workflow that I put there because it has 2 approaches now embedded using masks and without the masks, anyway, I hope someone can somehow use this lora otherwise the time spent will be in vain hahaha

    Aiboy01Oct 23, 2025· 6 reactions
    CivitAI

    Any update? Version 3 with color fix maybe? :)

    NRDX
    Author
    Oct 23, 2025· 2 reactions

    Right now I'm preparing a dataset to train a new one for face swap, head swap, I'm still doing some experiments.

    NRDX
    Author
    Oct 23, 2025

    But take a look at the video I made testing the face swap, if you use kl_optimal it will help with some details, it may help with your skin problem, but it is face swap as I said. In addition, you can enhance the effect if you use a power sigmas in 2.0

    damn_fuserOct 28, 2025· 3 reactions
    CivitAI

    You say adjust the steps, but THERE IS LITERALLY NO OPTION TO ADJUST THE STEPS!

    NRDX
    Author
    Oct 28, 2025

    So I think you need to wear glasses hahaha

    Imgur: The magic of the Internet

    NRDX
    Author
    Oct 28, 2025

    In addition, there is a video where I show myself using the workflow.

    WindGoneOct 29, 2025· 6 reactions
    CivitAI

    You can try reducing the CFGNorm value to solve the problem of the generated images being too red.
    https://huggingface.co/Phr00t/Qwen-Image-Edit-Rapid-AIO/discussions/62

    LORA
    Qwen
    by NRDX

    Details

    Downloads
    2,819
    Platform
    CivitAI
    Platform Status
    Available
    Created
    10/12/2025
    Updated
    6/11/2026
    Deleted
    -
    Trigger Words:
    head swap from Image 1 to Image 2
    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

    Files