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
error in StableCascadeDecoderPipeline.from_pretrained
#43
by hahaha-cc - opened
When I used "StableCascadeDecoderPipeline.from_pretrained", the error accured "AttributeError: module diffusers.pipelines.stable_cascade has no attribute StableCascadeUNet". Can someone help me?
I have same error
looks like the code is broken, or is out of sync with the published models.
pip uninstall diffusers
pip install --upgrade git+https://github.com/kashif/diffusers.git@a3dc21385b7386beb3dab3a9845962ede6765887
That commit seems to be from before it was broken.
It would be nice for the main branch to work with published models, now that the above branch has been merged to main. It might only take a small patch in this case.