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

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