<figcaption class="mt-2 text-center text-sm text-gray-500">generated image</figcaption>
</div>
</div>  
</hfoption>
<hfoption id="Inpainting">  
IP-Adapter is also useful for inpainting because the image prompt allows you to be much more specific about what you'd like to generate.  
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