lllyasviel / lllyasviel/ControlNet
Feature Request: Mask painting precision assistance
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.1k
- Forks
- 3k
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the UI code for the input or preview image and the mask image window, then trace how painted mask areas are applied through the selected ControlNet. Compare the two proposed overlay approaches and define a toggleable, low- or medium-opacity input overlay that does not alter the generated mask; done means precise alignment is visible while masking still behaves unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-vision, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100