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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

pearsonkyle
/
carddeframe-klein4b

Image-to-Image
Diffusers
lora
image-editing
flux2
trading-cards
ai-toolkit
Model card Files Files and versions
xet
Community

Instructions to use pearsonkyle/carddeframe-klein4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use pearsonkyle/carddeframe-klein4b 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-base-4B", torch_dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("pearsonkyle/carddeframe-klein4b")
    
    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]
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • Draw Things
carddeframe-klein4b
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
pearsonkyle's picture
pearsonkyle
Link companion dataset repo
6a3fe94 verified 7 days ago
  • .gitattributes
    1.76 kB
    Card de-frame LoRA v6 (FLUX.2-klein-base-4B) 7 days ago
  • README.md
    4.62 kB
    Link companion dataset repo 7 days ago
  • before_after_digimon.png
    1.26 MB
    xet
    Card de-frame LoRA v6 (FLUX.2-klein-base-4B) 7 days ago
  • before_after_mtg.png
    1.65 MB
    xet
    Card de-frame LoRA v6 (FLUX.2-klein-base-4B) 7 days ago
  • before_after_pokemon.png
    1.66 MB
    xet
    Card de-frame LoRA v6 (FLUX.2-klein-base-4B) 7 days ago
  • before_after_yugioh.png
    1.51 MB
    xet
    Card de-frame LoRA v6 (FLUX.2-klein-base-4B) 7 days ago
  • carddeframe_klein4b_v6.safetensors
    185 MB
    xet
    Card de-frame LoRA v6 (FLUX.2-klein-base-4B) 7 days ago