image  IP-Adapter IP-Adapter is an effective and lightweight adapter that adds image prompting capabilities to a diffusion model. This adapter works by decoupling the cross-attention layers of the image and text features. All the other model components are frozen and only the embedded image features in the UNet are trained. As a result, IP-Adapter files are typically only ~100MBs. IP-Adapter works with most of our pipelines, including Stable Diffusion, Stable Diffusion XL (SDXL), ControlNet, T2I-Adapter, AnimateDiff.  And you can use any custom models finetuned from the same base models. It also works with LCM-Lora out of box. You can find official IP-Adapter checkpoints in h94/IP-Adapter. IP-Adapter was contributed by okotaku. Let’s first create a Stable Diffusion Pipeline.   Copied from diffusers import AutoPipelineForText2Image