[Looking for beta testers] Sort tags by frequent use #270
Replies: 1 comment 3 replies
|
Hey dom. I've setup a small custom sort function for myself (of course humbled by this project), from which I've learned this one major usage concern: it's inevitably going to bury any new models one obtains beneath a (huge) pile of most frequently used items, even if limited to just one-two days. Perhaps a user set hard cap on the number of frequency favoured tags / models at the top of the list, followed by usual order? Sure, one could switch frequency <-> date modified back & forth, but a full refresh takes a while and is a distraction. I've only skimmed the code, sorry if I missed something that could obviate the problem. |
Uh oh!
There was an error while loading. Please reload this page.
TL;DR: I am looking for feedback on a big new feature. Try out the https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/tree/feature-sort-by-frequent-use branch if you want to help and tell me if you face issues with it.
ℹ️ About the branch
For the last few months, I have been sporadically working on a big new feature:
Sorting tags, extra network models, and most other stuff tag autocomplete supports by usage.
It drastically changes the way you can interact with the extension, as tags you use frequently will be sorted higher than other matches for the same search phrase. This makes the search feel much smarter and reduces the amount of typing, as you don't have to scroll down to get to a tag you like or get more specific just because an overall more popular tag has a higher count by default. Negative prompts are kept separate, so you can have those "bad" tags sorted without contaminating your normal prompt completion.
This all gets recorded and stored locally in an SQLite database file in the extension's "tags" folder.
Ex.: You want to type "solo", but "sole_female", an alias for "1girl", has a higher count and always comes first, requiring navigating a few entries down or typing out the full word. With frequency sort, "solo" will rank higher after you used it enough times, enabling direct completion after typing just "s".
Some example images of the feature in use
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:

There are various settings to configure it further, as usual (also shown in the example images):
The feature is already very usable and now nearing completion for the first release, but I still have some concerns I want to collect feedback for.
If you want to help, checkout or clone the https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/tree/feature-sort-by-frequent-use branch. It is on par with main, so you can switch without losing bug fixes or recent new features.
Since this feature uses a local database, I am especially interested in the following points:
As a whole, I am just looking for some more feedback from different setups, especially on weaker systems.
Of course, I am also open to suggestions if you have other ideas to improve the feature.
For example, one thing I'm considering for a future release is a script that can pre-populate the usage database from your already generated images. Instead of slowly adapting during use, it could use the PNG info from a folder you provide to count the tags you used in these images.
All reactions