AUTOMATIC1111 / stable-diffusion-webui

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

Use localstorage to persist settings #842

Closed ltogniolli closed 1 year ago

ltogniolli commented 1 year ago

If you accidentally close a tab, or it crashes, you lose your prompt and all the settings you were working on.

Use localstorage to persist the information filled in the fields when running a prompt, so if you reopen the webui, everything is preffiled as you left.

I'd don't think it's necessary to have any kind of explicit save/load actions, or save slots.

There's the scenario of working on multiple tabs concurrently but I believe recovering whichever was last run is perfectly acceptable.

dunkeroni commented 1 year ago

I think this would best be done by saving the last used settings each generation and having a Retrieve button available to load them again. Bonus would be to also retrieve the last generated images at the same time. Then you could tell it to run something big and come back later to load the results or current progress. It shouldn't reload until the button is pressed, since the most convenient way to get back to the default settings is to refresh the page.

Generating large batches from a mobile device tends to lose connection, so you can't otherwise see the results unless you generate small batches at a time and keep your phone awake. Also switching between multiple devices would be improved this way.

eadnams22 commented 1 year ago

I think a 'reset' button (or buttons per config type) would make more sense, for persistence, and UX.

krokosik commented 1 year ago

Is someone working on this? I would be interested in picking it up as I really miss a feature like that

DougStoker commented 1 year ago

when i accidentally swipe back a page the live preview disconnects and i can't see what its doing until its finished

mopoIo commented 1 year ago

We really need this

ClashSAN commented 1 year ago

there is an extension to save all the ui settings https://github.com/ilian6806/stable-diffusion-webui-state.git", "description": "Preserves the UI state after reload/restart.", "added": "2023-03-19", "tags": ["script"]