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

Lawrence-cj
/
Sana_1600M_1024px_5362ch_diffusers

Text-to-Image
Diffusers
Safetensors
SanaPipeline
Model card Files Files and versions
xet
Community

Instructions to use Lawrence-cj/Sana_1600M_1024px_5362ch_diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use Lawrence-cj/Sana_1600M_1024px_5362ch_diffusers with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("Lawrence-cj/Sana_1600M_1024px_5362ch_diffusers", 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
Sana_1600M_1024px_5362ch_diffusers / text_encoder
5.23 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
Lawrence-cj's picture
Lawrence-cj
Upload files with `sana-upload`.
4f919bc verified over 1 year ago
  • config.json
    875 Bytes
    Upload files with `sana-upload`. over 1 year ago
  • model-00001-of-00002.safetensors
    4.99 GB
    xet
    Upload files with `sana-upload`. over 1 year ago
  • model-00002-of-00002.safetensors
    241 MB
    xet
    Upload files with `sana-upload`. over 1 year ago
  • model.safetensors.index.json
    22.5 kB
    Upload files with `sana-upload`. over 1 year ago