Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Embedding blacklist, allow embeddings subfolder, settings accordion #4286

Closed
wants to merge 11 commits into from

Conversation

R-N
Copy link
Contributor

@R-N R-N commented Nov 4, 2022

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 R-N requested a review from AUTOMATIC1111 as a code owner November 4, 2022 16:47
@AUTOMATIC1111
Copy link
Owner

User can achieve this by moving embedding files away from the embeddings dir; no need to add code; reopen the PR if there's more.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants