Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ilkerzgi
/
face-swap

Image-to-Image
Diffusers
Safetensors
lora
face-swap
flux
flux-2-klein
fal
image-generation
Model card Files Files and versions
xet
Community
1

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]
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
face-swap
Ctrl+K
Ctrl+K
  • 1 contributor
History: 14 commits
ilkerzgi's picture
ilkerzgi
Update model card with repo image links and fix prompts
d83f416 verified about 1 month ago
  • images
    Add evaluation images about 1 month ago
  • .gitattributes
    30.8 kB
    Add evaluation images about 1 month ago
  • FS2_V1_r16_800_pytorch_lora_weights.safetensors
    127 MB
    xet
    Add FS2_V1_r16_800 weights about 1 month ago
  • FS2_V2_r32_800_pytorch_lora_weights.safetensors
    127 MB
    xet
    Add FS2_V2_r32_800 weights about 1 month ago
  • FS2_V3_r32g_800_pytorch_lora_weights.safetensors
    127 MB
    xet
    Add FS2_V3_r32g_800 weights about 1 month ago
  • FS2_V4_r32L_800_pytorch_lora_weights.safetensors
    127 MB
    xet
    Add FS2_V4_r32L_800 weights about 1 month ago
  • FS2_V5_r64_800_pytorch_lora_weights.safetensors
    127 MB
    xet
    Add FS2_V5_r64_800 weights about 1 month ago
  • FS2_V6_r32s_800_pytorch_lora_weights.safetensors
    127 MB
    xet
    Add FS2_V6_r32s_800 weights about 1 month ago
  • FS_V1_r16_300_pytorch_lora_weights.safetensors
    127 MB
    xet
    Add FS_V1_r16_300 LoRA weights about 1 month ago
  • FS_V2_r32_300_pytorch_lora_weights.safetensors
    127 MB
    xet
    Add FS_V2_r32_300 LoRA weights about 1 month ago
  • FS_V3_r32g_300_pytorch_lora_weights.safetensors
    127 MB
    xet
    Add FS_V3_r32g_300 LoRA weights about 1 month ago
  • README.md
    72.7 kB
    Update model card with repo image links and fix prompts about 1 month ago