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

  • Log In
  • Sign Up

OFA-Sys
/
small-stable-diffusion-v0

Text-to-Image
Diffusers
English
StableDiffusionPipeline
stable-diffusion
stable-diffusion-diffusers
Model card Files Files and versions
xet
Community
15

Instructions to use OFA-Sys/small-stable-diffusion-v0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use OFA-Sys/small-stable-diffusion-v0 with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("OFA-Sys/small-stable-diffusion-v0", 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
small-stable-diffusion-v0
8.73 GB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 7 commits
Sporked's picture
Sporked
Adding `safetensors` variant of this model
52a1ad8 over 3 years ago
  • feature_extractor
    :sparkles: add model weight over 3 years ago
  • safety_checker
    Adding `safetensors` variant of this model over 3 years ago
  • scheduler
    :sparkles: add model weight over 3 years ago
  • text_encoder
    Adding `safetensors` variant of this model over 3 years ago
  • tokenizer
    :sparkles: add model weight over 3 years ago
  • unet
    Adding `safetensors` variant of this model over 3 years ago
  • vae
    Adding `safetensors` variant of this model over 3 years ago
  • .gitattributes
    1.53 kB
    Upload sample_images.jpg over 3 years ago
  • README.md
    8.6 kB
    add gradio demo (#1) over 3 years ago
  • model_index.json
    560 Bytes
    :sparkles: add model weight over 3 years ago
  • sample_images.jpg
    3.95 MB
    xet
    Upload sample_images.jpg over 3 years ago
  • sample_images_compressed.jpg
    751 kB
    :bento: add compressed sample images over 3 years ago