Image-to-Image
Diffusers
English
lora
qwen-image-edit
face-swap
head-swap
image-editing
ai-generated
comfyui
bfs
flux 2
flux
klein
Instructions to use sdfafdfsdf/BFS-Best-Face-Swap with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use sdfafdfsdf/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("black-forest-labs/FLUX.2-klein-9B", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("sdfafdfsdf/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] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
Download images/ComfyUI_04759_.png from sdfafdfsdf/BFS-Best-Face-Swap: direct link, hf CLI and curl.
- Browser
- Download file 5.33 MB
-
https://huggingface.co/sdfafdfsdf/BFS-Best-Face-Swap/resolve/main/images/ComfyUI_04759_.png
- Command line
-
hf download hf://sdfafdfsdf/BFS-Best-Face-Swap/images/ComfyUI_04759_.png
-
curl -L -o ComfyUI_04759_.png https://huggingface.co/sdfafdfsdf/BFS-Best-Face-Swap/resolve/main/images/ComfyUI_04759_.png
5.33 MB

- Xet hash:
- aa40be1e8f62db93eada5e7ae9002c3567047b951f1f7fb41cb710f4dbd16777
- Size of remote file:
- 5.33 MB
- SHA256:
- a82de9bccec50c3fa6a459f5368569841f1ff83b8437e1c62994569ef0432f22
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.