Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional WD Tagger generation options #312

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

maedtb
Copy link
Contributor

@maedtb maedtb commented Dec 12, 2024

New

Added support for a minimum character-tag probability. If a character tag's probability is less than this value, it will be discarded. Set to 1.01 to disable character tags. Set to 0.01 to accept any matched character tags. Note: the existing 'Minimum tag probability' must also be met for a tag to be included in results.

Added additional generated-tag sorting option. Generated tags may now be sorted by:

  • Highest probability -- The existing behavior.
  • Alphabetical -- the (lowercased) alphabetical order of the tag names.
  • Unsorted (Model Default) -- tags are left in the order the model generated them. The order of this is model-dependant.

Changes to existing behavior

Tag categories indexes (general, character, rating) are now stored as sets instead of lists for faster lookup performance. This change slightly increases the RAM footprint, but does not affect VRAM.

Instead of rating-category tags being removed from the tag list for each generation, rating-category tags are no longer added to the overall tag list.

Bug fix

Tag probability is now rounded to 2 decimal points when determining if a tag passes the minimum probability values. This fixes an issue where a tag's displayed probability could be 0.01 lower than the minimum probability.

Added support for a minimum character-tag probability. If a character tag's probability is less than this value, it will be discarded. Set to `1.01` to disable character tags. Set to `0.01` to accept any matched character tags. Note: the existing 'Minimum tag probability' must _also_ be met for a tag to be included in results.

Added additional generated-tag sorting option. Generated tags may now be sorted by:
- `Highest probability` -- The existing behavior.
- `Alphabetical` -- the (lowercased) alphabetical order of the tag names.
- `Unsorted (Model Default)` -- tags are left in the order the model generated them. The order of this is model-dependant.

Tag categories indexes (general, character, rating) are now stored as sets instead of lists for faster lookup performance. This change slightly increases the RAM footprint, but does not affect VRAM.

Instead of rating-category tags being removed from the tag list for each generation, rating-category tags are no longer added to the overall tag list.

Tag probability is now rounded to `2` decimal points when determining if a tag passes the minimum probability values. This fixes an issue where a tag's displayed probability could be `0.01` lower than the minimum probability.
@maedtb
Copy link
Contributor Author

maedtb commented Dec 12, 2024

I think it would be reasonable to move the new sort feature to the Settings dialog as well. I'm not sure how often users would actually swap to different values?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant