lllyasviel / ControlNet

Let us control diffusion models!
Apache License 2.0
28.94k stars 2.61k forks source link

Feature Request: Mask painting precision assistance #653

Open ImpossibleAd436 opened 4 months ago

ImpossibleAd436 commented 4 months ago

Problem:

Currently, when mask is set to true, we have a blank canvas added to the right side of the input (or preview) image.

We then paint the areas we wish to mask, these masked areas are applied to the input image using the selected controlnet.

One issue with this is that it can be quite difficult to work out whether we are precisely masking the areas of the input image as intended, we have to kind of roughly judge, and if the desired masking area is small or needs to be precise this can be quite difficult.

Proposed solution:

It would be very helpful if one of the following could be implemented:

Either

a) Drawing a mask area in the mask image window also draws the painted mask area, @ low/medium opacity over the input image to the left.

or (preferable)

b) The input image can be shown/overlaid (with a toggle) in the mask image window, @ low/medium opacity, and be painted over, without this overlaid image interfering with or influencing the generated mask.