Skip to content

Commit a139213

Browse files
authored
[docs] Create a mask for inpainting (huggingface#5322)
add mask making section
1 parent 9c82b68 commit a139213

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/source/en/using-diffusers/inpaint.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,19 @@ image = pipeline(prompt=prompt, negative_prompt=negative_prompt, image=init_imag
6464
</div>
6565
</div>
6666

67+
## Create a mask image
68+
69+
Throughout this guide, the mask image is provided in all of the code examples for convenience. You can inpaint on your own images, but you'll need to create a mask image for it. Use the Space below to easily create a mask image.
70+
71+
Upload a base image to inpaint on and use the sketch tool to draw a mask. Once you're done, click **Run** to generate and download the mask image.
72+
73+
<iframe
74+
src="https://stevhliu-inpaint-mask-maker.hf.space"
75+
frameborder="0"
76+
width="850"
77+
height="450"
78+
></iframe>
79+
6780
## Popular models
6881

6982
[Stable Diffusion Inpainting](https://huggingface.co/runwayml/stable-diffusion-inpainting), [Stable Diffusion XL (SDXL) Inpainting](https://huggingface.co/diffusers/stable-diffusion-xl-1.0-inpainting-0.1), and [Kandinsky 2.2](https://huggingface.co/kandinsky-community/kandinsky-2-2-decoder-inpaint) are among the most popular models for inpainting. SDXL typically produces higher resolution images than Stable Diffusion v1.5, and Kandinsky 2.2 is also capable of generating high-quality images.

0 commit comments

Comments
 (0)