hfoptions>
Load an initial image and create a mask:   Copied init_image = load_image("https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/kandinsky/cat.png")
mask = np.zeros((768, 768), dtype=np.float32)
# mask area above cat's head
mask[:250, 250:-250] = 1 Generate the embeddings with the prior pipeline:   Copied prompt = "a hat"
prior_output = prior_pipeline(prompt) Now pass the initial image, mask, and prompt an