Many diffusion systems share the same components, allowing you to adapt a pretrained model for one task to an entirely different task.  
This guide will show you how to adapt a pretrained text-to-image model for inpainting by initializing and modifying the architecture of a pretrained [`UNet2DConditionModel`].