es/resolve/main" "/kandinsky/cat.png"
)

mask = np.zeros((768, 768), dtype=np.float32)
# Let's mask out an area above the cat's head
mask[:250, 250:-250] = 1

image = pipe(prompt=prompt, image=original_image, mask_image=mask, num_inference_steps=25).images[0]  enable_sequential_cpu_offload  < source > ( gpu_id = 0  )    Offloads all models to CPU using accelerate, significantly reducing memory usage. When called, unet,
text_encoder, vae and saf