Image-to-Image
Diffusers
English
lora
qwen-image
qwen-image-2.1
qwen-image-edit
face-swap
head-swap
body-swap
image-editing
comfyui
bfs
Instructions to use suryatmodulus/BFS-Best-Face-Swap with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use suryatmodulus/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", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("suryatmodulus/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] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
|
Download docs/krea-2.md from suryatmodulus/BFS-Best-Face-Swap: direct link, hf CLI and curl.
- Browser
- Download file 1.27 kB
-
https://huggingface.co/suryatmodulus/BFS-Best-Face-Swap/resolve/main/docs/krea-2.md
- Command line
-
hf download hf://suryatmodulus/BFS-Best-Face-Swap/docs/krea-2.md
-
curl -L -o krea-2.md https://huggingface.co/suryatmodulus/BFS-Best-Face-Swap/resolve/main/docs/krea-2.md
1.27 kB
Krea 2 Head and Body Swap LoRAs
Head Swap V1.1
bfs_head_swap_v1.1_krea2.safetensors is the updated
Krea 2 head-swap release and replaces the earlier V1 file.
Use the included Head Swap Krea 2 - V1 Simple Workflow.json.
Inputs:
- Image 1: base image
- Image 2: reference head
Prompt:
head_swap: replace the head with the reference head.
Body Swap V1 (experimental)
bfs_body_swap_v1_krea2.safetensors replaces the
source person with the reference person. Exact pose transfer is not guaranteed.
Use the included Body Swap Krea 2 - V1 Simple Workflow.json.
Inputs:
- Image 1: base image
- Image 2: reference person
Prompt:
body_swap: replace the person with the reference person.
To request a new background, append:
BG: [describe the new background]
Start around LoRA strength 0.5 for body swap and adjust from there. The head workflow can be
combined with the body workflow when additional head-identity control is useful.