stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

Embedding blacklist, allow embeddings subfolder, settings accordion

Open R-N opened this issue 3 years ago • 0 comments

Embeddings selected in the embedding blacklist will not be loaded (the embedding dict will be reloaded upon saving settings).

Image embeddings are loaded using the same name as they were trained. Some embeddings might be trained using the same name, and those names used as keys may collide.

Gradio doesn't have multiselect dropdown, so I used CheckboxGroup. But it can get get very long with the number of embeddings exist. So here it is as an accordion settings section.

image

Also added --force-accordion-settings cmd opt to force all setting section to use accordion (by default only the embedding setting use accordion), because there are a real lot of options in settings tab. To make a setting section become accordion, just add a True to the section tuple in shared.py.

('embeddings', "Embeddings", True)

Also added support for embedding subfolder. Calling of non-image embeddings will require the subfolder too. Just check the list of loaded embeddings in console/output. For example, here I put some kanata embeddings in kanata folder (redacted some so it's not too long).

Embeddings loaded: suisei-hololive, suisei-95000, amane-kanata, kanata/Amane-Kanata-40500, kanata/kanata-hololive

Related feature request: #3443 (although this isn't even close to what's requested)

R-N avatar Nov 04 '22 16:11 R-N