Open gibiee opened 4 days ago
Does gr.ImageMask()
address this issue (if we fixed the opacity issue)?
@pngwn
gr.ImageMask()
is essentially just gr.ImageEditor(brush=Brush(colors=['#000000'], color_mode='fixed'))
, but if the opacity issue is resolved, it could be a useful component for inpainting. However, since the inpainting feature does not require layers and the mask image does not need to be RGB, I think it could be simplified further.
gr.ImageMask(layers=False)
would be pretty close i think.
@pngwn Yes, that is currently the method I often use. Come to think of it, if the opacity issue is resolved, controlling the brush color in RGB might be helpful. Using a bright brush color for dark images and a dark brush color for light images would make them more visible.
Is your feature request related to a problem? Please describe.
gr.ImageEditor(brush=gr.Brush(~~~))
, which I find not very intuitive.Describe the solution you'd like
Additional context