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 ·
5f4e4bb
1
Parent(s): 2b9e9b4
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,6 +11,12 @@ This model card focuses on the model associated with the Stable Diffusion Upscal
|
|
| 11 |
This model is trained for 1.25M steps on a 10M subset of LAION containing images `>2048x2048`. The model was trained on crops of size `512x512` and is a text-guided [latent upscaling diffusion model](https://arxiv.org/abs/2112.10752).
|
| 12 |
In addition to the textual input, it receives a `noise_level` as an input parameter, which can be used to add noise to the low-resolution input according to a [predefined diffusion schedule](configs/stable-diffusion/x4-upscaling.yaml).
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
## Model Details
|
| 15 |
- **Developed by:** Robin Rombach, Patrick Esser
|
| 16 |
- **Model type:** Diffusion-based text-to-image generation model
|
|
|
|
| 11 |
This model is trained for 1.25M steps on a 10M subset of LAION containing images `>2048x2048`. The model was trained on crops of size `512x512` and is a text-guided [latent upscaling diffusion model](https://arxiv.org/abs/2112.10752).
|
| 12 |
In addition to the textual input, it receives a `noise_level` as an input parameter, which can be used to add noise to the low-resolution input according to a [predefined diffusion schedule](configs/stable-diffusion/x4-upscaling.yaml).
|
| 13 |
|
| 14 |
+

|
| 15 |
+
|
| 16 |
+
- Use it with the [`stablediffusion`](https://github.com/Stability-AI/stablediffusion) repository: download the `x4-upscaler-ema.ckpt` [here](https://huggingface.co/stabilityai/stable-diffusion-2-depth/resolve/main/x4-upscaler-ema.ckpt).
|
| 17 |
+
- Use it with 🧨 diffusers (_coming soon_)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
## Model Details
|
| 21 |
- **Developed by:** Robin Rombach, Patrick Esser
|
| 22 |
- **Model type:** Diffusion-based text-to-image generation model
|