Instructions to use ilkerzgi/face-swap with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ilkerzgi/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("ilkerzgi/face-swap") prompt = "face_swap: take the face from Picture 1 and swap it onto the person in Picture 2. the result should show the exact face and features from Picture 1 on the body, pose, and scene from Picture 2, with natural skin tone blending and matching lighting." 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
Ctrl+K
- 1.73 MB xet
- 1.55 MB xet
- 1.78 MB xet
- 1.73 MB xet
- 1.6 MB xet
- 1.62 MB xet
- 1.55 MB xet
- 2.05 MB xet
- 2 MB xet
- 1.34 MB xet
- 1.63 MB xet
- 1.57 MB xet
- 1.66 MB xet
- 1.48 MB xet
- 1.49 MB xet
- 1.52 MB xet
- 1.63 MB xet
- 1.12 MB xet
- 1.6 MB xet
- 1.77 MB xet
- 1.89 MB xet
- 1.79 MB xet
- 1.63 MB xet
- 1.48 MB xet
- 1.44 MB xet
- 1.65 MB xet
- 1.65 MB xet
- 1.61 MB xet
- 1.8 MB xet
- 1.41 MB xet
- 1.66 MB xet
- 1.55 MB xet
- 1.7 MB xet
- 1.57 MB xet
- 1.82 MB xet
- 2.05 MB xet
- 1.53 MB xet
- 1.55 MB xet
- 1.66 MB xet
- 1.47 MB xet
- 1.02 MB xet
- 1.6 MB xet
- 1.51 MB xet
- 1.61 MB xet
- 1.56 MB xet
- 1.68 MB xet
- 2.02 MB xet
- 1.82 MB xet
- 1.64 MB xet
- 1.77 MB xet