zero01101 / openOutpaint

local offline javascript and html canvas outpainting gizmo for stable diffusion webUI API 🐠
MIT License
504 stars 44 forks source link

[Feature Request]: #230

Open ZZZephyriusss opened 1 year ago

ZZZephyriusss commented 1 year ago

Is your feature request related to a problem? Please describe.

When i make a inpaint with mask opn, the red parts is generated...but when there is no red inside ...there is still a generation that is launch for nothing. I am using your incredible app for month now but i still get trap in this : Yes i know, it turns blue but There is no point of lauching an inpaint with "mask on" if there is no masked area inside the rectangle selection.

----One way of doing that could be : the borders of the inpaint rectangle are red, and they turns blue if i hoover the rectangle where there is red mask zone in it. Like that that, we don't have to constantly shift from one mode to the others and make mistake and launch empty generations.

Describe the solution you'd like

Instead, the best way will be, if the selection rectangle is empty, it flips automatiquely as if "mask" was on blue..it will saved so much time !!! no more accidental empty generations

Proposed workflow

----= I put a the inpaint rectangle selection in a area with no mask brushes strokes : it make the whole selection generated with the gradient border. ----= I put a the inpaint rectangle selection in a area with mask strokes : it make only the red brushed zone selection generated , with no gradient border.

Describe alternatives you've considered

----One way of doing that could be : the borders of the inpaint rectangle are red, and they turns blue automaticly if i hoover the rectangle where there is red mask zone in it.

Like that that, we don't have to constantly shift from one mode to the others and make mistake and launch empty generations.

The Easy solution : If there is no masked area inside the rectangle selection, a message appear in front of the screen : "no masked area detected, do you wish to switch mode ?"

Additional context

Hey, really thank you for your work, i am a big fan of your app, i used it constantly, i think it is much better than Invoke !! Thanks a lot

zero01101 commented 1 year ago

so i believe what you're describing should actually already be how it works, but you may need to toggle the invert mask function (unless i've completely missed the point which is very plausible lol)

ZZZephyriusss commented 1 year ago

actually no. the problem i am talking about is that when you have invert mask function off, and you select a square with no red brush inside it will go to the process of "dreaming" to output nothing. I now that i have to toggle the invert mask function when there is no red mask area but that is the point : if there is nothing to render, why it is not detected and inverted automatically ? it is a mistake that i still make even after month. but okay thanks for your response

zero01101 commented 1 year ago

it definitely shouldn't output nothing/identical if there's no manually placed mask and the invert function is set to its default enabled state, which would be implying "the whole section is masked" when no mask is drawn - check out https://github.com/zero01101/openOutpaint/issues/209#issuecomment-1459058808 for a very brief example - just to be sure, you're using the img2img tool and not dream, right?

ZZZephyriusss commented 1 year ago

yes , the img to img tool.