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

bguisard
/
stable-diffusion-nano-2-1

Text-to-Image
Diffusers
Safetensors
StableDiffusionPipeline
stable-diffusion
stable-diffusion-diffusers
jax-diffusers-event
Model card Files Files and versions
xet
Community
5

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

  • Libraries
  • Diffusers

    How to use bguisard/stable-diffusion-nano-2-1 with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("bguisard/stable-diffusion-nano-2-1", 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-nano-2-1
10.3 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 10 commits
bguisard's picture
bguisard
radames's picture
radames
Adding `safetensors` variant of this model (#4)
d29ec90 over 2 years ago
  • scheduler
    Migrate model to PyTorch about 3 years ago
  • text_encoder
    Adding `safetensors` variant of this model (#4) over 2 years ago
  • tokenizer
    Update tokenizer/tokenizer_config.json (#1) about 3 years ago
  • unet
    Adding `safetensors` variant of this model (#4) over 2 years ago
  • vae
    Adding `safetensors` variant of this model (#4) over 2 years ago
  • .gitattributes
    1.48 kB
    initial commit about 3 years ago
  • README.md
    2.47 kB
    Update README.md about 3 years ago
  • images_0.png
    127 kB
    Release sd-nano 2.1 about 3 years ago
  • images_1.png
    116 kB
    Release sd-nano 2.1 about 3 years ago
  • model_index.json
    481 Bytes
    Migrate model to PyTorch about 3 years ago