n and in-painting, pipelines shall be used for one task only to keep them easy-to-tweak and readable.

Examples
	

Text-to-Image generation with Stable Diffusion
	


	Copied
# make sure you're logged in with `huggingface-cli login`
from diffusers import StableDiffusionPipeline, LMSDiscreteScheduler

pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
pipe = pipe.to("cuda")

prompt = "a photo of an astronaut riding a