InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

Feature Request: Clear init_img in WebUI

Open lstein opened this issue 4 years ago • 6 comments

After you provide an init_img to the dream WebUI the uploaded file is sticky and continues to be used for subsequent generations. There's no obvious UI element to clear it (but it can be done by opening the file select dialog and then cancelling). Can a suitable UI element be added? @bakkot @TesseractCat

lstein avatar Aug 30 '22 13:08 lstein

I've simply been reloading the page to clear the image. If there's going to be a manual 'clear' option (which there should be) then reloading the page ought to remember the file so you don't have to re-browse for it.

arothmanmusic avatar Aug 30 '22 14:08 arothmanmusic

Yes, I agree, this would be a convenient addition.

And I don't mean to hijack, but while we are on the topic of adding UI elements for the img2img portion of the WebUI, can you please consider adding a field for the --strength parameter? As mentioned in #134 and #202. I feel it is critical for img2img and as such, I have not been using the img2img feature of the WebUI because of it

namion avatar Aug 30 '22 14:08 namion

As an alternative, we could consider splitting up the interface so there's different tabs for txt2img vs img2img. There's a few fields which are only relevant to each - width/height only make sense for txt2img, and init-img/strength only make sense for img2img. Also, that way if we add any further modes (here I am thinking of generating variants and interpolation) those features could go in their own tabs, instead of cluttering up the main interface with mutually-incompatible sets of UI elements.

Thoughts?

bakkot avatar Aug 30 '22 15:08 bakkot

I think the most elegant solution would be to add/show the additional relevant fields when an image has been selected, and then remove/hide them again if the proposed 'clear' button for the img has been clicked.

arothmanmusic avatar Aug 30 '22 15:08 arothmanmusic

I think the most elegant solution would be to add/show the additional relevant fields when an image has been selected, and then remove/hide them again if the proposed 'clear' button for the img has been clicked.

I agree with this and is exactly how I envisioned it working. Though I understand that with the addition of new features (variants, inpainting, etc.), separate tabs for each tools may be necessary.

namion avatar Aug 30 '22 16:08 namion

Fix is in current development branch. Will go to release real soon.

lstein avatar Sep 09 '22 17:09 lstein