SYSTEM NOTICE

Auto translation by AI. Be sure, accuracy, nuances and authorial intent may not be fully reflected.
見出し画像

[ComfyUI] How to customize and use Autocomplete-Plus effectively

Hello, this is Fukashigi-chan (´▽`)

When generating images in ComfyUI, it is a hassle to type prompts manually every time, so I use "Autocomplete-Plus" as an input aid.

There are various extensions for tag input assistance, but personally, I found this one to be the easiest to use.

It is perfectly usable just by installing it normally, but customizing it makes it even easier to use, so I will introduce my recommended customizations this time.

ComfyUI Settings Screen

After installation, when you open the ComfyUI settings screen, an Autocomplete Plus section will be added.

The following 5 settings are recommended.

1. Increase "Maximum number of suggestions" to 15
2. Turn on "Replace '_' with 'space'"
3. Turn on "Enable fast search"
4. Turn on "Use comma at end of line"
5. Turn off "Enable related tags feature"

3 and 5 are especially recommended. It makes the operation faster.
Also, if you don't need tag descriptions, you can turn on "Hide aliases" to use it more compactly.

Modifying CSS to make the text smaller

In the default state, the font size when suggestions are displayed is too large, so I make it more compact by reducing the font size. You can easily change the font size by editing the CSS.

CSS location

ComfyUI\custom_nodes\comfyui-autocomplete-plus\web\css\autocomplete-plus.css

Open this autocomplete-plus.css with Notepad or similar, and change "font-size: 14px;" around line 327 to "font-size: 8px;".

Customizing the dictionary

The default tag dictionary included does not contain tags I use often, and it is filled with a massive amount of character and artist tags.

However, when making manga, I don't use those copyrighted tags, so they are just in the way when they appear in the suggestions.

Therefore, I use a replaced dictionary that only contains general words.

As the source data, I borrowed this CSV published on Civitai.

From this dictionary, I deleted tags classified as character tags, work tags, artist tags, and meta tags, and then asked ChatGPT to add Japanese translations.

The number of words is reduced, which compresses the dictionary file size and makes the input assistance run faster, killing two birds with one stone.

The dictionary file is located in

ComfyUI\custom_nodes\comfyui-autocomplete-plus\data

as a CSV file inside that folder.

Delete the two original CSV files and replace them with the custom CSV modified above. When doing so, make sure the CSV filename starts with "danbooru_tags".

Once you restart ComfyUI, the dictionary data should be updated successfully.

Original Dictionary CSV Specialized for Manga Production

I have provided the CSV I use, so please feel free to download it if you are interested.


いいなと思ったら応援しよう!

不可思議ちゃん@AI漫画でkindle出版 😄👍✨