Booru style tag autocompletion for AUTOMATIC1111's Stable Diffusion web UI
MIT License
Bot releases are hidden (Show)
Published by DominikDoom 6 months ago
In simple terms, the more you use a tag, the higher it will rank, meaning it gets pushed to the top of the list over time. You will have to type less to reach your favorite tags, even if their post count is much lower than other matches for your search term. It also works for all other completion types TAC supports, such as Loras, embeddings and wildcards.
This is a big change in how Tag Autocomplete shows its results, which is why it was "in beta" for quite a while. While I have used it for months already without issue, there might still be some oversights, so if you happen to encounter any problems with it, feel free to open an issue.
A tag sorted higher due to frequency will be marked with the ✨ symbol. It can also be reset at any time:
"solo" ranks higher than "sole_female"/"1girl":
"standing" ranks first despite a much lower post count:
Also works for embeddings:
And for lora:
New settings:
As usual, the feature is very customizable through a number of settings (also shown in the example images):
Locally record tag usage and sort frequent tags higher
Function to use for frequency sorting
Minimum number of uses for a tag to be considered frequent
Maximum days since last use for a tag to be considered frequent
Maximum number of recommended tags
Frequency sorting matches aliases for frequent tags
Published by DominikDoom 6 months ago
tac_colormap
setting value from your webui's config.json to reset it, or add this to it yourself.Full Changelog: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/compare/2.11.0...2.12.0
Published by DominikDoom 9 months ago
This release is for version parity with the main branch and contains all additions and bug fixes of the last few months.
Tag Autocomplete > Search for webui style names
.<lora:
prefix since modern webui versions don't use the <lyco: prefix anymore (#263)
Full Changelog: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/compare/2.10.6...2.10.7
Published by DominikDoom about 1 year ago
Minor release containing two new options.
<
prefix) (#230)
JumpTo...
keybinds are set to will select the first non-embedding result in the list depending on the direction.Published by DominikDoom about 1 year ago
Minor release, including mostly bug fixes and support for new webui or third party features.
--wildcards-dir
cmd args path from https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards
wildcard_dir
option from https://github.com/adieyal/sd-dynamic-prompts
Published by DominikDoom about 1 year ago
Published by DominikDoom about 1 year ago
This release adds a small preview window for extra network completion that will show their respective card thumbnails.
With this, it's now possible to quickly compare similar Loras, embeddings or hypernetworks without having to stop typing to look them up in the webui menu. It's on by default, but can be disabled in the settings.
Published by DominikDoom about 1 year ago
This release adds support for the YAML wildcard format https://github.com/adieyal/sd-dynamic-prompts uses.
Published by DominikDoom about 1 year ago
This release adds support for the new Lora functionality added in the v1.5.0 WebUI release.
Since the webui now provides a native option to manually add trigger words for Loras, these will be preferred over the model-keyword ones if they exist. To enable it, the option must still be changed from "Never" to "Only user list" or "Always", which is now also possible without model-keyword being installed.
Support for visually differentiating Loras for SDv1/v2/XL in the list like with embeddings isn't included for now, but I plan to add it eventually since this info is now much more accessible than before in the webui.
Published by DominikDoom about 1 year ago
Published by DominikDoom about 1 year ago
Published by DominikDoom about 1 year ago
Adds support for automatically inserting known trigger words on autocompleting a Lora/Lyco that uses them.
It requires the https://github.com/mix1009/model-keyword extension to be installed to work, but it can be deactivated afterwards.
For more info, see the accompanying README section.
Published by DominikDoom over 1 year ago
Some wildcards are organized in nested folders, like "hair/colors/light/..." or "clothing/male/casual/..." etc.
This was annoying to select so far, since you either had to scroll far down in the list or manually type in the path until the point where the subfolders start to differ and separate the wildcards into different categories.
With this release, it now both color-highlights the nested paths to easier discern the folder levels, as well as offer a partial path completion.
If all available options are nested paths, pressing Tab will not insert the full text anymore, but instead (depending on the settings) complete until the next /
or until the first difference, then stop until the user clarifies or chooses the way forward.
Published by DominikDoom over 1 year ago
The biggest change in this Mini-Release is the updated README. English is now up-to-date with all current options and features (and also got a new look to be less overwhelming), while Japanese and Chinese still lag behind. If you speak those languages, help translating would be much appreciated.
Also, finally a long-standing issue with Gradio security restrictions was fixed / worked around, which previously prevented the extension from working with a custom --data-dir
specified in the webui launch args:
You will need to add the --gradio-allowed-path
argument to your webui start script to make it work, else the helper will not throw the error anymore, but the server will still return 403 Unauthorized for any extension's JavaScript file or tags file the webui tries to load.
A word of caution if you share the webui on your local network or even as a public server:
The allowed path will be publicly exposed. A simple JavaScript fetch("file=path/to/file")
can access any file contents in that directory and its subdirectories, as long as the filename is known. You need to be careful what you allow in there.
I suggest only allowing the install dir of tag autocomplete itself for base functionality, or if you use wildcard extensions and want to use the wildcard completion feature, the whole extensions dir at most.
Published by DominikDoom over 1 year ago
To enable autocompletion for Loras, embeddings, hypernets, and wildcards, Tag Autocomplete writes some internal temporary files on startup after looking for these entries in your local files.
This release adds a new "fake" settings option with a refresh button that allows you to update those temp files without needing to restart the UI.
You can add it to your quicksettings list to have it available at all times, making it a nice Quality of Life feature if you add new Loras etc. often.
Published by DominikDoom over 1 year ago
This release contains a WIP version of a live translation feature.
The option defaults to off, but you can activate it by choosing a translation file and checking "Show live tag translation below prompt".
It will not affect the normal functionality if it is off.
It looks like this:
Example with Chinese since the idea came from Chinese users and I already had translation files lying around from testing. But it should work for any language, although I didn't test it outside of Chinese.
Clicking on a detected tag will also select it in the prompt for quick editing.
The translation updates when the user types or pastes text, but not if the action happens programmatically (e.g. applying a style or loading from PNG Info / Image Browser). This can be worked around by typing something manually after the programmatic edit.
Published by DominikDoom over 1 year ago
This release adds the "Chants" feature, along with various bug fixes for newer Gradio versions and extended third party support.
Chants are a new type of data the script can load and insert. They are basically longer presets, snippets, or even full prompts and function like shortcuts. There's a new demo-chants.json
file included to get started, but for more info please have a look at the accompanying README section Chants.
Chants are unique in that they support different keywords for search, display, and insertion. That means you can create a very complex and long prompt, give it a unique and compact display name, and add as many search terms as you want that should correlate to it. The search terms can be completely different from the final prompt that gets inserted, so you can use them like shortcuts for your favorite prompt snippets.
Published by DominikDoom over 1 year ago
Published by DominikDoom over 1 year ago
This release mainly includes support for Gradio 3.23.0 used by the current webui version.
<h:
and <l:
abbreviations_
can now be used as a stand-in for spaces in Embedding, Hypernet and Lora names to enable typing out filenames containing spaces without the popup closing & trying to find a new tag.Published by DominikDoom over 1 year ago
This release doesn't add many new features, but includes a fairly big refactoring of the code base, which is why I decided to raise the main version number for it.
I took care to test all existing features, but it is still quite possible that this could break things, so feel free to open an issue if something doesn't work for you. This will also likely break backwards compatibility for some extra files, if you use any, as well as forks due to the large change in code structure.
<
now works if another < follows directly after it or after a space