Minimum mask size and shape

by rtb1271 - opened

Is there a minimum mask size required for the inpainting model? I have noticed that I need to create a very huge mask for an inpainting object to be successfully generated. When using a smaller (or more appropriate) mask size, the model just returns the very same image without any inpainting. I tried using rectangular mask shapes and square shapes but got the same result. I am using a guidance scale of 6.
Here is an example of my input, mask, and the output below:

Prompt: “a clock on the wall”

Input image:

Mask image:

Output image:

Using extremely large masks does generate inpainted objects but causes the objects in the original image to be morphed. Not sure what I’m doing wrong with the masks, any help will be much appreciated.

rtb1271 changed discussion title from Minimum mask size to Minimum mask size and shape

Sign up or log in to comment