Views
No views yet
| Identity Source | Target Scene | Final Output |
|---|---|---|
![]() | ![]() | ![]() |
| Identity Source | Target Scene | Final Output |
|---|---|---|
![]() | ![]() | ![]() |
jhuangswap20 – 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.1from diffusers import Flux2Pipeline
2import torch
3
4pipe = Flux2Pipeline.from_pretrained(
5 "black-forest-labs/FLUX.2-klein-base-9B",
6 torch_dtype=torch.bfloat16
7).to("cuda")
8
9pipe.load_lora_weights("nhathoangfoto/Flux.2-Klein-9B-SmartCharcterswap", adapter_name="smartcharswap")
10pipe.set_adapters(["smartcharswap"], adapter_weights=[0.85])
11
12# For Distilled Model usage:
13# result = pipe(prompt="jhuangswap, realistic portrait...", num_inference_steps=4, guidance_scale=1.0)