mask = 1 - mask For inpainting, you’ll need the original image, a mask of the area to replace in the original image, and a text prompt of what to inpaint. Load the prior pipeline: Kandinsky 2.1 Kandinsky 2.2    Copied from diffusers import KandinskyInpaintPipeline, KandinskyPriorPipeline