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

ZB-Tech
/
Text-to-Image

Text-to-Image
Diffusers
TensorBoard
Safetensors
English
StableDiffusionPipeline
diffusers-training
lora
template:sd-lora
stable-diffusion-xl
stable-diffusion-xl-diffusers
Model card Files Files and versions
xet
Metrics Training metrics Community
14

Instructions to use ZB-Tech/Text-to-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use ZB-Tech/Text-to-Image with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda")
    pipe.load_lora_weights("ZB-Tech/Text-to-Image")
    
    prompt = "Draw a picture of two female boxers fighting each other."
    image = pipe(prompt).images[0]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
Text-to-Image / images
Ctrl+K
Ctrl+K
  • 3 contributors
History: 2 commits
Makanaki11's picture
Makanaki11
Upload IMG_3316.jpeg
a39b6d7 verified over 1 year ago
  • IMG_3316.jpeg
    536 kB
    Upload IMG_3316.jpeg over 1 year ago
  • example_9xsyd09gw.png
    113 kB
    Add generated example (#2) over 1 year ago