#!pip install --upgrade diffusers accelerate transformers 🤗 Accelerate speeds up model loading for inference and training. 🤗 Transformers is required to run the most popular diffusion models, such as Stable Diffusion.  DiffusionPipeline The DiffusionPipeline is the easiest way to use a pretrained diffusion system for inference. It is an end-to-end system containing the model and the scheduler. You can use the DiffusionPipeline out-of-the-box for many tasks. Take a look at the table below for some supported tasks, and for a complete list of supported tasks, check out the 🧨 Diffusers Summary table. Task Description Pipeline Unconditional Image Generation generate an image from Gaussian noise unconditional_image_generation Text-Guided Image Generation generate an image given a text prompt conditional_image_generation Text-Guided Image-to-Image Translation adapt an image guided by a text prompt img2img Text-Guided Image-Inpainting fill the masked part of an image given the image, the mask and a text prompt inpaint Text-Guided Depth-to-Image Translation adapt parts of an image guided by a text prompt while preserving structure via depth estimation depth2img Start by creating an instance of a DiffusionPipeline and specify which pipeline checkpoint you would like to download.