
    callback_on_step_end=interrupt_callback,
)  Display image after each generation step This tip was contributed by asomoza. Display an image after each generation step by accessing and converting the latents after each step into an image. The latent space is compressed to 128x128, so the images are also 128x128 which is useful for a quick preview. Use the function below to convert the SDXL latents (4 channels) to RGB tensors (3 channels) as 