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_04745_.png from sdfafdfsdf/BFS-Best-Face-Swap: direct link, hf CLI and curl.
- Browser
- Download file 6.08 MB
-
https://huggingface.co/sdfafdfsdf/BFS-Best-Face-Swap/resolve/main/images/ComfyUI_04745_.png
- Command line
-
hf download hf://sdfafdfsdf/BFS-Best-Face-Swap/images/ComfyUI_04745_.png
-
curl -L -o ComfyUI_04745_.png https://huggingface.co/sdfafdfsdf/BFS-Best-Face-Swap/resolve/main/images/ComfyUI_04745_.png
6.08 MB

- Xet hash:
- 60405ae542a2121127b14fdcbf185d160418e6a7403d2a0eee888a9a01f60bbd
- Size of remote file:
- 6.08 MB
- SHA256:
- 9c55e0266b901433cba62216a1e8c9f9fb1f2b0c0b96db3146717fb54ec6d6ff
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.