 the generation process if they’re unhappy with the intermediate results. You can incorporate this into your pipeline with a callback. The interruption callback is supported for text-to-image, image-to-image, and inpainting for the StableDiffusionPipeline and StableDiffusionXLPipeline. This callback function should take the following arguments: pipe, i, t, and callback_kwargs (this must be returned). Set the pipeline’s _interrupt attribute to T