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
-
Fix deprecated float16/fp16 variant loading through new `version` API.
Hey stabilityai 👋, Your model repository seems to contain a [`fp16` branch](https://huggingface.co/stabilityai/stable-diffusion-x4-upscaler/tree/fp16) to load the model in float16 precision. Loading `fp16` versions from a branch instead of the main branch is deprecated and will eventually be forbidden. Instead, we strongly recommend to save `fp16` versions of the model under `.fp16.` version files directly on the 'main' branch as enabled through this PR.This PR makes sure that your model repository allows the user to correctly download float16 precision model weights by adding `fp16` model weights in both safetensors and PyTorch bin format: ```py pipe = DiffusionPipeline.from_pretrained(stabilityai/stable-diffusion-x4-upscaler, torch_dtype=torch.float16, variant='fp16') ``` For more information please have a look at: https://huggingface.co/docs/diffusers/using-diffusers/loading#checkpoint-variants. We made sure you that you can safely merge this pull request. Best, the 🧨 Diff…a7b1e85
-
Remove text-to-image tag (#19)
- Remove text-to-image tag (ab9ae02e35d3c064bfbd649a1a4b8f7da20b1e69)91ecd52
-
Update vae/config.json (#9)
- Update vae/config.json (197e90fe98a07bfa6e040a0872d7bfdd25707147) Co-authored-by: ちくわぶ <Prgckwb@users.noreply.huggingface.co>c1d3e48
-
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