mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-11-05 00:17:25 +00:00
[GH-ISSUE #60] Feature request, include tag popularity count next to tag name in list #44
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
low priority
low priority
pull-request
question
waiting for feedback
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DominikDoom/a1111-sd-webui-tagcomplete#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thojmr on GitHub (Nov 1, 2022).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/60
Originally assigned to: @DominikDoom on GitHub.
I think it would be very useful to have the tag count next to the tag name when selecting from the list. This would allow us to select a tag based on its popularity when there are multiple similar tags to choose from.
Not sure how much extra work that would be though.
@DominikDoom commented on GitHub (Nov 1, 2022):
The coding work in this plugin would be very little, the bigger problem is getting the data.
At least the program I used to build the tag file (Grabber) sadly doesn't include the tag count in the offline tag database you can build. So I would have to replicate its functionality using the official API.
It's definitely possible and I agree that it would be useful, but not quick to do for now.
Just for choosing which tag is more popular, it's a lot simpler though: Tags in the default tag files are ordered by count, and since the script doesn't sort them at any point, tags higher in the list will always be more popular than those below. You just can't compare by how much.
@DominikDoom commented on GitHub (Nov 2, 2022):
Small update:
I have found the official danbooru tag dump on its public cloud console in the meantime, which contains post count and a few other interesting infos.
I'll have a look at it and see if I can process it to work with the script.
@byzod commented on GitHub (Nov 3, 2022):
There's some tag builder have similar feature on github, for example this one, if it helps
@DominikDoom commented on GitHub (Nov 3, 2022):
I was already able to convert the data to the form the script needs, so now I only need to implement it. Since the public data also included the tag aliases, I am currently trying to add those too, which would be very useful as well. Just need to make it work alongside translations now.
@byzod commented on GitHub (Nov 3, 2022):
You mean this? It is useful, can't wait to see that implemented :D
@DominikDoom commented on GitHub (Nov 3, 2022):
Yes, exactly. It already works similar to the translation feature, so I think it'll be possible without much reworking. I just need to be careful to not break existing translations.
@DominikDoom commented on GitHub (Nov 3, 2022):
Small preview:

At least for danbooru tags the work is almost done, just need to do a bit of cleanup and update how translations are handled. I tried to find similar public tag data for e621 tags, but wasn't able to get anything so far. So I'll have to get them using the API, which will probably take a bit longer.
@thojmr commented on GitHub (Nov 6, 2022):
This has been working great, thanks for the work