hout using a separate pipeline like StableDiffusionUpscalePipeline. Add the padding_mask_crop parameter to the pipeline call and set it to the desired padding value.   Copied import torch
from diffusers import AutoPipelineForInpainting
from diffusers.utils import load_image
from PIL import Image

generator = torch.Generator(device='cuda').manual_seed(0)
pipeline = AutoPipelineForInpainting.from_pretrained("runwayml/stable-diffusion-v1-5", torch