File size: 789 Bytes
ba205fe 3fd0370 ba205fe 585a602 5d1ddad 585a602 ac22e3d 585a602 ac22e3d 585a602 ac22e3d 585a602 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
---
license: apache-2.0
prior:
- warp-diffusion/wuerstchen-prior
tags:
- text-to-image
- wuerstchen
---
# How-to-use
By using this pipeline with `AutoPipelineForText2Image`, the required prior pipeline: https://huggingface.co/warp-diffusion/wuerstchen-prior will automatically be downloaded
and run.
```py
import torch
from diffusers import AutoPipelineForText2Image
from diffusers.pipelines.wuerstchen import default_stage_c_timesteps
pipe = AutoPipelineForText2Image.from_pretrained("warp-ai/wuerstchen", torch_dtype=torch.float16).to("cuda")
caption = "Anthropomorphic cat dressed as a fire fighter"
images = pipe(
caption,
width=1024,
height=1536,
prior_timesteps=default_stage_c_timesteps,
prior_guidance_scale=4.0,
num_images_per_prompt=2,
).images
``` |