pipeline = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-inpainting", use_safetensors=True)
pipeline.unet.config["in_channels"]
9
```  
To adapt your text-to-image model for inpainting, you'll need to change the number of `in_channels` from 4 to 9.