ahrm / UnstableFusion

A Stable Diffusion desktop frontend with inpainting, img2img and more!
GNU General Public License v3.0
1.25k stars 86 forks source link

Add button to completely clear the canvas. #35

Closed ZeroCool940711 closed 1 year ago

ZeroCool940711 commented 1 year ago

This is a minor improvement but sometimes we might just want to start over and remove everything on the canvas, unless I missed the option for it right now we can only either manually erase everything on the canvas or restart the app which will unload the model in memory, a button to clear the canvas and start over would be a nice feature to have, a few other things that would be awesome to have would be making it so the inference/generation runs on a different thread so the GUI doesn't get blocked and unresponsive, this could potentially make it so we can update the image as its being generated, also, would be nice to have a button to stop the generation in case we accidentally started it when we didn't mean to or when we think it will take too long and we need to adjust some options and then rerun it.

ahrm commented 1 year ago

Added a reset button in 7501e6ccea8aeac669915ec13e079a9d435df923.

ahrm commented 1 year ago

making it so the inference/generation runs on a different thread so the GUI doesn't get blocked and unresponsive

Added in bfd3d0b73387d495b9566e520f6de35160753539. Note that this only works with the server option, but you can run the server locally (just run python diffusionserver.py and the server address is the default address (http://127.0.0.1:5000)).

ZeroCool940711 commented 1 year ago

@ahrm nice, thanks for the additions, really appreciate it, the GUI is becoming more and more my one-stop for inpainting, also, sorry I just make new issues here to ask for stuff and cant contribute much to the code, I'm not good with pyqt5 so I can't improve the GUI myself, I might be able to help with the server part a bit, I will see if I can for example implement GFPGAN to do face restoration after the generation in case there are faces in the result, hope I don't take too long on that.