Skip to content

Haoming02/sd-webui-easy-tag-insert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SD Webui Easy Tag Insert

This is an Extension for the Automatic1111 Webui, which trivializes inserting prompts.

Also compatible with Forge!


(Catppuccin Theme)

Notice

This Extension has been updated to work for the latest version of the Webui. If you're using an older version, please check out Releases.

How to Use

This Extension creates buttons in a new Extra Networks tab, EZ Tags. When clicked, it will add the specified string into either the Positive or Negative prompt field.

Use Cases

You can use this Extension to simply make shortcuts for very long prompts:

Starting Prompts:
  Positive: (high quality, best quality)
  Negative: (low quality, worst quality:1.2)

This is really useful with LoRAs, especially for those that contain multiple concepts with different trigger words.

Character:
  Chara1: triggers1, <lora:franchise:0.75>
  Chara2: triggers2, <lora:franchise:0.75>

How to Add Entries

The tags are loaded from the .yml files inside the tags folder. To add your own entry, write in the following format:

Category:
  Display Name: Actual Prompts

Those are 2 spaces at the beginning of each entry, as specified by YAML

Note

  • If no tags folder is present (eg. fresh install), it will automatically clone the samples folder to tags. This is to avoid overriding users' local files.
  • An example .yml file is also provided
  • The Show dirs toggle displays the Categories for filtering
  • You can have multiple .yml files in the tags folder for better organizations
  • You can also have the same Category in multiple files
  • You can live reload the entries by pressing Refresh without restarting the UI

    To avoid race condition, Refresh can only be triggered once per second

  • Nested categories are also supported

Sorting

  • Default Sort: First by Category, then by Display Name
  • Date Created: By Index (the order they are written in the YAML)
  • Date Modified: First by Category, then by Index
  • Name: By Display Name

Due to how the Webui is coded, the buttons are sorted like Date Created on launch