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
-
Remove text-to-image tag (#19)
- Remove text-to-image tag (ab9ae02e35d3c064bfbd649a1a4b8f7da20b1e69)91ecd52
-
Update README.md
19b610c -
Update README.md
45ad647
-
fix example
c88d982 -
fix link to example
48e2be8 -
Add diffusers example
451ec24
-
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
-
Duplicate from stabilityai/stable-diffusion-2
Co-authored-by: Robin Rombach <rromb@users.noreply.huggingface.co>5440e1b