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

  • Log In
  • Sign Up

flax
/
stable-diffusion-2-base

Text-to-Image
Diffusers
English
FlaxStableDiffusionPipeline
TPU
JAX
Flax
stable-diffusion
Model card Files Files and versions
xet
Community
2

Instructions to use flax/stable-diffusion-2-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use flax/stable-diffusion-2-base with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("flax/stable-diffusion-2-base", dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
    image = pipe(prompt).images[0]
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • Draw Things
  • DiffusionBee
stable-diffusion-2-base
5.16 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 6 commits
camenduru's picture
camenduru
valhalla's picture
valhalla
Add `scale_factor` to vae config. (#2)
5a6ad2f over 3 years ago
  • scheduler
    flax over 3 years ago
  • text_encoder
    flax over 3 years ago
  • tokenizer
    flax over 3 years ago
  • unet
    Update unet/config.json over 3 years ago
  • vae
    Add `scale_factor` to vae config. (#2) over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • README.md
    124 Bytes
    Create README.md over 3 years ago
  • model_index.json
    500 Bytes
    flax over 3 years ago