Head Swap
Collection
4 items β’ Updated β’ 8
How to use Alissonerdx/BFS-Best-Face-Swap with Diffusers:
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline
from diffusers.utils import load_image
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-2.1,Qwen/Qwen-Image-Edit-2511,black-forest-labs/FLUX.2-klein-9B,black-forest-labs/FLUX.2-klein-4B,black-forest-labs/FLUX.2-klein-base-4B,black-forest-labs/FLUX.2-klein-base-9B,black-forest-labs/FLUX.2-klein-9b-fp8,black-forest-labs/FLUX.2-klein-4b-fp8,krea/Krea-2-Raw", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("Alissonerdx/BFS-Best-Face-Swap")
prompt = "Turn this cat into a dog"
input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
image = pipe(image=input_image, prompt=prompt).images[0]BFS is a collection of LoRAs for face, head, and body replacement across Qwen Image 2.1, Qwen Image Edit 2509/2511, Flux 2 Klein, Krea 2, and experimental LTX-2 workflows. Each release has its own base-model, input-order, prompt, and workflow contract. Use the guide for the exact version you are loading.
1.0, then adjust for the base model, resolution, and reference image.The existing examples are grouped by workflow family in the individual guides. Qwen Image 2.1
examples are images/bfs_qwen_2.1_1.png through images/bfs_qwen_2.1_8.png.
Feel free to experiment and share your results responsibly. For workflow issues, first update ComfyUI and verify that the base model, text encoder, VAE, workflow, and LoRA all belong to the same model family.