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] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -78,7 +78,7 @@ device = "cuda"
|
|
| 78 |
dtype = torch.bfloat16
|
| 79 |
num_images_per_prompt = 2
|
| 80 |
|
| 81 |
-
prior = StableCascadePriorPipeline.from_pretrained("stabilityai/stable-cascade", torch_dtype=dtype).to(device)
|
| 82 |
decoder = StableCascadeDecoderPipeline.from_pretrained("stabilityai/stable-cascade", torch_dtype=dtype).to(device)
|
| 83 |
|
| 84 |
prompt = "Anthropomorphic cat dressed as a pilot"
|
|
|
|
| 78 |
dtype = torch.bfloat16
|
| 79 |
num_images_per_prompt = 2
|
| 80 |
|
| 81 |
+
prior = StableCascadePriorPipeline.from_pretrained("stabilityai/stable-cascade-prior", torch_dtype=dtype).to(device)
|
| 82 |
decoder = StableCascadeDecoderPipeline.from_pretrained("stabilityai/stable-cascade", torch_dtype=dtype).to(device)
|
| 83 |
|
| 84 |
prompt = "Anthropomorphic cat dressed as a pilot"
|