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

mikkoph
/
mikkoani-klein4b

Text-to-Image
Diffusers
lora
template:diffusion-lora
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Diffusers

    How to use mikkoph/mikkoani-klein4b with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.2-klein-4B", torch_dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("mikkoph/mikkoani-klein4b")
    
    prompt = "a closeup fashion portrait illustration of a woman wearing a large hat covering one of her eyes. The contrast is very stark between the shaded part and the highlights"
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • Draw Things
  • DiffusionBee
mikkoani-klein4b
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
mikkoph's picture
mikkoph
Update README.md
2429707 verified 4 months ago
  • images
    Add 7 files 4 months ago
  • .gitattributes
    2.31 kB
    initial commit 4 months ago
  • README.md
    3.14 kB
    Update README.md 4 months ago
  • klein4b-mikkoani.safetensors
    92.4 MB
    xet
    Add 7 files 4 months ago