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!
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:
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!