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 Settings
- Draw Things
- DiffusionBee
Unaable to run decoder, expects vqgan
#4
by obviyus - opened
Hi, upon using the code from the readme, I get a:
ValueError: Pipeline <class 'diffusers.pipelines.stable_cascade.pipeline_stable_cascade.StableCascadeDecoderPipeline'> expected {'tokenizer', 'scheduler', 'decoder', 'text_encoder', 'vqgan'}, but only {'tokenizer', 'scheduler', 'text_encoder'} were passed.
I can confirm I'm using the latest commit of the wuerstchen-v3 branch. Is there a parameter I'm missing somewhere?
My apologies, was loading the prior into the decoder.
obviyus changed discussion status to closed