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 ·
19b610c
1
Parent(s): 45ad647
Update README.md
Browse files
README.md
CHANGED
|
@@ -41,7 +41,7 @@ In addition to the textual input, it receives a `noise_level` as an input parame
|
|
| 41 |
Using the [🤗's Diffusers library](https://github.com/huggingface/diffusers) to run Stable Diffusion 2 in a simple and efficient manner.
|
| 42 |
|
| 43 |
```bash
|
| 44 |
-
pip install
|
| 45 |
```
|
| 46 |
|
| 47 |
```python
|
|
|
|
| 41 |
Using the [🤗's Diffusers library](https://github.com/huggingface/diffusers) to run Stable Diffusion 2 in a simple and efficient manner.
|
| 42 |
|
| 43 |
```bash
|
| 44 |
+
pip install diffusers transformers accelerate scipy safetensors
|
| 45 |
```
|
| 46 |
|
| 47 |
```python
|