![tag_autocomplete_light](https://user-images.githubusercontent.com/34448969/208306863-90bbd663-2cb4-47f1-a7fe-7b662a7b95e2.png)
# SD WebUI Tag Autocomplete ## English • [简体中文](./README_ZH.md) • [日本語](./README_JA.md) Booru style tag autocompletion for the AUTOMATIC1111 Stable Diffusion WebUI [![Github Release][release-shield]][release-url] [![stargazers][stargazers-shield]][stargazers-url] [![contributors][contributors-shield]][contributors-url] [![forks][forks-shield]][forks-url] [![issues][issues-shield]][issues-url] [Changelog][release-url] • [Known Issues](#%EF%B8%8F-common-problems--known-issues) • [Report Bug][issues-url] • [Request Feature][issues-url]

# 📄 Description Tag Autocomplete is an extension for the popular [AUTOMATIC1111 web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui) for Stable Diffusion. It displays autocompletion hints for recognized tags from "image booru" boards such as Danbooru, which are primarily used for browsing Anime-style illustrations. Since some Stable Diffusion models were trained using this information, for example [Waifu Diffusion](https://github.com/harubaru/waifu-diffusion) and many of the NAI-descendant models or merges, using exact tags in prompts can often improve composition and consistency. You can install it using the inbuilt available extensions list, clone the files manually as described [below](#-installation), or use a pre-packaged version from [Releases](https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/releases).
# ✨ Features - 🚀 Instant completion hints while typing (under normal circumstances) - ⌨️ Keyboard navigation - 🌒 Dark & Light mode support - 🛠️ Many [settings](#%EF%B8%8F-settings) and customizability - 🌍 [Translation support](#translations) for tags, with optional live preview for the full prompt - **Note:** Translation files are provided by the community, see [here](#list-of-translations) for a list of translations I know of. Tag autocomplete supports built-in completion for: - 🏷️ **Danbooru & e621 tags** (Top 100k by post count, as of November 2022) - ✳️ [**Wildcards**](#wildcards) - ➕ [**Extra network**](#extra-networks-embeddings-hypernets-lora-) filenames, including - Textual Inversion embeddings [(jump to readme section)] - Hypernetworks - LoRA - LyCORIS / LoHA - 🪄 [**Chants**](#chants) (custom format for longer prompt presets) - 🏷️ "[**Extra file**](#extra-file)", one set of customizable extra tags Additionally, some support for other third party extensions exists:
Click to expand - [Image Browser][image-browser-url] - Filename & EXIF keyword search - [Multidiffusion Upscaler][multidiffusion-url] - Regional Prompts - [Dataset Tag Editor][tag-editor-url] - Caption, Interrogate Result, Edit Tags & Edit Caption - [WD 1.4 Tagger][wd-tagger-url] - Additional & Excluded tags - [Umi AI][umi-url] - Completion for YAML wildcards

# 🖼️ Screenshots & Demo videos
Click to expand Basic usage (with keyboard navigation): https://user-images.githubusercontent.com/34448969/200128020-10d9a8b2-cea6-4e3f-bcd2-8c40c8c73233.mp4 Wildcard script support: https://user-images.githubusercontent.com/34448969/200128031-22dd7c33-71d1-464f-ae36-5f6c8fd49df0.mp4 Extra Network preview support: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/assets/34448969/3c0cad84-fb5f-436d-b05a-28db35860d13 Dark and Light mode supported, including tag colors: ![results_dark](https://user-images.githubusercontent.com/34448969/200128214-3b6f21b4-9dda-4acf-820e-5df0285c30d6.png) ![results_light](https://user-images.githubusercontent.com/34448969/200128217-bfac8b60-6673-447b-90fd-dc6326f1618c.png)

# 📦 Installation ## Using the built-in extension list 1. Open the `Extensions` tab 2. Open the `Available` sub-tab 3. Click **Load from** 4. Find **Booru tag autocompletion** in the list - The extension was one of the first available, so selecting "oldest first" will show it high up in the list. - Alternatively, use CRTL + F to search for the text on the page 5. Click **Install** on the right side ![Load from index](https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/assets/34448969/b9b860c1-2e77-41b1-aa5c-a44e252f1a40) ![Order by oldest](https://user-images.githubusercontent.com/34448969/223537231-48e982b8-0920-48c5-87e5-8c81ebbb5fe3.png) ![Install](https://user-images.githubusercontent.com/34448969/223537336-5c02ccb1-233d-4e0d-9e73-d1b889252c49.png) ## Manual clone ```bash git clone "https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git" extensions/tag-autocomplete ``` (The second argument specifies the name of the folder, you can choose whatever you like).
# ❇️ Additional completion support ## Wildcards Autocompletion also works with wildcard files used by https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards or other similar scripts/extensions. Completion is triggered by typing `__` (double underscore). It will first show a list of your wildcard files, and upon choosing one, the replacement options inside that file. This enables you to either insert categories to be replaced by the script, or directly choose one and use wildcards as a sort of categorized custom tag system. ![Wildcard files](https://user-images.githubusercontent.com/34448969/223534518-8488c2e1-d9e5-4870-844f-adbf3bfb1eee.png) ![Wildcard replacements](https://user-images.githubusercontent.com/34448969/223534534-69597907-59de-4ba8-ae83-b01386570124.png) Wildcards are searched for in every extension folder, as well as the `scripts/wildcards` folder to support legacy versions. This means that you can combine wildcards from multiple extensions. Nested folders are also supported if you have grouped your wildcards in that way. ## Extra networks (Embeddings, Hypernets, LoRA, ...) Completion for these types is triggered by typing `<`. By default it will show them all mixed together, but further filtering can be done in the following way: - `