# Stable Diffusion pipelines Stable Diffusion is a text-to-image latent diffusion model created by the researchers and engineers from [CompVis](https://github.com/CompVis), [Stability AI](https://stability.ai/) and [LAION](https://laion.ai/). Latent diffusion applies the diffusion process over a lower dimensional latent space to reduce memory and compute complexity. This specific type of diffusion model was proposed in [High-Resolution Image Synthesis with Latent Diffusion Models](https://huggingface.co/papers/2112.10752) by Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, Björn Ommer. Stable Diffusion is trained on 512x512 images from a subset of the LAION-5B dataset. This model uses a frozen CLIP ViT-L/14 text encoder to condition the model on text prompts. With its 860M UNet and 123M text encoder, the model is relatively lightweight and can run on consumer GPUs. For more details about how Stable Diffusion works and how it differs from the base latent diffusion model, take a look at the Stability AI [announcement](https://stability.ai/blog/stable-diffusion-announcement) and our own [blog post](https://huggingface.co/blog/stable_diffusion#how-does-stable-diffusion-work) for more technical details. You can find the original codebase for Stable Diffusion v1.0 at [CompVis/stable-diffusion](https://github.com/CompVis/stable-diffusion) and Stable Diffusion v2.0 at [Stability-AI/stablediffusion](https://github.com/Stability-AI/stablediffusion) as well as their original scripts for various tasks. Additional official checkpoints for the different Stable Diffusion versions and tasks can be found on the [CompVis](https://huggingface.co/CompVis), [Runway](https://huggingface.co/runwayml), and [Stability AI](https://huggingface.co/stabilityai) Hub organizations. Explore these organizations to find the best checkpoint for your use-case! The table below summarizes the available Stable Diffusion pipelines, their supported tasks, and an interactive demo:
Pipeline | Supported tasks | 🤗 Space |
---|---|---|
StableDiffusion | text-to-image | |
StableDiffusionImg2Img | image-to-image | |
StableDiffusionInpaint | inpainting | |
StableDiffusionDepth2Img | depth-to-image | |
StableDiffusionImageVariation | image variation | |
StableDiffusionPipelineSafe | filtered text-to-image | |
StableDiffusion2 | text-to-image, inpainting, depth-to-image, super-resolution | |
StableDiffusionXL | text-to-image, image-to-image | |
StableDiffusionLatentUpscale | super-resolution | |
StableDiffusionUpscale | super-resolution | |
StableDiffusionLDM3D | text-to-rgb, text-to-depth, text-to-pano | |
StableDiffusionUpscaleLDM3D | ldm3d super-resolution |