Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Duplicated from  Alissonerdx/BFS-Best-Face-Swap

mr2along
/
BFS

Image-to-Image
Diffusers
English
lora
qwen-image-edit
face-swap
head-swap
image-editing
ai-generated
comfyui
bfs
flux 2
flux
klein
Model card Files Files and versions
xet
Community

Instructions to use mr2along/BFS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use mr2along/BFS 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,black-forest-labs/FLUX.2-klein-4B,black-forest-labs/FLUX.2-klein-base-4B,black-forest-labs/FLUX.2-klein-base-9B,black-forest-labs/FLUX.2-klein-9b-fp8,black-forest-labs/FLUX.2-klein-4b-fp8,Qwen/Qwen-Image-Edit-2511", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("mr2along/BFS")
    
    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
  • Draw Things
BFS / workflows
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
mr2along's picture
mr2along
Duplicate from Alissonerdx/BFS-Best-Face-Swap
d9ffba9 2 months ago
  • Head Swap 2511 - V5 Simple Workflow.json
    49.8 kB
    Duplicate from Alissonerdx/BFS-Best-Face-Swap 2 months ago
  • Head Swap V1 Flux 2 Klein 4b_9b (base_distill).json
    68.7 kB
    Duplicate from Alissonerdx/BFS-Best-Face-Swap 2 months ago
  • Head Swap V3 Simple Workflow (With Lightining LoRA) .json
    42.3 kB
    Duplicate from Alissonerdx/BFS-Best-Face-Swap 2 months ago
  • Head Swap V3 Simple Workflow (Without Lightining LoRA).json
    81.4 kB
    Duplicate from Alissonerdx/BFS-Best-Face-Swap 2 months ago
  • Head Swap V4 Simple Workflow.json
    43.6 kB
    Duplicate from Alissonerdx/BFS-Best-Face-Swap 2 months ago