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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

stabilityai
/
sd-x2-latent-upscaler

Diffusers
Safetensors
StableDiffusionLatentUpscalePipeline
stable-diffusion
Model card Files Files and versions
xet
Community
14

Instructions to use stabilityai/sd-x2-latent-upscaler with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use stabilityai/sd-x2-latent-upscaler 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/sd-x2-latent-upscaler", torch_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
sd-x2-latent-upscaler
4.64 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 13 commits
patrickvonplaten's picture
patrickvonplaten
Remove text to image tag
416b1f2 about 3 years ago
  • scheduler
    correct scheduler config over 3 years ago
  • text_encoder
    Adding `safetensors` variant of this model (#5) over 3 years ago
  • tokenizer
    upload model over 3 years ago
  • unet
    Adding `safetensors` variant of this model (#5) over 3 years ago
  • vae
    Adding `safetensors` variant of this model (#5) over 3 years ago
  • .gitattributes
    1.53 kB
    Upload 2 files over 3 years ago
  • README.md
    7.7 kB
    Remove text to image tag about 3 years ago
  • astronaut_1024.png
    1.58 MB
    xet
    Upload 2 files over 3 years ago
  • astronaut_512.png
    429 kB
    Upload 2 files over 3 years ago
  • model_index.json
    408 Bytes
    upload model over 3 years ago