0

Community Pipeline Examples

Please also check out our Community Scripts examples for tips and tricks that you can use with diffusers without having to run a community pipeline.

Example · مثال

Content

Community Pipeline Examples

For more information about community pipelines, please have a look at this issue.

Community pipeline examples consist pipelines that have been added by the community. Please have a look at the following tables to get an overview of all community examples. Click on the Code Example to get a copy-and-paste ready code example that you can try out. If a community pipeline doesn't work as expected, please open an issue and ping the author on it.

Please also check out our Community Scripts examples for tips and tricks that you can use with diffusers without having to run a community pipeline.

| Example | Description | Code Example | Colab | Author | |:--------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------:| |Spatiotemporal Skip Guidance (STG)|Spatiotemporal Skip Guidance for Enhanced Video Diffusion Sampling (CVPR 2025) enhances video diffusion models by generating a weaker model through layer skipping and using it as guidance, improving fidelity in models like HunyuanVideo, LTXVideo, and Mochi.|[Spatiotemporal Skip Guidance](#spatiotemporal-skip-guidance)|-|Junha Hyung, Kinam Kim, and Ednaordinary| |Adaptive Mask Inpainting|Adaptive Mask Inpainting algorithm from Beyond the Contact: Discovering Comprehensive Affordance for 3D Objects from Pre-trained 2D Diffusion Models (ECCV '24, Oral) provides a way to insert human inside the scene image without altering the background, by inpainting with adapting mask.|[Adaptive Mask Inpainting](#adaptive-mask-inpainting)|-|Hyeonwoo Kim,Sookwan Han| |Flux with CFG|Flux with CFG provides an implementation of using CFG in Flux.|[Flux with CFG](#flux-with-cfg)|Notebook|Linoy Tsaban, Apolinário, and Sayak Paul| |Differential Diffusion|Differential Diffusion modifies an image according to a text prompt, and according to a map that specifies the amount of change in each region.|[Differential Diffusion](#differential-diffusion)| |Eran Levin and Ohad Fried| | HD-Painter | HD-Painter enables prompt-faithfull and high resolution (up to 2k) image inpainting upon any diffusion-based image inpainting method. | [HD-Painter](#hd-painter) | | Manukyan Hayk and Sargsyan Andranik | | Marigold Monocular Depth Estimation | A universal monocular depth estimator, utilizing Stable Diffusion, delivering sharp predictions in the wild. (See the project page and full codebase for more details.) | [Marigold Depth Estimation](#marigold-depth-estimation) | | Bingxin Ke and Anton Obukhov | | LLM-grounded Diffusion (LMD+) | LMD greatly improves the prompt following ability of text-to-image generation models by introducing an LLM as a front-end prompt parser and layout planner. Project page. See our full codebase (also with diffusers). | [LLM-grounded Diffusion (LMD+)](#llm-grounded-diffusion) | Huggingface Demo | Long (Tony) Lian | | CLIP Guided Stable Diffusion | Doing CLIP guidance for text to image generation with Stable Diffusion | [CLIP Guided Stable Diffusion](#clip-guided-stable-diffusion) | | Suraj Patil | | One Step U-Net (Dummy) | Example showcasing of how to use Community Pipelines (see <https://github.com/huggingface/diffusers/issues/841>) | [One Step U-Net](#one-step-unet) | - | Patrick von Platen | | Stable Diffusion Interpolation | Interpolate the latent space of Stable Diffusion between different prompts/seeds | [Stable Diffusion Interpolation](#stable-diffusion-interpolation) | Notebook | Nate Raw | | Stable Diffusion Mega | One Stable Diffusion Pipeline with all functionalities of Text2Image, Image2Image and Inpainting | [Stable Diffusion Mega](#stable-diffusion-mega) | Notebook | Patrick von Platen | | Long Prompt Weighting Stable Diffusion | One Stable Diffusion Pipeline without tokens length limit, and support parsing weighting in prompt. | [Long Prompt Weighting Stable Diffusion](#long-prompt-weighting-stable-diffusion) | Notebook | SkyTNT | | Speech to Image | Using automatic-speech-recognition to transcribe text and Stable Diffusion to generate images | [Speech to Image](#speech-to-image) |Notebook | Mikail Duzenli | Wild Card Stable Diffusion | Stable Diffusion Pipeline that supports prompts that contain wildcard terms (indicated by surrounding double underscores), with values instantiated randomly from a corresponding txt file or a dictionary of possible values | [Wildcard Stable Diffusion](#wildcard-stable-diffusion) | Notebook | Shyam Sudhakaran | | Composable Stable Diffusion | Stable Diffusion Pipeline that supports prompts that contain "&#124;" in prompts (as an AND condition) and weights (separated by "&#124;" as well) to positively / negatively weight prompts. | [Composable Stable Diffusion](#composable-stable-diffusion) | Notebook | Mark Rich | | Seed Resizing Stable Diffusion | Stable Diffusion Pipeline that supports resizing an image and retaining the concepts of the 512 by 512 generation. | [Seed Resizing](#seed-resizing) | Notebook | Mark Rich | | Imagic Stable Diffusion | Stable Diffusion Pipeline that enables writing a text prompt to edit an existing image | [Imagic Stable Diffusion](#imagic-stable-diffusion) | Notebook | Mark Rich | | Multilingual Stable Diffusion | Stable Diffusion Pipeline that supports prompts in 50 different languages. | [Multilingual Stable Diffusion](#multilingual-stable-diffusion-pipeline) | Notebook | Juan Carlos Piñeros | | GlueGen Stable Diffusion | Stable Diffusion Pipeline that supports prompts in different languages using GlueGen adapter. | [GlueGen Stable Diffusion](#gluegen-stable-diffusion-pipeline) | Notebook | Phạm Hồng Vinh | | Image to Image Inpainting Stable Diffusion | Stable Diffusion Pipeline that enables the overlaying of two images and subsequent inpainting | [Image to Image Inpainting Stable Diffusion](#image-to-image-inpainting-stable-diffusion) | Notebook | Alex McKinney | | Text Based Inpainting Stable Diffusion | Stable Diffusion Inpainting Pipeline that enables passing a text prompt to generate the mask for inpainting | [Text Based Inpainting Stable Diffusion](#text-based-inpainting-stable-diffusion) | Notebook | Dhruv Karan | | Bit Diffusion | Diffusion on discrete data | [Bit Diffusion](#bit-diffusion) | - | Stuti R. | | K-Diffusion Stable Diffusion | Run Stable Diffusion with any of K-Diffusion's samplers | [Stable Diffusion with K Diffusion](#stable-diffusion-with-k-diffusion) | - | Patrick von Platen | | Checkpoint Merger Pipeline | Diffusion Pipeline that enables merging of saved model checkpoints | [Checkpoint Merger Pipeline](#checkpoint-merger-pipeline) | - | Naga Sai Abhinay Devarinti | | Stable Diffusion v1.1-1.4 Comparison | Run all 4 model checkpoints for Stable Diffusion and compare their results together | [Stable Diffusion Comparison](#stable-diffusion-comparisons) | Notebook | Suvaditya Mukherjee | | MagicMix | Diffusion Pipeline for semantic mixing of an image and a text prompt | [MagicMix](#magic-mix) | Notebook | Partho Das | | Stable UnCLIP | Diffusion Pipeline for combining prior model (generate clip image embedding from text, UnCLIPPipeline "kakaobrain/karlo-v1-alpha") and decoder pipeline (decode clip image embedding to image, StableDiffusionImageVariationPipeline "lambdalabs/sd-image-variations-diffusers" ). | [Stable UnCLIP](#stable-unclip) | Notebook | Ray Wang | | UnCLIP Text Interpolation Pipeline | Diffusion Pipeline that allows passing two prompts and produces images while interpolating between the text-embeddings of the two prompts | [UnCLIP Text Interpolation Pipeline](#unclip-text-interpolation-pipeline) | Notebook| Naga Sai Abhinay Devarinti | | UnCLIP Image Interpolation Pipeline | Diffusion Pipeline that allows passing two images/image_embeddings and produces images while interpolating between their image-embeddings | [UnCLIP Image Interpolation Pipeline](#unclip-image-interpolation-pipeline) | Notebook| Naga Sai Abhinay Devarinti | | DDIM Noise Comparative Analysis Pipeline | Investigating how the diffusion models learn visual concepts from each noise level (which is a contribution of P2 weighting (CVPR 2022)) | [DDIM Noise Comparative Analysis Pipeline](#ddim-noise-comparative-analysis-pipeline) | Notebook| Aengus (Duc-Anh) | | CLIP Guided Img2Img Stable Diffusion Pipeline | Doing CLIP guidance for image to image generation with Stable Diffusion | [CLIP Guided Img2Img Stable Diffusion](#clip-guided-img2img-stable-diffusion) | Notebook | Nipun Jindal | | TensorRT Stable Diffusion Text to Image Pipeline | Accelerates the Stable Diffusion Text2Image Pipeline using TensorRT | [TensorRT Stable Diffusion Text to Image Pipeline](#tensorrt-text2image-stable-diffusion-pipeline) | Notebook | Asfiya Baig | | EDICT Image Editing Pipeline | Diffusion pipeline for text-guided image editing | [EDICT Image Editing Pipeline](#edict-image-editing-pipeline) | Notebook | Joqsan Azocar | | Stable Diffusion RePaint | Stable Diffusion pipeline using RePaint for inpainting. | [Stable Diffusion RePaint](#stable-diffusion-repaint )|Notebook| Markus Pobitzer | | TensorRT Stable Diffusion Image to Image Pipeline | Accelerates the Stable Diffusion Image2Image Pipeline using TensorRT | [TensorRT Stable Diffusion Image to Image Pipeline](#tensorrt-image2image-stable-diffusion-pipeline) | - | Asfiya Baig | | Stable Diffusion IPEX Pipeline | Accelerate Stable Diffusion inference pipeline with BF16/FP32 precision on Intel Xeon CPUs with IPEX | [Stable Diffusion on IPEX](#stable-diffusion-on-ipex) | - | Yingjie Han | | CLIP Guided Images Mixing Stable Diffusion Pipeline | Сombine images using usual diffusion models. | [CLIP Guided Images Mixing Using Stable Diffusion](#clip-guided-images-mixing-with-stable-diffusion) | Notebook | Karachev Denis | | TensorRT Stable Diffusion Inpainting Pipeline | Accelerates the Stable Diffusion Inpainting Pipeline using TensorRT | [TensorRT Stable Diffusion Inpainting Pipeline](#tensorrt-inpainting-stable-diffusion-pipeline) | - | Asfiya Baig | | IADB Pipeline | Implementation of Iterative α-(de)Blending: a Minimalist Deterministic Diffusion Model | [IADB Pipeline](#iadb-pipeline) | - | Thomas Chambon | Zero1to3 Pipeline | Implementation of Zero-1-to-3: Zero-shot One Image to 3D Object | [Zero1to3 Pipeline](#zero1to3-pipeline) | - | Xin Kong | | Stable Diffusion XL Long Weighted Prompt Pipeline | A pipeline support unlimited length of prompt and negative prompt, use A1111 style of prompt weighting | [Stable Diffusion XL Long Weighted Prompt Pipeline](#stable-diffusion-xl-long-weighted-prompt-pipeline) | | Andrew Zhu | | Stable Diffusion Mixture Tiling Pipeline SD 1.5 | A pipeline generates cohesive images by integrating multiple diffusion processes, each focused on a specific image region and considering boundary effects for smooth blending | [Stable Diffusion Mixture Tiling Pipeline SD 1.5](#stable-diffusion-mixture-tiling-pipeline-sd-15) | | Álvaro B Jiménez | | Stable Diffusion Mixture Canvas Pipeline SD 1.5 | A pipeline generates cohesive images by integrating multiple diffusion processes, each focused on a specific image region and considering boundary effects for smooth blending. Works by defining a list of Text2Image region objects that detail the region of influence of each diffuser

Source and license

Source
Hugging Face Diffusers
Original
huggingface/diffusers/examples/community
License
Apache-2.0