Releases: DominikDoom/a1111-sd-webui-tagcomplete
Hotfix 2.7.5
Fixed:
- Error at startup if temp folder didn't exist yet (#203, #205)
- Another encoding error (#204)
- Commas in Lora filenames causing errors at startup
Added:
- Trigger word completion support for Lora files with .pt and .ckpt extensions, (instead of just .safetensors)
- Mostly relevant for custom mappings since the preset list uses almost exclusively safetensors
Hotfix 2.7.1
Fixed
- Error while writing hash cache file for loras with non-ASCII characters (model-keyword support)
- If Lyco and Lora paths were identical, it would result in duplicate entries
- This can for example happen if using the --lyco-patch-lora argument to replace built-in lora with the lycoris extension
- Now skips Lyco loading in that case
Release 2.7.0 - Lora / Lyco trigger word completion
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.
Added:
- Trigger word insertion using the model-keyword extension lists
- Separate option for adding commas and spaces
Changed:
- Reworked settings to include more & better descriptions, using the newer webui OptionInfo features if available.
Release 2.6.0 - Partial wildcard completion
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.
Added:
- Partial dynamic wildcard completion
- Along with an option to switch between folder level, first difference, or the old full completion modes
- See README - Settings - Wildcard path completion for more info
Fixed:
- Fallback for translation format
- If the 3-column format is checked in the settings, but the file doesn't have that many columns, it will either choose the second column or "Not found" if that isn't there either (instead of the script silently breaking)
Release 2.5.1 - Readme updates & path fixes
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.
Release 2.5.0 - File refresh QoL
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.
Release 2.4.0 - Live translation feature WIP
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.
Known issues:
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.
Release 2.3.0 - Chants
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.
Added:
- Chants, thanks to @fuyedong in #177
- Support autocompletion in more third party textboxes (thanks to @re-unknown in #169, #170, #171):
Fixed:
- Various fixes for Gradio 3.28.0
- More fallbacks for Gradio 3.16.0 and older webui versions
- Model black/whitelist change detection fixes
- Dark mode detection fixes
- Helper script now correctly follows symlinks for hypernets, lora and lycoris, like the webui itself does
- Fix long results lists sometimes not scrolling to the top correctly on the first letter of a new tag/command
- Fix for tag file change not registering without restart if changed in quicksettings
Release 2.2.0 - LyCORIS support
Added:
- Support for LyCORIS, thanks to @Kamilowaty122 in #161
Release 2.1.0
This release mainly includes support for Gradio 3.23.0 used by the current webui version.
Added:
- Completion popup moving with the cursor while you type (can be disabled in settings)
- Customizable hotkey bindings (now also in settings)
- Hypernet and Lora prefixes now also provide completion if they are typed out, not just for the
<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.
Fixed:
- Broken "Only show alias" option
- Various fixes for Gradio 3.23.0
- Uses built-in update event, which fixes a long-time noncritical browser console error
- Pressing enter while no tag is selected will not block default behavior anymore
Changed:
- Colors are now changed in the normal settings like the keymaps instead of a separate file, to prevent override when the extension gets updated through the webui