/ Модель

Характеристики

Размер весов
1,1 ГБ
Лицензия
Своя лицензия
Базовая модель
FLUX.2-klein-9B
Библиотека
diffusers
Опубликована
13 апр 2026

face-swap

Преобразование изображенийИзображение, текст → изображение3 профессии

ilkerzgi/face-swap — адаптер LoRA, разработанный для базовой модели FLUX.2-klein-9B от Black Forest Labs и предназначенный для работы с библиотекой Diffusers.

1 407скачиваний за 30 дней35лайковвеса обновлены13 апр 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Модель выполняет замену лица на изображении: переносит лицо с исходного изображения на человека на целевом изображении, сохраняя тело, позу и сцену, а также стремясь согласовать оттенок кожи и освещение.

Модель использует две входные картинки: Picture 1 с лицом и Picture 2 с целевым человеком и окружением. Для наилучших результатов рекомендуется специальный промпт с указанием операции face_swap. Это image-to-image решение для генерации изображений; сведения о поддерживаемых языках и размере контекста не указаны. В README приведены варианты обучения с rank 16–64, 300 или 800 образцами и измеренной средней задержкой около 6,0–6,6 секунды для различных конфигураций.

Сильной стороной модели является специализация на замене лица с сохранением идентичности, освещения и естественного смешивания оттенков кожи. Ограничения, качество на разных типах исходных изображений и требования к вычислительным ресурсам подробно не описаны. Модель распространяется по лицензии flux-non-commercial-license, то есть её использование ограничено некоммерческими сценариями.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Face-Swap LoRA for FLUX 2 Klein 9B

A LoRA adapter for FLUX 2 Klein 9B fine-tuned for high-quality face swapping. Given a face source image and a body/scene image, the model produces a natural face swap preserving identity, lighting, and skin tone.

Prompt

Use the following prompt for best results:

face_swap: take the face from Picture 1 and swap it onto the person in Picture 2. the result should show the exact face and features from Picture 1 on the body, pose, and scene from Picture 2, with natural skin tone blending and matching lighting.
  • Picture 1: Face source image (the identity to transfer)
  • Picture 2: Body/scene image (the target pose and environment)

How to Use

Try it on fal

Open on fal.ai

Via fal.ai API

import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "fal-ai/flux-2-klein/9b/base/edit/lora",
    arguments={
        "prompt": "face_swap: take the face from Picture 1 and swap it onto the person in Picture 2. "
                  "the result should show the exact face and features from Picture 1 on the body, pose, "
                  "and scene from Picture 2, with natural skin tone blending and matching lighting.",
        "model_name": None,
        "loras": [{
            "path": "https://huggingface.co/ilkerzgi/face-swap/resolve/main/FS2_V2_r32_800_pytorch_lora_weights.safetensors",
            "scale": 1
        }],
        "embeddings": [],
        "image_urls": [
            "https://example.com/face_source.png",
            "https://example.com/body_scene.png"
        ],
        "num_images": 4
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)

Evaluation Overview

Test CasesLoRA VariantsImage ModelsTotal GenerationsDataset Sizes
2593300300 / 800

9 LoRA variants were trained with different hyperparameters and evaluated against 3 image models across 25 diverse test subjects.

Training Configurations

VariantSamplesRankStepsLRGuidanceAvg Latency
V1 r16 (300)3001630005e-516.0s
V2 r32 (300)3003235005e-516.1s
V3 r32+cfg (300)3003235005e-53.56.6s
V1 r16 (800)8001630005e-516.4s
V2 r32 (800)8003235005e-516.3s
V3 r32+cfg (800)8003235005e-53.56.2s
V4 r32 long (800)8003250005e-516.4s
V5 r64 (800)8006440003e-516.4s
V6 r32 slow (800)8003250001e-516.4s

Image Models

ModelAvg Latency
Nano Banana 228.8s
Nano Banana Pro33.3s
GPT Image 1.530.3s

Latency Comparison

ModelAvg Latency
V1 r16 (300)6.0s
V2 r32 (300)6.1s
V3 r32+cfg (800)6.2s
V2 r32 (800)6.3s
V6 r32 slow (800)6.4s
V4 r32 long (800)6.4s
V5 r64 (800)6.4s
V1 r16 (800)6.4s
V3 r32+cfg (300)6.6s
Nano Banana 228.8s
GPT Image 1.530.3s
Nano Banana Pro33.3s

All LoRA variants average ~6-7s, while image models average ~29-33s.

Model Weights

VariantRankSamplesDownload
V1 r16 (300)16300FS_V1_r16_300_pytorch_lora_weights.safetensors
V2 r32 (300)32300FS_V2_r32_300_pytorch_lora_weights.safetensors
V3 r32+cfg (300)32300FS_V3_r32g_300_pytorch_lora_weights.safetensors
V1 r16 (800)16800FS2_V1_r16_800_pytorch_lora_weights.safetensors
V2 r32 (800)32800FS2_V2_r32_800_pytorch_lora_weights.safetensors
V3 r32+cfg (800)32800FS2_V3_r32g_800_pytorch_lora_weights.safetensors
V4 r32 long (800)32800FS2_V4_r32L_800_pytorch_lora_weights.safetensors
V5 r64 (800)64800FS2_V5_r64_800_pytorch_lora_weights.safetensors
V6 r32 slow (800)32800FS2_V6_r32s_800_pytorch_lora_weights.safetensors

Test Cases (25)

#1 — middle-aged woman with short stylish grey hair and blue eyes, elegant bone structure

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.7s6.7s8.9s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
7.3s6.6s6.6s6.6s6.6s6.6s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
35.3s39.6s27.7s

#2 — young woman with long straight brown hair parted in the middle and brown eyes

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
6.6s6.1s7.1s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
5.7s7.1s6.8s7.1s9.4s6.8s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
24.0s32.5s44.6s

#3 — older woman with short white curly hair and warm brown eyes

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
6.1s6.3s5.9s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
6.6s6.6s6.6s6.6s6.6s6.6s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
25.0s30.4s50.6s

#4 — young African American woman with braided hair and warm brown eyes

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
7.5s7.4s5.8s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
6.6s6.6s7.6s6.6s5.7s6.6s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
31.0s36.6s28.0s

#5 — young woman with short blonde bob haircut and bright blue eyes, Scandinavian features

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.7s5.7s5.7s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
8.0s6.6s6.1s6.7s6.9s5.7s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
26.5s41.0s25.3s

#6 — young Hispanic man with wavy dark hair and brown eyes, trimmed goatee

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.7s5.7s5.7s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
6.1s7.1s6.1s6.6s6.6s6.6s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
25.4s42.3s24.0s

#7 — young South Asian man with dark thick hair and brown eyes, short neat beard

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.7s6.6s5.7s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
6.6s6.6s6.6s7.1s7.5s7.1s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
23.0s31.3s25.4s

#8 — young man with a buzz cut and hazel eyes, tanned skin

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
6.2s6.6s6.7s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
6.1s6.6s6.6s6.8s5.5s5.7s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
28.5s39.8s26.6s

#9 — young Middle Eastern man with dark wavy hair and olive skin, prominent eyebrows

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.7s5.9s6.6s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
6.1s7.3s8.9s6.6s5.7s6.6s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
25.3s44.6s66.6s

#10 — young man with curly black hair and deep brown eyes, clean-shaven

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
6.4s5.7s5.7s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
5.7s7.1s6.1s7.0s6.7s6.6s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
43.9s31.3s25.2s

#11 — young African American woman with short natural TWA hairstyle and dark brown eyes, high cheekbones

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.7s6.7s6.6s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
9.8s7.5s5.7s6.6s6.1s7.5s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
26.1s23.3s25.3s

#12 — young woman with tight blonde curls, dark brown skin, bright smile, dimples

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.7s5.4s10.3s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
5.7s5.7s6.1s6.6s6.2s6.6s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
30.6s25.8s25.4s

#13 — young woman with tight blonde curls, dark brown skin, bright smile, dimples

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
7.1s5.7s7.0s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
5.7s6.6s5.7s7.0s5.8s6.8s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
24.1s24.4s26.6s

#14 — middle-aged woman with dark skin, close-cropped natural hair, elegant gold jewelry

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.7s7.1s7.5s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
7.1s5.7s7.1s5.7s7.1s7.1s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
19.4s24.7s28.1s

#15 — young Nordic man with platinum blonde hair, ice blue eyes, sharp cheekbones, clean shaven

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.7s5.7s6.6s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
6.6s5.7s5.7s5.7s7.5s7.1s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
26.4s42.2s25.3s

#16 — middle-aged Hispanic woman with dark wavy hair streaked with grey, warm brown eyes, round face

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.7s5.7s10.3s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
5.4s5.7s5.7s7.5s7.1s6.6s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
45.2s34.2s24.0s

#17 — young Pacific Islander woman with long wavy dark hair, brown eyes, strong features

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.7s5.7s7.1s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
5.7s8.1s5.7s5.7s5.7s6.7s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
20.0s28.0s27.3s

#18 — older Eastern European man with a thick grey mustache, lined face, piercing grey eyes

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.7s5.9s5.7s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
5.7s5.7s5.7s5.7s5.7s5.2s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
20.7s24.0s26.7s

#19 — older African American woman with silver locs, deep brown eyes, and laugh lines, regal posture

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
6.2s6.1s5.7s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
5.7s5.9s5.7s5.7s5.7s6.6s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
25.7s58.2s24.8s

#20 — older Chinese woman with jet black dyed hair, round face, gentle brown eyes, pearl earrings

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.7s6.6s5.7s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
6.8s5.7s5.7s7.1s5.6s5.6s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
35.0s27.9s28.3s

#21 — middle-aged woman with fiery red curly hair and freckled pale skin, green eyes, strong jawline

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.6s5.7s5.6s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
5.7s5.7s5.7s5.7s6.6s5.7s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
41.1s36.6s27.9s

#22 — young Southeast Asian man with black hair, smooth brown skin, sharp jawline

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.7s5.7s5.7s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
5.7s5.7s6.6s5.7s5.7s5.7s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
25.3s28.8s25.3s

#23 — middle-aged woman with natural grey afro, dark skin, reading glasses on nose

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
6.6s5.7s5.7s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
6.1s5.7s5.8s5.6s6.6s5.7s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
34.1s22.0s24.6s

#24 — middle-aged Hispanic woman with dark wavy hair streaked with grey, warm brown eyes, round face

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
5.6s5.7s6.1s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
7.8s5.7s5.9s5.7s5.7s5.7s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
31.9s24.7s26.0s

#25 — older East Asian man with thinning grey hair, wire-rimmed glasses, kind wrinkled eyes

Face SourceBody / SceneGround Truth

LoRA — 300 Samples

V1 r16 (300)V2 r32 (300)V3 r32+cfg (300)
6.6s5.7s6.0s

LoRA — 800 Samples

V1 r16 (800)V2 r32 (800)V3 r32+cfg (800)V4 r32 long (800)V5 r64 (800)V6 r32 slow (800)
5.7s5.7s5.4s5.7s5.7s5.7s

Image Models

Nano Banana 2Nano Banana ProGPT Image 1.5
25.3s37.3s46.7s

Training Details

  • Base Model: FLUX 2 Klein 9B
  • Method: LoRA (Low-Rank Adaptation)
  • Trainer: fal-ai/flux-2-klein-9b-base-trainer
  • Datasets: Two custom face-swap paired datasets (300 and 800 samples)
  • Rank variants tested: 16, 32, 64
  • Training steps: 3,000 – 5,000
  • Learning rates: 1e-5 to 5e-5
  • Guidance scale: 1.0 and 3.5

Author

Ilker Izgi — Creative Engineer at fal

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · diffusers

Нельзя запустить

Модели «картинка → картинка» пока не запускаются: нужен ввод изображения для diffusion.

Ревизия весов
d83f416

0 моделей