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
-
Update vae/config.json
This config file causes the following FutureWarning error. > FutureWarning: The configuration file of the vae does not contain `scaling_factor` or it is set to 0.18215, which seems highly unlikely. If your checkpoint is a fine-tuned version of `stabilityai/stable-diffusion-x4-upscaler` you should change 'scaling_factor' to 0.08333 Please make sure to update the config accordingly, as not doing so might lead to incorrect results in future versions. If you have downloaded this checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull Request for the `vae/config.json` file So please approve this pull request. It will probably work.197e90f
-
Update README.md
19b610c -
Update README.md
45ad647 -
Adding `safetensors` variant of this model (#3)
- Adding `safetensors` variant of this model (41c0823eeac255f85303ad3efc553817f3647375)a44206c
-
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