Skip to content

[feature request] Adding an extra control for the Feather size in Inpainting #2299

@Dartasia

Description

@Dartasia

Hi ^-^,

First I wish to thank you for all the hard work and dedication you have been putting into this awesome plugin!

I was thinking about the idea/feature for users to have the ability of controlling the Feather size via a second slider (or allow the slider to reduce the Feather size as well since we can only increase it at the moment) as I've noticed that since v1.46.0 and 1.46.1 that the inpainting has been unable to reproduce the same range we used to be able to produce. I've included a few examples. The first image is the original result (if my memory is correct it was 1% Extra inpainting, 3% or 5% Blend and 1% Extra padding.

Here is the original v1.45.0 (at 70% Denoise) :

Image

The below images are with version 1.46.1 (at 70% denoise) :

From my testing, I've concluded that Padding does not directly change the affected Inpaint area (black area in the examples) and simply allows a greater size of the image to be taken into account during generation (to help the model etc.) and also fixes the rough edges of the Feather mentioned in a previous issue.

Thus in the following examples I did not change the padding as the black area remained the same regardless of the value (but for info, it is at 1%).

Example 1 - Using the following settings : 1% Feather, 25px Blend. (This is the closest result I could make to the original with Feather On)
Image

Example 2 - Using the following settings : 0% Feather, 25px Blend
Image

With further testing I observed the following :

  • Adjusting the Feather only increases the inpainting outside of the selected area (and still causes the hard edges unless the padding is increased to 5%+.

  • Increasing the Blend above 25px tends to create a ghosting effect (the original v1.45.0 could achieve a lesser ghosting effect while retaining an area closer to the selection.

  • Decreasing the Blend does allow a closer border result to v1.45 but due to the default Feather size increase (even at 1%), we cannot replicate the same accurate result as in v.1.45.0.

Extra Examples for v1.46.1 (at 70% Denoise) :

Example 3 - Using the following settings : 1% Feather, 5px Blend.
Image

Example 4 - Using the following settings : 1% Feather, 50px Blend.
Image

Example 5 - Using the following settings : 0% Feather, 5px Blend. (Best result to the original but we have a smaller inpainted area than the selection)
Image

Example 6 - Using the following settings : 25% Feather, 5px Blend. (Adjusting the Padding can help prevent the edge from clipping but will not reduce the overall Feather size)
Image

Example 7 - Using the following settings : 25% Feather, 25px Blend. (Higher Blend will only create a ghosting effect).
Image

(Setting 0% to both Feather and Blend will result in a sharp inpainted area (visible seams etc.) that follows exactly the selection, which I assume is the correct behavior.)

With an additional slider for the Feather size we could hopefully reduce the added inpaint area to obtain a smaller border (the same result as v1.45.0).
I'm aware that at the moment the Feather adds by default a certain % by default (affected by the denoise % if I understood correctly the latest commits changes), but I think it is oversized when selecting smaller area.

General behavior of v1.46.1 based on testing :

When Feather is ON (1% and above) = Inpaints outside the selection.
When Feather is OFF (0%) = Inpaints within the selection.

When Feather is ON and Blend is ON = The border is faded out based on the Blend, but it keeps the minimal Feather area as reference thus we cannot reduce the Feather size to reproduce the original inpaint area of v1.45.0. Instead we obtain a ghosting effect when the Blend is set too high (above 25% in general)

When Feather is OFF and Blend is ON = The border can be faded out similar to v1.45.0 but it cannot exceed the inpaint area thus the accuracy of the selection is less intuitive than in v1.45.0.

Conclusion :

In the end, my suggestion is more of an ease of use for members who were more accustomed to v1.45.0, control style and I think it would be nice to have the extra slider control for the Feather area (instead of relying on a set default size).

Thank you so much for your time and consideration ✨!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions