Load community pipelines
Load community pipelines
Community pipelines are any DiffusionPipeline class that are different from the original implementation as specified in their paper (for example, the StableDiffusionControlNetPipeline corresponds to the Text-to-Image Generation with ControlNet Conditioning paper). They provide additional functionality or extend the original implementation of a pipeline.
There are many cool community pipelines like Speech to Image or Composable Stable Diffusion, and you can find all the official community pipelines here.
To load any community pipeline on the Hub, pass the repository id of the community pipeline to the custom_pipeline
argument and the model repository where youβd like to load the pipeline weights and components from. For example, the example below loads a dummy pipeline from hf-internal-testing/diffusers-dummy-pipeline
and the pipeline weights and components from google/ddpm-cifar10-32
:
π By loading a community pipeline from the BOINC AI Hub, you are trusting that the code you are loading is safe. Make sure to inspect the code online before loading and running it automatically!
Copied
Loading an official community pipeline is similar, but you can mix loading weights from an official repository id and pass pipeline components directly. The example below loads the community CLIP Guided Stable Diffusion pipeline, and you can pass the CLIP model components directly to it:
Copied
For more information about community pipelines, take a look at the Community pipelines guide for how to use them and if youβre interested in adding a community pipeline check out the How to contribute a community pipeline guide!
Last updated