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
Size of image
#45
by Filipprox - opened
How to determine what resolutions a neuron can generate?
For example, I cannot generate images in the format:
- 1200, 632 - 400: pixel_unshuffle expects width to be divisible by downscale_factor, but input.size(-1)=309 is not divisible by 2
- 856, 320 - 400: pixel_unshuffle expects height to be divisible by downscale_factor, but input.size(-2)=85 is not divisible by 2
I also met this problem. Do you know the reason now?
I also met this problem...also don't know how to solve it