picobyte / stable-diffusion-webui-wd14-tagger

Labeling extension for Automatic1111's Web UI
539 stars 64 forks source link

Exclude Character Name #63

Closed tkgix closed 9 months ago

tkgix commented 9 months ago

Thank you for your efforts.

I'd like to suggest the function to exclude character names from tags.

This function is implemented through a checkbox to exclude tags corresponding ( Maybe category 4 )

RoelKluin commented 9 months ago

Relevant may be issue #13. There is a fork of Toriato's original branch, mentioned there, which handles character tags. This branch is not yet merged in this branch. If that branch works well, maybe mention it here.

picobyte commented 9 months ago

For Deepdanbooru v3 I see characters listed as e.g. pod (nier automata) then you can remove those using in Exclude tag (bottom right) with a regular expression like .* \(.*\), the regexp ignores case.

If this is not enough, how exactly do you suggest recognizing a character name? I could re-add the enabling of case-sensitive matching in settings so you can filter on Title Case, but adding a lookup table to match against all kinds of character names is not an option, or at least not managed in repository. What I've thought about before is to allow exclude tags to read from disk, one exclude tag per line.