Downloads · 30 days
49
23% of all-time downloads
ameno-tech/Flux.2-Klein-9B-SmartCharacterSwap
Flux.2-Klein-9B-SmartCharacterSwap is a image-to-image model from ameno-tech. Use it when you need one image transformed into another. It is set up for diffusers. The card lists the license as apache-2.0.
The ultimate LoRA for high-end, occlusion-aware character and face swapping.
Downloads · 30 days
49
23% of all-time downloads
All-time downloads
217
Public
Repo size
179 MB
Likes
3
Public
Click a slice to open those files.
.safetensors166 MB · 96%
From the Hugging Face model README
The ultimate LoRA for high-end, occlusion-aware character and face swapping.
Designed specifically for commercial imaging workflows, this adapter for FLUX.2 Klein 9B excels at handling complex occlusions (hands, veils, foreground objects) while seamlessly matching the exact color grading and directional lighting of your target scene.
Want to build production-ready AI pipelines? Subscribe to the channel for upcoming in-depth tutorials on how to maximize this LoRA, advanced ComfyUI node setups, GPU optimization, and building real-world AI applications (like automated AI photobooths).
@JettHuangAI — Hit 🔔 so you don't miss the deep-dive workflow tutorial for this model!
</div>Standard face-swap methods often fail in professional environments by pasting faces over objects or introducing uncanny, plastic looks. SmartCharcterswap solves this by acting as an intelligent compositor:
| Identity Source | Target Scene | Final Output |
|---|---|---|
| <img src="https://huggingface.co/nhathoangfoto/Flux.2-Klein-9B-SmartCharcterswap/resolve/main/example/B1.jpg" width="250"/> | <img src="https://huggingface.co/nhathoangfoto/Flux.2-Klein-9B-SmartCharcterswap/resolve/main/example/B2.jpg" width="250"/> | <img src="https://huggingface.co/nhathoangfoto/Flux.2-Klein-9B-SmartCharcterswap/resolve/main/example/B3.jpg" width="250"/> |
| Identity Source | Target Scene | Final Output |
|---|---|---|
| <img src="https://huggingface.co/nhathoangfoto/Flux.2-Klein-9B-SmartCharcterswap/resolve/main/example/A1.jpg" width="250"/> | <img src="https://huggingface.co/nhathoangfoto/Flux.2-Klein-9B-SmartCharcterswap/resolve/main/example/A2.jpg" width="250"/> | <img src="https://huggingface.co/nhathoangfoto/Flux.2-Klein-9B-SmartCharcterswap/resolve/main/example/A3.jpg" width="250"/> |
This LoRA is optimized for node-based workflows, providing maximum stability for both standard and lightning-fast inference pipelines.
Trigger Word: jhuangswap
20 – 302.0 – 4.00.75 – 1.04 steps (Highly optimized)1.0 (Strictly required for distilled/schnell base models)0.85 – 1.0.safetensors file.ComfyUI/models/loras/ directory.jhuangswap at the beginning of your positive prompt.from diffusers import Flux2Pipeline
import torch
pipe = Flux2Pipeline.from_pretrained(
"black-forest-labs/FLUX.2-klein-base-9B",
torch_dtype=torch.bfloat16
).to("cuda")
pipe.load_lora_weights("nhathoangfoto/Flux.2-Klein-9B-SmartCharcterswap", adapter_name="smartcharswap")
pipe.set_adapters(["smartcharswap"], adapter_weights=[0.85])
# For Distilled Model usage:
# result = pipe(prompt="jhuangswap, realistic portrait...", num_inference_steps=4, guidance_scale=1.0)