Clean SDXL expression labels

This commit is contained in:
2026-06-27 22:10:35 +02:00
parent 7f6bf0ffd8
commit c74798d80f
3 changed files with 20 additions and 0 deletions
+1
View File
@@ -56,6 +56,7 @@ def split_tag_text(text: Any) -> list[str]:
text = re.sub(r"\bMan [A-Z]'s\b", "man's", text)
text = re.sub(r"\bWoman [A-Z]\b", "woman", text)
text = re.sub(r"\bMan [A-Z]\b", "man", text)
text = re.sub(r"\b(?:the\s+)?(?:woman|man)\s+has\s+", "", text, flags=re.IGNORECASE)
text = re.sub(
r"\b(?:Clothing state|Visual clothing state|visible remaining styling|teaser outfit detail|softcore visual reference|Sexual scene|Role graph):\s*",
"",