</div>
</div>  
</hfoption>
<hfoption id="Image-to-image">  
IP-Adapter can also help with image-to-image by guiding the model to generate an image that resembles the original image and the image prompt.  
Load a Stable Diffusion XL (SDXL) model and insert an IP-Adapter into the model with the [`~loaders.IPAdapterMixin.load_ip_adapter`] method. Use the `subfolder` parameter to load the SDXL model weights.  
```py
from diffusers import AutoPipelineForImage2Image
from diffusers.utils import load_image