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

dx8152
/
Flux2-Klein-9B-Consistency

Image-to-Image
Diffusers
lora
Model card Files Files and versions
xet
Community
10

Instructions to use dx8152/Flux2-Klein-9B-Consistency with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use dx8152/Flux2-Klein-9B-Consistency 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("dx8152/Flux2-Klein-9B-Consistency")
    
    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
  • Draw Things
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

4b-base please or share dataset & settings

3
#10 opened about 1 month ago by
jesleocizi

[Req] Multiple angles lora for Klein 9b

1
#9 opened about 1 month ago by
johnnypawan

Thank you for creating all these great Loras

❤️ 2
#8 opened about 1 month ago by
RamonGuthrie

Will there be an update?

1
#7 opened about 2 months ago by
Cemrek

Prerendered background help

2
#6 opened about 2 months ago by
MBTheComposer

Request: DOI

#5 opened 2 months ago by
Lapsiorsss

Workflow: CR Text node missing

#4 opened 2 months ago by
maglat

Is it compatible with FLUX.2-klein-9b-kv?

6
#3 opened 2 months ago by
zhaoqi

Request for Klein 4B

😎 1
1
#2 opened 3 months ago by
albex123
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs