AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
141.77k stars 26.78k forks source link

[Feature Request]: optimized mask sketching for spectrograms #6053

Open wedgeewoo opened 1 year ago

wedgeewoo commented 1 year ago

Is there an existing issue for this?

What would your feature do ?

Instead of the masking brush being a circle with a slider to change the diameter, i propose that there be a tool that is a rectangle. The height of the rectangle can be te same as the height of the image as a constant, and the width would be determined by the slider. This will speed up inpainting sections of spectrograms for riffusion.

Proposed workflow

  1. Go to Img2img inpaint,
  2. Press select rectangle/box tool
  3. set width size on slider
  4. draw sections of image for rendering.

Additional information

No response

ClashSAN commented 1 year ago

@wedgeewoo i recommend trying https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Custom-Scripts#mask-drawing-ui

here's another one https://github.com/JulietLaTour/stable-diffusion-webui-mask-editor

wedgeewoo commented 1 year ago

@ClashSAN I have attempted to use it already, but for some reason i cannot fulfill a opencv dependency. I have tried the remedy that the dev explained in the readme but it did not work. I even tried to install it as an extension. still nothing.

ClashSAN commented 1 year ago

very sorry, you probably want to use the riffusion extension too with it. webui is supposed to support uploading a mask too. I haven't done that before though.

wedgeewoo commented 1 year ago

Its ok, I have actually been using the riffusion extension and the original repo. I did make and uploaded a mask from GIMP and had fun messing around with that. I thought it could be easy if it was just a vertically rectangular shape that i can just draw with but obviously theres more to it than that.