Skip to content

A state manager to quickly save and return to previous configs in A1111

License

Notifications You must be signed in to change notification settings

CMCarlsen/sd-webui-state-manager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ko-fi

[W.I.P.] This extension is in open beta!

Please be aware that this extension has not been thoroughly tested yet. If you notice any bugs, please raise an issue here on github or message me on Discord (blue.tomato).

State Manager

After trying a number of history/ state management extensions, I found they all suffered from one of more of these problems:

  • Bad UI/UX
  • Not saving the entire state
  • Just plain not working

I tried to solve these issues by creating an extension that scrapes and restores the entire state as best as possible, including quicksettings (checkpoint, VAE, clip skip are common ones), generation settings (samples, size, seed, etc.), and script and accordion settings.

Usage

This extension adds two buttons to the top of A1111. The first (⌛⚙) opens the state browser; here you can view and manage your generation history and favourites. The browser opens as a side drawer by default, but can be opened as a full-screen modal window as well.

Clicking on an entry will show its settings in the inspector, and you can apply settings to your current workspace per-setting or per-category using the designated buttons, or you can apply all of them by double-clicking the entry instead.

You can also multi-select entries by holding ctrl or the meta key ( on MacOS), or range select by holding shift.

By default auto-save is on, and every time you generate an image in either txt2img or img2img the state is saved to the history, and a small 100x100 thumbnail is saved alongside it.

If you'd rather save your entries manually, just turn off the toggle in the state browser panel, and use the second button on the top (⌛💾) to add them that way.

Known shortcomings

Unfortunately there is no clean way to access gradio data on the client side, so all settings are saved and mapped by their UI label. If these labels ever change – whether by update or a different translation/ i18n language – old settings will no longer apply. This does unfortunately make this extension a bit fragile.

Installation

Open your A1111 Web UI and go to Extensions > Install from URL. Paste in the link to this repo (https://github.com/SenshiSentou/sd-webui-state-manager.git), click Install and restart the web ui. Badabing badaboom, baby!

About

A state manager to quickly save and return to previous configs in A1111

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.4%
  • CSS 18.6%