 base(
    prompt=prompt,
    num_inference_steps=40,
    denoising_end=0.8,
    output_type="latent",
).images
image = refiner(
    prompt=prompt,
    num_inference_steps=40,
    denoising_start=0.8,
    image=image,
).images[0]
image  default base model  ensemble of expert denoisers The refiner model can also be used for inpainting in the StableDiffusionXLInpaintPipeline:   Copied from diffusers import StableDiffusionXLInpaintPipeline
from di