Instructions to use stabilityai/stable-cascade with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stabilityai/stable-cascade 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-cascade", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download decoder/config.json from stabilityai/stable-cascade: direct link, hf CLI and curl.
- Browser
- Download file 891 Bytes
-
https://huggingface.co/stabilityai/stable-cascade/resolve/refs%2Fpr%2F15/decoder/config.json
- Command line
-
hf download hf://stabilityai/stable-cascade@refs/pr/15/decoder/config.json
-
curl -L -o config.json https://huggingface.co/stabilityai/stable-cascade/resolve/refs%2Fpr%2F15/decoder/config.json
891 Bytes
Invalid JSON:Expected ',' or '}' after property value in JSONat line 46, column 3
| { | |
| "_class_name": "StableCascadeUnet", | |
| "_diffusers_version": "0.26.0.dev0", | |
| "_name_or_path": "StableCascade/decoder", | |
| "block_repeat": [ | |
| [ | |
| 1, | |
| 1, | |
| 1, | |
| 1 | |
| ], | |
| [ | |
| 3, | |
| 3, | |
| 2, | |
| 2 | |
| ] | |
| ], | |
| "blocks": [ | |
| [ | |
| 2, | |
| 6, | |
| 28, | |
| 6 | |
| ], | |
| [ | |
| 6, | |
| 28, | |
| 6, | |
| 2 | |
| ] | |
| ], | |
| "c_clip_img": null, | |
| "c_clip_seq": 4, | |
| "c_clip_text": null, | |
| "c_clip_text_pooled": 1280, | |
| "c_cond": 1280, | |
| "c_effnet": 16, | |
| "c_hidden": [ | |
| 320, | |
| 640, | |
| 1280, | |
| 1280 | |
| ], | |
| "in_channels": 4 | |
| "c_out": 4, | |
| "c_pixels": 3, | |
| "c_r": 64, | |
| "dropout": [ | |
| 0, | |
| 0, | |
| 0.1, | |
| 0.1 | |
| ], | |
| "kernel_size": 3, | |
| "level_config": [ | |
| "CT", | |
| "CT", | |
| "CTA", | |
| "CTA" | |
| ], | |
| "nhead": [ | |
| -1, | |
| -1, | |
| 20, | |
| 20 | |
| ], | |
| "patch_size": 2, | |
| "self_attn": true, | |
| "switch_level": null, | |
| "t_conds": [ | |
| "sca" | |
| ] | |
| } | |