lllyasviel / ControlNet

Let us control diffusion models!
Apache License 2.0
29.81k stars 2.69k forks source link

Tuning inference strength of a controlnet by region #349

Open skyler14 opened 1 year ago

skyler14 commented 1 year ago

Is there anyway to turn off or modulate the inference strength of control net in an area of an image, it seems like it shouldnt be too hard to attenuate regionally if we can already tune it globally for the whole picture. This could intuitively be coupled to something like an alpha channel to make it easily drawable (either alpha channel can be appended to annotator or you could allow drawing a seperate alpha channel to combine right before inference). If possible and would allow for alot of powerful controlnet composability since you could nicely mix and match the same controlnet (or another model) to be dominant in certain regions of the image or vice versa.

alelordelo commented 1 year ago

+1! This + SAM (segment anything model by Meta)