Instructions to use stabilityai/stable-diffusion-x4-upscaler with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stabilityai/stable-diffusion-x4-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/stable-diffusion-x4-upscaler", 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
Commit History
-
Adding `safetensors` variant of this model
41c0823
-
fix example
c88d982 -
fix link to example
48e2be8 -
Add diffusers example
451ec24 -
add diffusers model
c13f588
-
Update link to weights (#1)
- Update link to weights (74173db6d36166baa1ad396eb6cea19ef661cbc2) Co-authored-by: Constant Meiring <constantm@users.noreply.huggingface.co>37a9df8 -
Update README.md
5f4e4bb -
Update README.md
2b9e9b4 -
Update README.md
878f497 -
Update README.md
1bcdd56
-
Delete 512-base-ema.ckpt
cc86988 -
Delete 512-depth-ema.ckpt
3ac31b7 -
Delete 512-inpainting-ema.ckpt
5ae2114 -
Delete 768-v-ema.ckpt
fd14386 -
Duplicate from stabilityai/stable-diffusion-2
Co-authored-by: Robin Rombach <rromb@users.noreply.huggingface.co>5440e1b